Gavin Andresen - 2012-03-01 21:46:49

bummer. i'm running ubuntu 11.10, nothing special, 64bit. downloaded rc1 into ~/tmp and did this:
Code:
~/tmp$ ./bitcoin-0.6.0rc2-linux/bin/64/bitcoin-qt
************************
EXCEPTION: 22DbRunRecoveryException      
DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery      
bitcoin in Runaway exception      
The dreaded DB_RUNRECOVERY...  that's usually caused by running an older version of BDB (0.6 is compiled against BDB 4.8) on a datadir written with a newer version of BDB.

Recovery isn't hard; just delete the .bitcoin/database/log.000* file(s) and any .bitcoin/__db*.log files.  Were you previously running a self-compiled version of Bitcoin?

From http://subversion.apache.org/faq.html#divining-bdb-version  :
Code:
cd ~/.bitcoin/database
od -j12 -N8 -tx4 log.000*

... will show what version of BDB the log files were written with.