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

3.1.0: if p2p socket fails to bind, nodeos crashes leaving DB dirty #60

Closed
spoonincode opened this issue Aug 26, 2022 · 0 comments · Fixed by #72 or #75
Closed

3.1.0: if p2p socket fails to bind, nodeos crashes leaving DB dirty #60

spoonincode opened this issue Aug 26, 2022 · 0 comments · Fixed by #72 or #75
Assignees
Labels
bug Something isn't working OCI Work exclusive to OCI team

Comments

@spoonincode
Copy link
Member

In the background do a

nc -l -p 9876

to tie up the port.
Then just

./nodeos
...
info  2022-08-26T18:37:07.548 nodeos    resource_monitor_plugi:94     plugin_startup       ] Creating and starting monitor thread
info  2022-08-26T18:37:07.549 nodeos    file_space_handler.hpp:112    add_file_system      ] /root/.local/share/eosio/nodeos/data/blocks's file system monitored. shutdown_available: 50010786200, capacity: 500107862016, threshold: 90
warn  2022-08-26T18:37:07.549 resmon    file_space_handler.hpp:66     is_threshold_exceede ] Space usage warning: /root/.local/share/eosio/nodeos/data/blocks's file system approaching threshold. available: 74965753856, warning_available: 75016179300
warn  2022-08-26T18:37:07.549 resmon    file_space_handler.hpp:68     is_threshold_exceede ] nodeos will shutdown when space usage exceeds threshold 90%
error 2022-08-26T18:37:07.549 nodeos    net_plugin.cpp:3746           operator()           ] net_plugin::plugin_startup failed to bind to port 9876
error 2022-08-26T18:37:07.549 nodeos    main.cpp:174                  main                 ] std::exception
terminate called without an active exception
Aborted (core dumped)

This crash occurs early enough that the DB is left dirty.

v3.1.0-50894acec3991dc108516089be52c47d61eabf88

(this is 3.1.0 post CI branch protection modification)

@spoonincode spoonincode added the bug Something isn't working label Aug 26, 2022
@heifner heifner self-assigned this Aug 30, 2022
@heifner heifner moved this to Todo in Team Backlog Aug 30, 2022
@heifner heifner added the OCI Work exclusive to OCI team label Aug 30, 2022
heifner added a commit that referenced this issue Aug 30, 2022
@heifner heifner linked a pull request Aug 30, 2022 that will close this issue
@spoonincode spoonincode moved this from Todo to Awaiting Review in Team Backlog Aug 30, 2022
heifner added a commit that referenced this issue Aug 30, 2022
[3.1] Fix crash on startup if port already in use
heifner added a commit that referenced this issue Aug 30, 2022
[3.1 -> main] Fix crash on startup if port already in use
Repository owner moved this from Awaiting Review to Done in Team Backlog Aug 30, 2022
heifner added a commit that referenced this issue Apr 29, 2024
IF: Do not allow set_finalizers during transition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OCI Work exclusive to OCI team
Projects
Archived in project
2 participants