BSC,How to shut down normally
How can I stop my program normally.
My program was started using the nohup command.
I now use the kill PID command to stop the program, it will be stuck for a long time without responding. Several hours have passed. What should I do?
If I use kill -9 PID I am afraid that the block data will be corrupted.
t=2021-11-17T09:25:02+0800 lvl=info msg="Imported new chain segment" blocks=2 txs=2309 mgas=198.169 elapsed=15.962s mgasps=12.414 number=12,696,774 hash=0x421e25a5b0cb0f37b6e3f6fee5cece6ca858cfe33878464facaaf52c0c450824 age=12h36m41s dirty="1.11 GiB"
t=2021-11-17T09:25:11+0800 lvl=info msg="Imported new chain segment" blocks=2 txs=2249 mgas=198.810 elapsed=8.800s mgasps=22.592 number=12,696,776 hash=0xea0868b47abcb5d062c47935d4f6a2263027e78e0f5d8fce41e6b505e8f14cdc age=12h36m44s dirty="1018.81 MiB"
t=2021-11-17T09:25:21+0800 lvl=info msg="Got interrupt, shutting down..."
t=2021-11-17T09:25:21+0800 lvl=info msg="HTTP server stopped" endpoint=[::]:8545
t=2021-11-17T09:25:21+0800 lvl=info msg="HTTP server stopped" endpoint=[::]:8546
t=2021-11-17T09:25:21+0800 lvl=info msg="IPC endpoint closed" url=/data/bsc/node/geth.ipc
t=2021-11-17T09:25:22+0800 lvl=info msg="Imported new chain segment" blocks=3 txs=3649 mgas=298.235 elapsed=11.089s mgasps=26.894 number=12,696,779 hash=0xa122227c27bb6f0b76c2899beee0117b793f3bfb7b25977591c1b362d31544d2 age=12h36m46s dirty="1.01 GiB"
t=2021-11-17T09:25:22+0800 lvl=info msg="Downloader queue stats" receiptTasks=0 blockTasks=13741 itemSize="185.44 KiB" throttle=354
t=2021-11-17T09:25:22+0800 lvl=warn msg="Synchronisation failed, retrying" err="content processing canceled (requested)"
t=2021-11-17T09:25:22+0800 lvl=info msg="Ethereum protocol stopped"
t=2021-11-17T09:25:22+0800 lvl=info msg="Transaction pool stopped"
t=2021-11-17T09:25:22+0800 lvl=info msg="Unindexed transactions" blocks=83 txs=11227 tail=10,346,780 elapsed=52.631ms
t=2021-11-17T09:25:27+0800 lvl=eror msg="Failed to journal state snapshot" err="snapshot [0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29] missing"
t=2021-11-17T09:25:27+0800 lvl=info msg="Writing cached state to disk" block=12,696,779 hash=0xa122227c27bb6f0b76c2899beee0117b793f3bfb7b25977591c1b362d31544d2 root=0x8d1779f30c34805222752cf1b61ae27965aec9c2b5ff7e0fc3929aa9dee46b29
t=2021-11-17T09:25:42+0800 lvl=info msg="Persisted trie from memory database" nodes=1,233,594 size="334.86 MiB" time=15.232506494s gcnodes=18304 gcsize="7.93 MiB" gctime=96.009878ms livenodes=1,137,256 livesize="335.54 MiB"
t=2021-11-17T09:25:42+0800 lvl=info msg="Writing cached state to disk" block=12,696,778 hash=0xd0bb1be8412776f092460f5bb4e087ae9178624687e589b5d2c1f7a6eba34194 root=0x9234e95c0e0560872e8dac2015e8e6910fe283e869260571f94e9cb214b073e6
t=2021-11-17T09:25:43+0800 lvl=info msg="Persisted trie from memory database" nodes=9850 size="4.09 MiB" time=120.89523ms gcnodes=0 gcsize="0.00 B" gctime=0s livenodes=1,127,406 livesize="331.45 MiB"
t=2021-11-17T09:25:43+0800 lvl=info msg="Writing cached state to disk" block=12,696,652 hash=0xea03b4d2c471461f6b77483d46de28411877ec076e6d039d035820eb5fe323c5 root=0x4f40116846f05977637801fd48d4cb672c2ec9f303013f48aad7b539f384a09c
t=2021-11-17T09:25:43+0800 lvl=info msg="Persisted trie from memory database" nodes=44718 size="18.10 MiB" time=516.071899ms gcnodes=0 gcsize="0.00 B" gctime=0s livenodes=1,082,688 livesize="313.36 MiB"
t=2021-11-17T09:25:43+0800 lvl=eror msg="Dangling trie nodes after full cleanup"
t=2021-11-17T09:25:43+0800 lvl=info msg="Writing clean trie cache to disk" path=/data/bsc/node/geth/triecache threads=8
t=2021-11-17T09:25:44+0800 lvl=info msg="Persisted the clean trie cache" path=/data/bsc/node/geth/triecache elapsed=662.859ms
t=2021-11-17T09:25:44+0800 lvl=info msg="Blockchain stopped"
i have the same problem, the geth process never shut down when i press ctrl+c
and i found after the msg lvl=info msg="Blockchain stopped" output to log,
i used the command kill -9 or press ctrl+c more 9 times to to kill the geth process,the chaindata is ok.
i have the same problem, the geth process never shut down when i press ctrl+c and i found after the msg
lvl=info msg="Blockchain stopped"output to log, i used the command kill -9 or press ctrl+c more 9 times to to kill the geth process,the chaindata is ok.
I do the same as you now
i have the same problem, the geth process never shut down when i press ctrl+c and i found after the msg
lvl=info msg="Blockchain stopped"output to log, i used the command kill -9 or press ctrl+c more 9 times to to kill the geth process,the chaindata is ok.
This was fixed in v1.1.5
Please upgrade to v1.1.5
Anyone seeing a resurgence of this in the last couple of versions of sending SIGINT and it not exiting?