"System Error: CWalletDB::ListAccountCreditDebit() : cannot create DB cursor" #2339

issue Tindalos opened this issue on February 27, 2013
  1. Tindalos commented at 9:11 PM on February 27, 2013: none

    End user, Windows 7, BitCoin 0.8.0 Beta.

    Installed BitCoin, added my wallet.dat file and had it accepted, and began to update the blockchain from the network. At about 75% completion, BitCoin threw the above fatal error and shut down. Subsequent restarts of BitCoin now immediately result in the same thing.

    What do I do now, please?

  2. Diapolo commented at 2:10 PM on February 28, 2013: none

    By 0.8.0 Beta you are talking about the official non-RC relase? Can you post some parts of the debug.log, that could help.

  3. Tindalos commented at 6:21 PM on February 28, 2013: none

    Yes, the Windows .exe install package currently shown on the main page at bitcoin.org.

    From debug.log:

    Bitcoin version v0.8.0-beta (2013-02-18 18:38:34 -0500) Using OpenSSL version OpenSSL 1.0.1c 10 May 2012 Startup time: 2013-02-28 18:17:58 Default data directory C:\Users\Satori\AppData\Roaming\Bitcoin Used data directory C:\Users\Satori\AppData\Roaming\Bitcoin Using 2 threads for script verification init message: Verifying wallet integrity... dbenv.open LogDir=C:\Users\Satori\AppData\Roaming\Bitcoin\database ErrorFile=C:\Users\Satori\AppData\Roaming\Bitcoin\db.log Bound to [::]:8333 Bound to 0.0.0.0:8333 init message: Loading block index... Opening LevelDB in C:\Users\Satori\AppData\Roaming\Bitcoin\blocks\index Opened LevelDB successfully Opening LevelDB in C:\Users\Satori\AppData\Roaming\Bitcoin\chainstate Opened LevelDB successfully LoadBlockIndex(): last block file = 8 LoadBlockIndex(): last block file: CBlockFileInfo(blocks=4533, size=93618114, heights=169936..174468, time=2012-03-06..2012-04-06) LoadBlockIndex(): transaction index disabled LoadBlockIndex(): hashBestChain=00000000000007efeb90a22bd4d16e61a37c212bb2af8b3a2442b3000fd470f1 height=174465 date=2012-04-06 03:03:03 init message: Verifying block database integrity... Verifying last 288 blocks at level 3 No coin database inconsistencies in last 289 blocks (16128 transactions) block index 28807ms init message: Loading wallet... nFileVersion = 60006 wallet 1051ms init message: Importing blocks from block database... *** System error: CWalletDB::ListAccountCreditDebit() : cannot create DB cursor Flushing wallet.dat Flushed wallet.dat 0ms init message: Loading addresses... Loaded 13091 addresses from peers.dat 96ms RandAddSeed() 236492 bytes mapBlockIndex.size() = 174469 nBestHeight = 174465 setKeyPool.size() = 100 mapWallet.size() = 3 mapAddressBook.size() = 8 send version message: version 70001, blocks=174465, us=0.0.0.0:0, them=0.0.0.0:0, peer=127.0.0.1:0 init message: Done loading EnvShutdown exception: DB_RUNRECOVERY: Fatal error, run database recovery (-30974)

    There's more, a lot of ProcessBlocks and SetBestChains, and then a few paragraphs that look pretty similar to the above. Presumably, for each time it's encountered the error. If you'd like more from it, just let me know.

  4. Diapolo commented at 9:17 AM on March 1, 2013: none

    Well a walletDB error is related to your Bitcoin wallet file and you could try to first backup your wallet.dat and then start the client with -salvagewallet.

  5. Tindalos commented at 10:57 PM on March 1, 2013: none

    Thank you, Diapolo! That seems to have worked like a charm. Bitcoin loaded, did a bit of scanning, and now has resumed loading from the blockchain.

  6. Diapolo commented at 1:06 PM on March 2, 2013: none

    @Tindalos If everything is working now, you can close this issue ticket :).

  7. Tindalos closed this on Mar 2, 2013

  8. bitcoin 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-05-20 06:55 UTC