Stateless client does not respond to shut down signal
System information
Bor client version: 2.3.4
OS & Version: Linux
Overview of the problem
Attempting to shut down bor gracefully does not work as the client continues to import stateless chain segments without stopping.
Reproduction Steps
- Bor is in stateless mode (
syncmode = "stateless"andwitnessprotocol = truein config) - Attempt to stop bor (e.g.
service bor stop/systemctl stop bor.service) - Bor does not stop importing stateless chain segment, preventing graceful shutdown.
Logs / Traces / Output / Error Messages
Nov 03 21:57:58 systemd[1]: Stopping bor.service - bor...
Nov 03 21:57:58 bor[881]: Caught signal: interrupt
Nov 03 21:57:58 bor[881]: Gracefully shutting down agent...
Nov 03 21:57:58 bor[881]: INFO [11-03|21:57:58.375] HTTP server stopped endpoint=[::]:8545
Nov 03 21:57:58 bor[881]: INFO [11-03|21:57:58.376] IPC endpoint closed url=/home/bor/data/bor.ipc
Nov 03 21:57:58 bor[881]: WARN [11-03|21:57:58.377] Failed to retrieve stats server message err="read tcp 5.161.58.121:43498->143.198.175.167:3000: use of closed network connection"
Nov 03 21:57:58 bor[881]: INFO [11-03|21:57:58.377] Stats daemon stopped
Nov 03 21:57:59 bor[881]: INFO [11-03|21:57:59.824] Imported new stateless chain segment number=78,551,108 hash=f78d1d..175444 blocks=1 txs=57 mgas=12.406 elapsed=150.904ms mgasps=82.207 triedirty
=0.00B
Nov 03 21:57:59 bor[881]: INFO [11-03|21:57:59.829] Whitelisting new milestone from heimdall block=78,551,106 hash=7647ea..d1b730
Nov 03 21:58:01 bor[881]: INFO [11-03|21:58:01.744] Imported new stateless chain segment number=78,551,109 hash=c09a26..e5b781 blocks=1 txs=50 mgas=24.900 elapsed=147.728ms mgasps=168.553 triedirty
=0.00B
Nov 03 21:58:03 bor[881]: INFO [11-03|21:58:03.775] Imported new stateless chain segment number=78,551,110 hash=c128f7..88c9d6 blocks=1 txs=67 mgas=40.650 elapsed=187.716ms mgasps=216.548 triedirty
=0.00B
Nov 03 21:58:03 bor[881]: INFO [11-03|21:58:03.822] Whitelisting new milestone from heimdall block=78,551,108 hash=f78d1d..175444
Nov 03 21:58:05 bor[881]: INFO [11-03|21:58:05.819] Whitelisting new milestone from heimdall block=78,551,109 hash=c09a26..e5b781
Nov 03 21:58:06 bor[881]: INFO [11-03|21:58:06.136] Imported new stateless chain segment number=78,551,111 hash=5b88db..0e4d75 blocks=1 txs=71 mgas=25.114 elapsed=155.608ms mgasps=161.392 triedirty
=0.00B
Nov 03 21:58:07 bor[881]: INFO [11-03|21:58:07.832] Whitelisting new milestone from heimdall block=78,551,110 hash=c128f7..88c9d6
Nov 03 21:58:08 bor[881]: INFO [11-03|21:58:08.055] Imported new stateless chain segment number=78,551,112 hash=00c8f3..99256b blocks=1 txs=87 mgas=24.014 elapsed=149.654ms mgasps=160.462 triedirty
=0.00B
Nov 03 21:58:09 bor[881]: INFO [11-03|21:58:09.524] Imported new stateless chain segment number=78,551,113 hash=001a29..7432cb blocks=1 txs=74 mgas=14.319 elapsed=129.691ms mgasps=110.404 triedirty
=0.00B
Nov 03 21:58:11 bor[881]: INFO [11-03|21:58:11.820] Whitelisting new milestone from heimdall block=78,551,112 hash=00c8f3..99256b
Nov 03 21:58:11 bor[881]: INFO [11-03|21:58:11.940] Imported new stateless chain segment number=78,551,114 hash=d2bf3f..c0620b blocks=1 txs=310 mgas=21.684 elapsed=186.128ms mgasps=116.500 triedirty
=0.00B
<... continues without stopping ...>
Hi @petejkim . Thanks for reporting.
I'll start looking to this
This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.
@lucca30 was this solved? Thanks
This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.
This issue was closed because it has been stalled for 28 days with no activity.