Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
For the past 29 hours, it’s been stuck trying to sync:
Number of blocks left Unknown. Syncing Headers (843771, 100.0%)…
and
Connecting to peers…
I’m also pruning (prune=550
).
Expected behaviour
It should sync the full chain and reindex if needed, not try to sync what it can’t (due to possibly corrupt chainstate DB).
Steps to reproduce
Open up bitcoin-qt
. It doesn’t say I need to reindex, but everything else works. It connects to many peers, but very little date (<25 KB) is transferred between each of them.
Relevant log output
02024-05-16T22:38:54Z Writing 0 unbroadcast transactions to disk.
12024-05-16T22:38:54Z Dumped mempool: 0.055s to copy, 2.286s to dump
22024-05-16T22:38:54Z Flushed fee estimates to fee_estimates.dat.
32024-05-16T22:38:54Z Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb
42024-05-16T22:38:54Z You can use -debug=leveldb to get more complete diagnostic messages
52024-05-16T22:38:54Z *** System error while flushing: Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb
62024-05-16T22:38:54Z Error: A fatal internal error occurred, see debug.log for details
72024-05-16T22:38:54Z ForceFlushStateToDisk: failed to flush state (System error while flushing: Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb)
82024-05-16T22:38:54Z Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb
92024-05-16T22:38:54Z You can use -debug=leveldb to get more complete diagnostic messages
102024-05-16T22:38:54Z *** System error while flushing: Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb
112024-05-16T22:38:54Z Error: A fatal internal error occurred, see debug.log for details
122024-05-16T22:38:54Z ForceFlushStateToDisk: failed to flush state (System error while flushing: Fatal LevelDB error: Corruption: block checksum mismatch: /home/geremia/.bitcoin/chainstate/5753777.ldb)
132024-05-16T22:38:54Z [default wallet] Releasing wallet
142024-05-16T22:38:54Z Shutdown: done
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
v27.0
Operating system and version
slackware64-current
Machine specifications
No response