-
Notifications
You must be signed in to change notification settings - Fork 60
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
wakunode2 cannot be restarted immediately after stopping #959
Comments
Thank you for posting this. The reason is that sockets are currently not freed when the node is interrupted during setup. I takes a bit until the sockets are freed by the OS. In the current version, this should only happen when the node is interrupted during setup. After the setup is complete, ctrl+c should cause a graceful shutdown. Still, we should free resources when interrupted during setup, too. |
It also happens after setup. In this case, the node had been operating for some amount of time before it crashed, initiating the restart sequence seen in the log. I have also seen it happen in testing where it's been running a while and then i restart to launch with a new config. I'll try to capture detailed debug logs of shutdown before this busy port startup error |
Thank you for the info! |
So, the problem in any case is a quick restart after a node shutdown? I added issues
which cover aspects of your issue. The missing part is resources not being freed even if the node ran for longer (past the setup). The
That would be nice :). |
All I've got so far, just tried to restart because I was seeing a bunch of invalid peers and wanted to update config.
|
latest stop
After waiting a minute before restarting (because I was typing this), |
After stopping wakunode2 with ctrl-c or
systemctl restart wakunode2
, I see the following logs on failure to restart:In this case,
wakunode2
was able to be restarted 60-70 seconds after the command to restart was issued (RestartSec=10
, restart counter at 7; subsequent restart worked normally)The text was updated successfully, but these errors were encountered: