I downloaded bitcoin 0.5.2 yesterday replacing 0.5.0rc7 which I was using before. The blockchain updated as normal and I exited. Today, I tried opening bitcoin-qt from terminal and it showed the loading screen but it quickly disappeared and the following error was left in the terminal window:
ubuntu@ubuntu-desktop:~/$ bitcoin-qt
************************
EXCEPTION: 22DbRunRecoveryException
DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery
bitcoin in Runaway exception
terminate called after throwing an instance of 'DbRunRecoveryException'
what(): DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery
Aborted
ubuntu@ubuntu-desktop:~/$
Now bitcoin will not start and neither will the headless daemon. I have a backup of my wallet. How do I fix this?
BTW I use Ubuntu 10.04