VerifyDB(): *** coin database inconsistencies found #20117

issue jackyxie opened this issue on October 10, 2020
  1. jackyxie commented at 8:02 AM on October 10, 2020: none

    Ubuntu 20.04 Bitcoin Core v0.20.1

    I start bitcoind as follow: ./bin/bitcoind -conf=/home/blockchain/bitcoin-0.20.1/bitcoin.conf -reindex

    After reindex done, and sync to the latest block, I stop bitcoind with cmd as below: ./bin/bitcoin-cli -conf=/home/blockchain/bitcoin-0.20.1/bitcoin.conf stop

    And now I start bitcoind again without -reindex and it shows inconsistencies error, and told me need to reindex again.

    2020-10-10T07:33:06Z Bitcoin Core version v0.20.1 (release build)
    2020-10-10T07:33:06Z Assuming ancestors of block 0000000000000000000f2adce67e49b0b6bdeb9de8b7c3d7e93b21e7fc1e819d have valid signatures.
    2020-10-10T07:33:06Z Setting nMinimumChainWork=00000000000000000000000000000000000000000e1ab5ec9348e9f4b8eb8154
    2020-10-10T07:33:06Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
    2020-10-10T07:33:06Z Using RdSeed as additional entropy source
    2020-10-10T07:33:06Z Using RdRand as an additional entropy source
    2020-10-10T07:33:06Z Default data directory /root/.bitcoin
    2020-10-10T07:33:06Z Using data directory /home/blockchain/bitcoin-mainnet-data
    2020-10-10T07:33:06Z Command-line arg: checkblocks="10"
    2020-10-10T07:33:06Z Command-line arg: conf="/home/blockchain/bitcoin-0.20.1/bitcoin.conf"
    2020-10-10T07:33:06Z Using at most 125 automatic connections (1024 file descriptors available)
    2020-10-10T07:33:06Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
    2020-10-10T07:33:06Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
    2020-10-10T07:33:06Z Script verification uses 3 additional threads
    2020-10-10T07:33:06Z scheduler thread start
    2020-10-10T07:33:06Z WARNING: option -rpcallowip was specified without -rpcbind; this doesn't usually make sense
    2020-10-10T07:33:06Z HTTP: creating work queue of depth 16
    2020-10-10T07:33:06Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation.
    2020-10-10T07:33:06Z HTTP: starting 4 worker threads
    2020-10-10T07:33:06Z Using wallet directory /home/blockchain/bitcoin-mainnet-data
    2020-10-10T07:33:06Z init message: Verifying wallet(s)...
    2020-10-10T07:33:06Z Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
    2020-10-10T07:33:06Z Using wallet /home/blockchain/bitcoin-mainnet-data
    2020-10-10T07:33:06Z BerkeleyEnvironment::Open: LogDir=/home/blockchain/bitcoin-mainnet-data/database ErrorFile=/home/blockchain/bitcoin-mainnet-data/db.log
    2020-10-10T07:33:06Z init message: Loading banlist...
    2020-10-10T07:33:06Z Using /16 prefix for IP bucketing
    2020-10-10T07:33:06Z Cache configuration:
    2020-10-10T07:33:06Z * Using 2.0 MiB for block index database
    2020-10-10T07:33:06Z * Using 56.0 MiB for transaction index database
    2020-10-10T07:33:06Z * Using 8.0 MiB for chain state database
    2020-10-10T07:33:06Z * Using 384.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
    2020-10-10T07:33:06Z init message: Loading block index...
    2020-10-10T07:33:06Z Opening LevelDB in /home/blockchain/bitcoin-mainnet-data/blocks/index
    2020-10-10T07:33:06Z Opened LevelDB successfully
    2020-10-10T07:33:06Z Using obfuscation key for /home/blockchain/bitcoin-mainnet-data/blocks/index: 0000000000000000
    2020-10-10T07:33:09Z LoadBlockIndexDB: last block file = 2273
    2020-10-10T07:33:09Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=103, size=133692040, heights=651939...652051, time=2020-10-09...2020-10-10)
    2020-10-10T07:33:09Z Checking all blk files are present...
    2020-10-10T07:33:09Z Opening LevelDB in /home/blockchain/bitcoin-mainnet-data/chainstate
    2020-10-10T07:33:10Z Opened LevelDB successfully
    2020-10-10T07:33:10Z Using obfuscation key for /home/blockchain/bitcoin-mainnet-data/chainstate: 57026410d84fa902
    2020-10-10T07:33:10Z Loaded best chain: hashBestChain=00000000000000000002bf19408d31c75876adadcaaef179be6183912845af5c height=652051 date=2020-10-10T04:01:05Z progress=0.999927
    2020-10-10T07:33:10Z init message: Rewinding blocks...
    2020-10-10T07:33:10Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) started
    2020-10-10T07:33:10Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) completed (0.00s)
    2020-10-10T07:33:10Z init message: Verifying blocks...
    2020-10-10T07:33:10Z Verifying last 10 blocks at level 3
    2020-10-10T07:33:10Z [0%]...[10%]...[20%]...[30%]...[40%]...[50%]...[60%]...[70%]...[80%]...[90%]...ERROR: VerifyDB(): *** coin database inconsistencies found (last 10 blocks, 0 good transactions before that)
    
    2020-10-10T07:33:30Z : Corrupted block database detected.
    Please restart with -reindex or -reindex-chainstate to recover.
    : Corrupted block database detected.
    Please restart with -reindex or -reindex-chainstate to recover.
    2020-10-10T07:33:30Z Aborted block database rebuild. Exiting.
    2020-10-10T07:33:30Z Shutdown: In progress...
    2020-10-10T07:33:30Z scheduler thread exit
    2020-10-10T07:33:30Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) started
    2020-10-10T07:33:30Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) completed (0.00s)
    2020-10-10T07:33:30Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) started
    2020-10-10T07:33:30Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) completed (0.00s)
    2020-10-10T07:33:30Z Shutdown: done
    
  2. jackyxie added the label Bug on Oct 10, 2020
  3. MarcoFalke commented at 8:12 AM on October 10, 2020: member

    Bitcoin Core makes heavy use of CPU, RAM and disk IO. Hardware defects might only become visible when running Bitcoin Core. You might want to check your hardware for defects.

    • memtest86 to check your RAM
    • to check the CPU behaviour under load, use linpack or Prime95
    • to test your storage device use smartctl or CrystalDiskInfo

    Source: https://bitcoin.stackexchange.com/a/12206

  4. MarcoFalke closed this on Oct 10, 2020

  5. DrahtBot locked this on Feb 15, 2022
Contributors
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-03 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me