Skip to content
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

Premature nodeos shutdown when unable to connect to P2P #1466

Closed
jgiszczak opened this issue Jul 28, 2023 · 1 comment
Closed

Premature nodeos shutdown when unable to connect to P2P #1466

jgiszczak opened this issue Jul 28, 2023 · 1 comment
Labels

Comments

@jgiszczak
Copy link
Contributor

When a second node comes up too quickly after an earlier node it is supposed to connect to has launched, nodeos can encounter a boost exception and shut down.

error 2023-07-27T20:43:09.819 net-0     net_plugin.cpp:4091           operator()           ] Exception in net plugin thread pool, exiting: 13 N5boost10wrapexceptINS_6system12system_errorEEE: remote_endpoint: Bad file descriptor [system:9 at /home/giszczakj/Dev/leap/libraries/boost/libs/asio/include/boost/asio/detail/reactive_socket_service.hpp:218 in function 'remote_endpoint']
remote_endpoint: Bad file descriptor [system:9 at /home/giszczakj/Dev/leap/libraries/boost/libs/asio/include/boost/asio/detail/reactive_socket_service.hpp:218 in function 'remote_endpoint']: 
    {"what":"remote_endpoint: Bad file descriptor [system:9 at /home/giszczakj/Dev/leap/libraries/boost/libs/asio/include/boost/asio/detail/reactive_socket_service.hpp:218 in function 'remote_endpoint']"}
    net-0  thread_utils.hpp:131 run_thread

info  2023-07-27T20:43:09.819 nodeos    resource_monitor_plugi:140    plugin_shutdown      ] shutdown...

which happens after

info  2023-07-27T20:42:39.820 nodeos    listener.hpp:131              log_listening        ] start listening on 127.0.0.1:8888 resolved from localhost:8888 for API categories: all
error 2023-07-27T20:42:39.820 net-0     net_plugin.cpp:2678           operator()           ] connection failed to localhost:9776, Connection refused
debug 2023-07-27T20:42:39.820 net-0     net_plugin.cpp:1235           set_state            ] old connection 1 state connecting becoming closing
info  2023-07-27T20:42:39.820 net-0     net_plugin.cpp:1345           _close               ] ["localhost:9776" - 1 :] closing
debug 2023-07-27T20:42:39.820 net-0     net_plugin.cpp:1235           set_state            ] old connection 1 state closing becoming closed
@jgiszczak
Copy link
Contributor Author

Exception was introduced by an error in code still in flight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants