Exception and fatal error when starting bitcoind #1783

issue glitch003 opened this issue on September 4, 2012
  1. glitch003 commented at 12:06 AM on September 4, 2012: none

    When I start bitcoind I get the error below. I just cloned from master and built from source.

    ~/bitcoin/src# ./bitcoind


    EXCEPTION: 22DbRunRecoveryException
    DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery
    bitcoin in AppInit()

    terminate called after throwing an instance of 'DbRunRecoveryException' what(): DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery Aborted

  2. Diapolo commented at 6:51 AM on September 4, 2012: none

    We need more info like used OS and bitcoind version. What happened before the crash occurred for the first time?

  3. glitch003 commented at 10:21 PM on September 4, 2012: none

    Well I was running an older version of bitcoind and it was downloading the blockchain. I stopped that version and then tried to start this new one and it gave me this error.

    Distro is Debian 6. uname -a: debsrv 3.2.13-grsec-xxxx-grs-ipv6-64 #1 SMP Thu Mar 29 09:48:59 UTC 2012 x86_64 GNU/Linux

    Let me know any other information you may need. Thank you!

  4. gmaxwell commented at 10:31 PM on September 4, 2012: contributor

    You can't upgrade a BDB database that was not cleanly shutdown. Any chance you could go back to the original version you were running, start it with -detachdb=1 then stop it cleanly... then try upgrading?

  5. glitch003 commented at 10:32 PM on September 4, 2012: none

    yeah absolutely, i'm running the old version now. i'll give it a try, thanks

  6. glitch003 commented at 10:34 PM on September 4, 2012: none

    how do I stop it cleanly from the commandline? ctrl-c?

  7. glitch003 commented at 10:36 PM on September 4, 2012: none

    ctrl-c worked, and the new version started up fine. thanks for your help gmaxwell!!

  8. glitch003 closed this on Sep 4, 2012

  9. bitcoin locked this on Sep 8, 2021

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-20 06:56 UTC