-
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
lnd should exit with no-success error code when automatically shut down due to bitcoind problems #5625
Comments
Hey! I would like to work on this! |
Got another
|
This same thing happened to me recently, shutdown due to healthcheck |
Oh, I see I can configure health checks: Line 940 in ad78ff1
Still, this issue stands, process should exit with non-successful code. |
Any progress? lnd "died" while I was not at home, probably due to bitcoind being loaded too much with huge mempool we have recently:
|
Background
While troubleshooting
tor
&bitcoind
issues, I've restartedbitcoind
two times in a row, and discovered (just accidentally, as I havebitcoind
andlnd
logs tailed in the sametmux
split screen) thatlnd
is shutting itself down:systemctl status
now is:So it has
SUCCESS
status, meaningsystemd
will not restartlnd
in case of this bail out, even if I haveRestart=on-failure
, as this was not reported as failure. This is risk for "silently" losing lightning functionality...Your environment
v0.13.1-beta
Linux odroid-hc1 4.19.0-17-armmp-lpae #1 SMP Debian 4.19.194-3 (2021-07-18) armv7l GNU/Linux
v0.21.1
Steps to reproduce
Keep restarting bitcoind until
lnd
shuts down with success resultExpected behaviour
lnd
process should exit with non-zero result.Actual behaviour
lnd
exits with success result.The text was updated successfully, but these errors were encountered: