-
Notifications
You must be signed in to change notification settings - Fork 881
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
Besu doesn't terminate with 0 exit code #8188
Comments
My nodes are having some issues to stop sometimes: it may be related:
|
this behaviour is the same outside of docker so it's nothing to do with docker. The 130 exit code comes from the process being killed. Added a log line for what besu thinks the exit code is. besu -h exits gracefully
besu with ctrl-c to kill the process
|
exit codes explained
|
Additional info here - you can't change the exit code within the shutdown hook |
@MqllR do you get closer to the behaviour you want with running besu within a service? don't know how that fits with docker though
|
TL;DR is if you're killing the java process - TERM, kill or ctrl-c - the exit code is 130. |
I notice in the systemd file we use, we set SuccessExitStatus=143 |
Thanks for taking a look. The systemd config you shared is a good workaround but exiting with a 128+signal code doesn't seem right. You can check this doc https://tldp.org/LDP/abs/html/exitcodes.html and the sysexit.h about exit codes, but if besu exited gracefully, I'd expect it to return a 0 code. |
Steps to Reproduce
Expected behavior: If the besu node is gracefully shutdown, it should exit with 0.
Actual behavior: Graceful shutdown terminates with a non 0 exit code (interrupt exit with 130, termination with 143)
Frequency: 100%
The text was updated successfully, but these errors were encountered: