DB_RUNRECOVERY: Fatal error #316

issue davclark opened this issue on June 14, 2011
  1. davclark commented at 11:33 PM on June 14, 2011: none

    Generate databases in .bitcoin with bitcoin 0.3.20 (as is available in the bitcoind package in debian squeeze). Close that server down, then run the 0.3.23-rc1 (or beta), and you get the following:

    ************************
    EXCEPTION: 22DbRunRecoveryException       
    DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery       
    bitcoin in AppInit()       
    
    
    
    ************************
    EXCEPTION: 22DbRunRecoveryException       
    DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery       
    bitcoin in CMyApp::OnUnhandledException()       
    
    terminate called after throwing an instance of 'DbRunRecoveryException'
      what():  DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery
    Aborted
    

    I tried db4.7_recover and db4.8_recover, as well as corresponding dump programs, and none were able to parse my blk0001.dat file. So, I think this is the culprit, but I'm not sure where to begin. It's pretty easy to reproduce this problem, though.

  2. sipa commented at 11:46 AM on June 15, 2011: member

    blk0001.dat is not a BDB file, but a raw concatenation of bitcoin blocks.

  3. gavinandresen commented at 9:19 PM on June 16, 2011: contributor

    Sounds like the debian squeeze is compiled against berkeley db 4.8; the fix is to get rid of the __db* database/ and log_* files (the .dat files are compatible between bdb 4.7 and 4.8)

  4. gavinandresen closed this on Jun 16, 2011

  5. sipa referenced this in commit 9177950c74 on Oct 21, 2015
  6. sipa referenced this in commit f4787d1caf on Oct 21, 2015
  7. sipa referenced this in commit 6557a8cd46 on Oct 26, 2015
  8. sipa referenced this in commit ea06490d14 on Oct 27, 2015
  9. sipa referenced this in commit 003bb87153 on Nov 5, 2015
  10. sipa referenced this in commit bfd83199c3 on Nov 11, 2015
  11. sipa referenced this in commit b437ea7ec9 on Nov 12, 2015
  12. sipa referenced this in commit 1d84107924 on Nov 12, 2015
  13. zathras-crypto referenced this in commit f71c7cc296 on Jan 5, 2016
  14. jtimon referenced this in commit 91ee21c024 on Mar 11, 2016
  15. rebroad referenced this in commit 40ead34fbe on Dec 7, 2016
  16. deadalnix referenced this in commit 1f414378b8 on Jan 19, 2017
  17. destenson referenced this in commit ed192cf35d on Nov 18, 2017
  18. destenson referenced this in commit 0ba9649742 on Nov 18, 2017
  19. lateminer referenced this in commit 65b0330d4b on Oct 16, 2019
  20. 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