My setup was initially Bitcoin core 0.21.0, with IBD performed very long time again.
Now for some experimental functions, I turned on txindex in bitcoin.conf and reindexing was occurring for hours.
In mid of it, I finished the method, upgraded to 22.0 and began ‘bitcoind’ once more. I picked up re-indexing from the place it was terminated earlier than. However then once I did ‘bitcoin-cli cease’, it acquired caught with the next logs:
2021-11-25T13:17:05Z UpdateTip: new greatest=0000000000000000000883a03094dde1221683e17fb3982ca36d84cb114b3eb8 top=605407 model=0x20400000 log2_work=91.374385 tx=478072907 date="2019-11-26T01:00:35Z" progress=0.699403 cache=303.2MiB(2246070txo)
2021-11-25T13:17:05Z UpdateTip: new greatest=00000000000000000014e207348c17b888af84a47b909006d92f4e764368a8e9 top=605408 model=0x20000000 log2_work=91.374410 tx=478076043 date="2019-11-26T01:10:59Z" progress=0.699408 cache=303.4MiB(2248147txo)
2021-11-25T13:18:45Z tor: Thread interrupt
2021-11-25T13:18:45Z torcontrol thread exit
2021-11-25T13:18:45Z addcon thread exit
2021-11-25T13:18:45Z Shutdown: In progress...
2021-11-25T13:18:45Z opencon thread exit
2021-11-25T13:18:46Z msghand thread exit
2021-11-25T13:18:46Z web thread exit
2021-11-25T13:18:47Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat began
2021-11-25T13:18:47Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat accomplished (0.29s)
2021-11-25T13:19:54Z scheduler thread exit
I waited for 1-2 hour for it to correctly stop. It did not. So I closed my terminal, wishing it should not be screwing up / corrupt the recordsdata!
Gladly it did not. I then enhance dbcache to 4096 (with the hope of accelerating the velocity of reindexing) and began bitcoind once more. Now I once more tried terminating with ‘bitcoin-cli cease’ and once more acquired cease with these logs:
2021-11-25T17:33:01Z UpdateTip: new greatest=0000000000000000000c7b7267385a7a8b0136a6723380872b6846dfa1b5a802 top=627203 model=0x20000000 log2_work=91.883753 tx=523176359 date="2020-04-22T21:25:52Z" progress=0.765346 cache=2827.6MiB(21174875txo)
2021-11-25T17:33:04Z UpdateTip: new greatest=0000000000000000000f0b3f604df25db94b1248e69097548baafa7125b1bc65 top=627204 model=0x3fffe000 log2_work=91.883775 tx=523178937 date="2020-04-22T21:32:05Z" progress=0.765350 cache=2827.6MiB(21175427txo)
2021-11-25T17:33:05Z UpdateTip: new greatest=000000000000000000103cbcbe3cbb20759da63f5c9574d33400ae81e873b4bb top=627205 model=0x20000000 log2_work=91.883796 tx=523182006 date="2020-04-22T21:34:48Z" progress=0.765354 cache=2827.8MiB(21176750txo)
2021-11-25T17:33:06Z tor: Thread interrupt
2021-11-25T17:33:06Z addcon thread exit
2021-11-25T17:33:06Z opencon thread exit
2021-11-25T17:33:06Z torcontrol thread exit
2021-11-25T17:33:06Z Shutdown: In progress...
2021-11-25T17:33:06Z web thread exit
2021-11-25T17:33:09Z UpdateTip: new greatest=0000000000000000000ff51c79d6d89c3c9368b2c44cc763e104e911137a833d top=627206 model=0x20000000 log2_work=91.883818 tx=523185004 date="2020-04-22T21:57:24Z" progress=0.765359 cache=2828.2MiB(21179795txo)
2021-11-25T17:33:09Z msghand thread exit
2021-11-25T17:33:19Z loadblk thread exit
2021-11-25T17:33:19Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat began
2021-11-25T17:33:19Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat accomplished (0.27s)
2021-11-25T17:33:19Z scheduler thread exit
2021-11-25T17:33:20Z FlushStateToDisk: write cash cache to disk (21179795 cash, 2965556kB) began
I’m not afraid to kill the terminal, for the reason that final line of the log says ‘Writing one thing to disk’. I waited for nearly an hour now.
My system monitor does not present bitcoind, it reveals this course of: b-shutoff, which isn’t doing any lively Disk learn / writes!
Is it protected to shut the Terminal? I do not wish to do IBD once more! Any measures I can take to keep away from this (bitcoind not stopping) in future?
Thanks.
Edit:
It ended correctly precisely after an hour, as soon as I made this put up:
2021-11-25T18:33:41Z FlushStateToDisk: write cash cache to disk (21179795 cash, 2965556kB) accomplished (3620.90s)
2021-11-25T18:33:43Z FlushStateToDisk: write cash cache to disk (0 cash, 249287kB) began
2021-11-25T18:33:43Z FlushStateToDisk: write cash cache to disk (0 cash, 249287kB) accomplished (0.17s)
2021-11-25T18:33:48Z [default wallet] Releasing pockets
2021-11-25T18:34:02Z Shutdown: performed
I’m glad. However any hints to enhance this example?