Bitcoin Core sync issue

17 replies 347 views
its_sigmaMember
Posts: 8 · Reputation: 87
#1Dec 14, 2024, 03:09 PM
So, a couple of weeks ago when I rebooted my system, I noticed that my Bitcoin Core sync got stuck at block 860061. I tried shutting it down and restarting, but that didn’t do anything. I'm using Bitcoin Core version v26.0.0 on MacOS Ventura 13.6.9. My setup is a 3 GHz 6-core Intel i5 with 16 GB of RAM and I’ve got 1.5 TB of free space. Basically, my Bitcoin Core seems to be frozen while trying to sync. I don’t have any related addresses or transaction IDs. Here’s a screenshot of the issue: https://imgur.com/a/ereO5SX and the log files from the client: https://pastebin.com/DdzKWHqe.
4 Reply Quote Share
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#2Dec 14, 2024, 06:56 PM
I can't find any other errors except the one below with 1 failed. Have you tried upgrading it to the latest version? Since you are using Bitcoin Core version v26.0.0 upgrading might fix this issue, the recent version is 27.1. Or if you want to stay using the same version try to stop bitcoind first by using this command "bitcoind stop" and then reboot and try to run it again.
2 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#3Dec 14, 2024, 09:28 PM
The logs don't tell much aside from a timeout when downloading the headers from a certain peer which coincides with your screenshot of stuck during "syncing headers". Search your full debug.log file for blockchain-related errors For now, start with (Open 'Window->Console'): result should be 'null' otherwise, an error. If it didn't help, Use this command and reply with the result, or your active chain's best "hash" and "height": If you do not want to use v27.x, you must at least update to v26.2 / v26.1 that contains backported patches to some important updates. Specially a fix against attacks related to mutated blocks.
1 Reply Quote Share
its_sigmaMember
Posts: 8 · Reputation: 87
#4Dec 14, 2024, 10:30 PM
Upgraded to V27.0 (did not see version 27.1) As suggested Ran: reconsiderblock 000000000000000000011b4932fb1ff50b1a96c3ced699f0b75318f3fb8b8d0c It started to move forward and then the Bitcoin Core froze.  I had to force a shutdown, but then after that, it progressed.  Had another error and froze several times.  https://imgur.com/a/CzjgFVg Finally caught up after several restarts.  Shut down Bitcoin Core and the restarted it. I see that it still restarts back on Sept 4.  It syncs much faster, but this isn't right. I cleared the log file, shut down and restarted, the whole log file is too big for past bin so here is much of the top.. https://pastebin.com/g8trLq8U and then the end... https://pastebin.com/5tGNZVUr
1 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#5Dec 15, 2024, 01:12 AM
Bitcoin Core (Bitcoin-qt) normally freeze during the IBD in the latest blocks. Its severity depends on your settings and hardware, but it should be running in the background and will catch-up the GUI once it become responsive again. Probably caused by your force shutdowns since as described, Bitcoin Core is still running while the GUI is frozen. Forcing shutdown while it's writing to disk can cause this kind of corruption issue. Usually, --reindex-chainstate is applied to fix corruption issue on the chainstate but the last parts of the log show that you've successfully synced your node:
6 Reply Quote Share
its_sigmaMember
Posts: 8 · Reputation: 87
#6Dec 15, 2024, 02:57 AM
I don't understand why it when shutdown properly it restarts the sync again on Sept 5.  This doesn't seem right.
0 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#7Dec 15, 2024, 06:03 AM
That's weird indeed, in a "fortunate" way. What should have happened is IBD would've restarted after the corruption incident since you have a pruned blockchain which cannot use --reindex-chainstate without redownloading the already pruned blocks. But in your next restart, it's loaded successfully without errors: For that specific shutdown, Bitcoin Core failed to flush to disk as the first part of the log indicates and perhaps the reason why it loaded successfully after restart.
6 Reply Quote Share
its_sigmaMember
Posts: 8 · Reputation: 87
#8Dec 15, 2024, 10:25 AM
Still crashing on me every couple hours and then always starting syncing blocks on disk on Sept 4 https://pastebin.com/2p2wEqJh https://imgur.com/a/8zYOLWB
2 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#9Dec 15, 2024, 02:51 PM
Can you add this option (from your debug.log) next time you start Bitcoin Core?
2 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#10Dec 18, 2024, 02:10 AM
Hmm, same chainstate corruption error and same symptoms, same "2953706.ldb" file. But for some weird reason, it fixed itself in your earlier reply after a restart. usually, --reindex-chainstate fixes that kind of chainstate corruption error But since your node's blockchain is pruned, your node has to restart IBD to do it. (re-sync from start) BTW, as I've mentioned, that issue may have been caused by your previous force-closure and not related to the initial issue in the OP. Once you decided to fix your chainstate and start from scratch, start Bitcoin-qt with --reindex-chainstate arg only once. e.g.:But I'd recommend you to remove your "prune block storage" setting first since you have enough disk space anyways. Side question: is your datadir stored on an external HDD/SSD? If so, check it's USB cable or USB port, most of the time, a bad cable/port can cause inconsistent data transfer.
6 Reply Quote Share
its_sigmaMember
Posts: 8 · Reputation: 87
#11Dec 18, 2024, 07:12 AM
Ran with the -debug=leveldb https://pastebin.com/U2JZatRi Data is on local disk. I have removed pruning and running --reindex-chainstate
3 Reply Quote Share
im_lynxHero Member
Posts: 515 · Reputation: 2161
#12Dec 18, 2024, 09:28 AM
This is odd in your debug.log: For block 863036 there's the "Saw new header..." and "Saw new cmpctblock..." message but then no "UpdateTip: new best=..." but rather some severe hiccups manifest. And a strange huge time gap between the logged entries Did your device sleep between 2024-09-27T05:13:39 UTC and 2024-09-27T14:52:46 UTC? This is what my Raspibolt node had to say at the same time as yours when both have seen block 863036 being mined:
4 Reply Quote Share
its_sigmaMember
Posts: 8 · Reputation: 87
#13Dec 18, 2024, 10:31 AM
I am pretty sure that gap is from when it had the error and when I came back to the computer and clicked on the error message.
1 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#14Dec 18, 2024, 12:17 PM
This checks out since your screenshot shows the same error in the log and pressing "ok" wont automatically close Bitcoin Core. I'd check for drive error first if weird issues that fixes itself happen to my node but since you already started IBD, let's see if you'll encounter the same issue. Just make sure not to force close Bitcoin Core even if it seemingly non-responsive, you'll likely encounter that once it's nearing the tip.
4 Reply Quote Share
im_lynxHero Member
Posts: 515 · Reputation: 2161
#15Dec 18, 2024, 04:42 PM
Ah, OK, that makes sense, though I'm a bit surprised that your Bitcoin-Qt halts anything, likely to allow the user to see the error before it continues to shutdown. Running as daemon would've shutdown it without waiting when a data corruption error is detected. So, the interesting part is why the corruption occured. It's usually a hardware problem. Could be a RAM issue, CPU overheating, storage device failure. Probably not easy to detect. I'm no expert in what corruption your Bitcoin Core reported. Likely the chainstate is corrupted, block data I would assume, too. Maybe some other more experienced users here can chime in. If I were you, I would stress test the RAM of your device, stress test the CPU and inspect S.M.A.R.T. data of the storage device. Additionally I would perform a thorough S.M.A.R.T. device extensive self-test to see if any errors are detected. I would also execute an extensive stress test of the storage device with other tools. (Make a full backup before those tests, just in case you trigger a failure. This will suck when your storage device is soldered as common on modern Apple gear and you're apparantly on MacOS.)
1 Reply Quote Share
its_sigmaMember
Posts: 8 · Reputation: 87
#16Dec 18, 2024, 09:14 PM
Ran with the -debug=leveldb locked up... log as follows https://pastebin.com/U2JZatRi Ran again and debug log gave the following... https://pastebin.com/L83wghq4 Ran again and failed again at block 823222 https://pastebin.com/X7zWxPEb
4 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#17Dec 20, 2024, 02:25 PM
This is the point where I'd replace the disk:
1 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#18Dec 20, 2024, 07:03 PM
Check your disk's S.M.A.R.T report if it's failing. How-to: https://support.apple.com/en/guide/mac-help/mchlp2548/13.0/mac/13.0 If there's no hardware problem, replace the sATA cable and use a different port if there's one available, then check if it can be fixed by "Disk Utility". Or you can use third-party software to thoroughly check the report for bad values specially for "CRC Error Count" and "Bad Sectors". The latter may be a sign of failing drive; the former may be caused by a bad cable or both.
3 Reply Quote Share

Related topics