-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New persistent connection request keeps spawning indefinitely for offline channel peers. #6866
Comments
Hmm, I wonder if this would be addressed by #5700? |
are you running any external scripts / node management software |
Yes, I am also running the following on the node:
Do any of them actually perform active reconnection attempt? I have stopped running lnd-manageJ for now, after the last crash. But it seems like the number of requests are still increasing since the node restart. I see why you're asking. In the logs there are a lot of:
so there is something requesting the connection via RPC? |
If you want the issue to stop, you should probably stop running the scripts for now until we fix the issue |
I will restart the node before I go to sleep tonight, and stop all other scripts. I will then report in the morning if the RPCS connection requests appears in the logs while I sleep. |
Which version of Go did you use to compile the binary? Or was it taken from the release artifacts? |
Yes, you'll only see that error if a command forces a new connection (the current behavior) while we already have one active. We track the connection by target public key. We do this (historically) so that if the user has a new IP/onion for the peer, then we'll use that and wipe all the other ones out after one of them succeeds. |
I think our current behavior is correct, but we should start to limit the number of active connections we'll create, even in this override mode. |
I am using the pre-compiled binary from the release.
I can now confirm that the increase in the number of persistent connections is caused by ThunderHub. It creates 10 new persistent request for re-connection every start of the hour. |
This is actually a Thunderhub issue, and not an lnd issue. Therefore, I will close it. |
Background
My node crashed with
too many open files
error. Upon inspection, it looked like LND keeps spawning new connection requests, increasing every reconnection attempt cycle until until the system reached its open files limit.Your environment
lnd v0.15.0-beta
4.18.0-372.16.1.el8_6.x86_64
bitcoind 23.0
Steps to reproduce
Expected behaviour
Spawn only one (or a few) reconnection attempt each time.
Actual behaviour
Over time (several days), LND spawns thousands of reconnection attempt at once, using one open file slot each. Given enough time, the open file limits of the system is exceeded and lnd crashes.
Attached is a redacted log of my node a few minutes before crashing. Interesting excerpt:
lnd.log.redacted.log
The text was updated successfully, but these errors were encountered: