Had this problem with one long running node. Tried to restart bitcoind with -debug=leveldb -reindex
, ended up with:
02021-04-18T15:00:03Z UpdateTip: new best=0000000000000000001153fc4f4aee341eacc92b28450dfff90810b4d2df216e height=616461 version=0x2fffe000 log2_work=91.642167 tx=500946903 date='2020-02-08T04:25:07Z' progress=0.799912 cache=147.0MiB(649296txo)
12021-04-18T15:00:03Z leveldb: Generated table [#215595](/bitcoin-bitcoin/215595/): 44038 keys, 2177932 bytes
22021-04-18T15:00:04Z leveldb: Generated table [#215596](/bitcoin-bitcoin/215596/): 44998 keys, 2180094 bytes
32021-04-18T15:00:04Z leveldb: Generated table [#215597](/bitcoin-bitcoin/215597/): 23369 keys, 1204615 bytes
42021-04-18T15:00:04Z leveldb: Compacted 1@1 + 2@2 files => 5562641 bytes
52021-04-18T15:00:04Z leveldb: compacted to: files[ 0 10 124 455 1486 0 0 ]
62021-04-18T15:00:04Z leveldb: Delete type=2 [#215401](/bitcoin-bitcoin/215401/)
72021-04-18T15:00:04Z leveldb: Delete type=2 [#215292](/bitcoin-bitcoin/215292/)
82021-04-18T15:00:04Z leveldb: Delete type=2 [#215579](/bitcoin-bitcoin/215579/)
92021-04-18T15:00:04Z leveldb: Delete type=2 [#215580](/bitcoin-bitcoin/215580/)
102021-04-18T15:00:04Z leveldb: Compacting 1@2 + 0@3 files
112021-04-18T15:00:04Z LevelDB read failure: Corruption: block checksum mismatch
122021-04-18T15:00:04Z Fatal LevelDB error: Corruption: block checksum mismatch
132021-04-18T15:00:04Z You can use -debug=leveldb to get more complete diagnostic messages
142021-04-18T15:00:05Z leveldb: Generated table [#215598](/bitcoin-bitcoin/215598/): 28652 keys, 1426450 bytes
152021-04-18T15:00:05Z Error: Error reading from database, shutting down.
162021-04-18T15:00:05Z Error reading from database: Fatal LevelDB error: Corruption: block checksum mismatch
Any hints how to debug this?
0# bitcoind -version
1Bitcoin Core version v0.20.1.0-gentoo