reddcoin-project / reddcoin-3.10

Reddcoin: the digital social currency
http://www.reddcoin.com
MIT License
287 stars 114 forks source link

*** System error: CWalletDB::ListAccountCreditDebit() : cannot create DB cursor #53

Closed jsparkes closed 10 years ago

jsparkes commented 10 years ago

I am getting the error in the title when block processing is done. I get it consistently, on Linux and Windows. My wallet.dat came from the Android wallet, although it was in July, long before the POSV switch.

Here's the tail end of debug.log:

2014-08-28 11:17:52 SetBestChain: new best=f3c2b3ea44fd4aa2d6ef2af0826a36814b60ba5e1ed95ab626ef4f4298c387d2  height=286734  log2_work=55.993974  tx=1091285  date=2014-08-19 22:57:40 progress=0.834482
2014-08-28 11:17:52 CBlock::ConnectBlock : nHeight=286735, PoSV=1, vts=1
2014-08-28 11:17:52 CBlock::ConnectBlock : nHeight=286735, PoSV=1, vts=2
2014-08-28 11:17:52 CBlock::ConnectBlock : nHeight=286735, PoSV=1, vts=3
2014-08-28 11:17:52 CBlock::ConnectBlock : nHeight=286735, PoSV=1, vts=4
2014-08-28 11:17:52 *** System error: CWalletDB::ListAccountCreditDebit() : cannot create DB cursor
2014-08-28 11:18:10 init message: Loading addresses...
2014-08-28 11:18:10 Loaded 10722 addresses from peers.dat  37ms
2014-08-28 11:18:10 Shutdown : In progress...
2014-08-28 11:18:10 Flush(false)
2014-08-28 11:18:10 wallet.dat refcount=0
2014-08-28 11:18:10 wallet.dat checkpoint
2014-08-28 11:18:10 wallet.dat detach
2014-08-28 11:18:10 wallet.dat closed
2014-08-28 11:18:10 DBFlush(false) ended               0ms
2014-08-28 11:18:10 StopNode()
2014-08-28 11:18:10 Flushed 10722 addresses to peers.dat  38ms
2014-08-28 11:18:11 

************************
EXCEPTION: St13runtime_error       
CDB() : can't open database file wallet.dat, error -30973       
reddcoin in Runaway exception       

2014-08-28 11:18:11 EnvShutdown exception: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery (-30973)
laudney commented 10 years ago

your wallet.dat is corrupted. you can try start wallet with -salvagewallet and if it doesn't work, try a backup copy. if you don't have backup, make a post on subreddit so someone can help you.