The error message given when bdb fails to open database is very vague #1676

issue jojkaart opened this issue on August 16, 2012
  1. jojkaart commented at 1:35 PM on August 16, 2012: none

    Here's an example error message that might prevent bitcoind/bitcoin-qt from starting: EXCEPTION: 22DbRunRecoveryExveption DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery C:\users\omistaja\paska\bitcoin..... in Runaway exception

    This message is what end users can easily find and relay when confronted with their wallet not starting. Currently it's very uninformative. It basically just says "there is a problem with the database". It should be fixed so it actually gives some details on the problem. For example what database file is causing the problem.

    Also, I don't know if that's already being done but the less important database files could just be wiped automatically when this happens so the software can at least start.

  2. laanwj commented at 2:28 PM on August 16, 2012: member

    Also, I don't know if that's already being done but the less important database files could just be wiped automatically when this happens so the software can at least start.

    I proposed that before, but no one agrees.

    Then again, if the new database formats that are going to be added (leveldb for block chain and custom format for wallet) are really a silver bullet we don't need it. BerkelyDB error messages should be a thing of the past at least :)

  3. laanwj commented at 9:46 AM on March 29, 2013: member

    Error messages have been improved in 0.8.x, and BDB is only used for wallet anymore. Closing.

  4. laanwj closed this on Mar 29, 2013

  5. suprnurd referenced this in commit 14d11e4a8a on Dec 5, 2017
  6. MarcoFalke locked this on Sep 8, 2021
Contributors

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-15 21:16 UTC

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