Unable to start bitcoind after power failure #17441

issue 0x4Graham opened this issue on November 11, 2019
  1. 0x4Graham commented at 4:56 PM on November 11, 2019: none

    Hi,

    I'm unable to restart bitcoind after a power failure:

    Here is the debug.log error I am getting:

    bitcoin@raspberrypi:~ $ tail -f /home/bitcoin/.bitcoin/debug.log 2019-11-11T16:49:54Z Opening LevelDB in /home/bitcoin/.bitcoin/chainstate 2019-11-11T16:49:54Z Fatal LevelDB error: Corruption: CURRENT file does not end with newline 2019-11-11T16:49:54Z You can use -debug=leveldb to get more complete diagnostic messages 2019-11-11T16:49:54Z Fatal LevelDB error: Corruption: CURRENT file does not end with newline 2019-11-11T16:49:54Z : Error opening block database. Please restart with -reindex or -reindex-chainstate to recover. 2019-11-11T16:49:54Z Aborted block database rebuild. Exiting. 2019-11-11T16:49:54Z Shutdown: In progress... 2019-11-11T16:49:54Z scheduler thread interrupt 2019-11-11T16:49:54Z Shutdown: done

    I've tried running:

    bitcoind -reindex 
    bitcoin -reindex-chainstate
    

    Not sure what I am doing wrong?

  2. 0x4Graham added the label Bug on Nov 11, 2019
  3. MarcoFalke commented at 5:56 PM on November 11, 2019: member

    bitcoind -reindex-chainstate

    What is the error message or debug log you get when running this?

  4. 0x4Graham commented at 6:00 PM on November 11, 2019: none
    bitcoin@raspberrypi:~/.bitcoin/chainstate $ bitcoind --reindex-chainstate
    Bitcoin server starting
    bitcoin@raspberrypi:~/.bitcoin/chainstate $ tail -f /home/bitcoin/.bitcoin/debug.log 
    2019-11-11T17:59:31Z Wiping LevelDB in /home/bitcoin/.bitcoin/chainstate
    2019-11-11T17:59:31Z Fatal LevelDB error: IO error: /home/bitcoin/.bitcoin/chainstate/CURRENT: No such file or directory
    2019-11-11T17:59:31Z You can use -debug=leveldb to get more complete diagnostic messages
    2019-11-11T17:59:31Z Fatal LevelDB error: IO error: /home/bitcoin/.bitcoin/chainstate/CURRENT: No such file or directory
    2019-11-11T17:59:31Z : Error opening block database.
    Please restart with -reindex or -reindex-chainstate to recover.
    2019-11-11T17:59:31Z Aborted block database rebuild. Exiting.
    2019-11-11T17:59:31Z Shutdown: In progress...
    2019-11-11T17:59:31Z scheduler thread interrupt
    2019-11-11T17:59:31Z Shutdown: done
    
  5. laanwj commented at 9:43 AM on November 12, 2019: member

    This looks like low-level file system corruption. Might want to run a fsck, and if that doesn't solve it, move the chainstate directory out of the way and re-try a -reindex.

  6. laanwj removed the label Bug on Nov 12, 2019
  7. laanwj added the label Questions and Help on Nov 12, 2019
  8. emilengler commented at 8:28 PM on November 12, 2019: contributor

    If it is not a problem for you, you can re download your blockchain by deleting your .bitcoin folder. Consider backuping your wallet and bitcoin.conf

  9. fanquake closed this on Feb 4, 2020

  10. DrahtBot locked this on Feb 15, 2022

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-04-26 06:14 UTC

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