Author

Topic: [SOLVED] Getting DB::Open Exception when attempting to run Bitcoin on OSX (Read 2151 times)

hero member
Activity: 860
Merit: 1004
BTC OG and designer of the BitcoinMarket.com logo
what to do if bitcoin is not located in my Application Support directory,
how can i find/save the wallet.dat file ?
member
Activity: 117
Merit: 10
I fixed this by:

* Copy my /Bitcoin directory to Bitcoin-bak
* Restart the latest version of Bitcoin (this will create the ~/Library/Application Support/Bitcoin directory)
* Closed Bitcoin process
* Copied my wallet.dat from Bitcoin-bak/ to Bitcoin
* Started bitcoin process
-- Had to download blocks first but then all the confirmations started coming in for my transactions any my balance is slowly going back to its original state.
member
Activity: 117
Merit: 10
I upgraded to OSX Lion yesterday but had to rollback my OS because too many applications were broken.

Upon finishing the rollback and attempting to launch bitcoin, I get the following errors:
- Bitcoin
EXCEPTION: 11DbException
Db::open: Invalid Argument
bitcoin in AppInit()

And
- Bitcoin
EXCEPTION: 11DbException
Db::open Invalid argument
bitcion in CMyApp::OnUnhandledException()

Those are both pop-up windows.
My ~/Library/Application Support/Bitcoin folder is as follows:

Code:
ironcross:Bitcoin sk$ ls -al
total 1210960
drwx------  17 sk  staff        578 Jul 21 09:05 .
drwx------+ 53 sk  staff       1802 Jul 19 15:00 ..
-rw-------@  1 sk  staff       6148 Jul 21 08:58 .DS_Store
-rw-------   1 sk  staff          0 Jun  2 09:06 .lock
-rw-------   1 sk  staff      24576 Jul 21 09:05 __db.001
-rw-------   1 sk  staff     598016 Jul 21 09:05 __db.002
-rw-------   1 sk  staff     270336 Jul 21 09:05 __db.003
-rw-------   1 sk  staff     163840 Jul 21 09:05 __db.004
-rw-------   1 sk  staff    6307840 Jul 21 09:05 __db.005
-rw-------   1 sk  staff      49152 Jul 21 09:05 __db.006
-rw-------   1 sk  staff   16068608 Jul 20 07:27 addr.dat
-rw-------   1 sk  staff  409669784 Jul 20 07:16 blk0001.dat
-rw-------   1 sk  staff  183726080 Jul 20 07:16 blkindex.dat
drwx------  14 sk  staff        476 Jul 20 02:29 database
-rw-------   1 sk  staff       3609 Jul 21 09:05 db.log
-rw-------   1 sk  staff    2968717 Jul 21 09:06 debug.log
-rw-------   1 sk  staff     147456 Jul 20 07:16 wallet.dat

Any ideas what could be wrong? I'm thinking the backup version I rolled back was created while bitcoin was running and thus saved the wallet.dat in a bad state? I use time capsule + time machine for automated backups...?
Jump to: