Bitcoin Forum
December 02, 2016, 10:37:44 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Getting DB::Open Exception when attempting to run Bitcoin on OSX  (Read 1966 times)
mr-sk
Member
**
Offline Offline

Activity: 67



View Profile WWW
July 21, 2011, 01:10:41 PM
 #1

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...?

Botcoin - An Open Source PHP Bitcoin bot for retrieving market data.
Enjoy it, please donate: 1K2JWmpd75ehXxco1SWtGLaceQsRytpyEv
1480718264
Hero Member
*
Offline Offline

Posts: 1480718264

View Profile Personal Message (Offline)

Ignore
1480718264
Reply with quote  #2

1480718264
Report to moderator
1480718264
Hero Member
*
Offline Offline

Posts: 1480718264

View Profile Personal Message (Offline)

Ignore
1480718264
Reply with quote  #2

1480718264
Report to moderator
1480718264
Hero Member
*
Offline Offline

Posts: 1480718264

View Profile Personal Message (Offline)

Ignore
1480718264
Reply with quote  #2

1480718264
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480718264
Hero Member
*
Offline Offline

Posts: 1480718264

View Profile Personal Message (Offline)

Ignore
1480718264
Reply with quote  #2

1480718264
Report to moderator
1480718264
Hero Member
*
Offline Offline

Posts: 1480718264

View Profile Personal Message (Offline)

Ignore
1480718264
Reply with quote  #2

1480718264
Report to moderator
1480718264
Hero Member
*
Offline Offline

Posts: 1480718264

View Profile Personal Message (Offline)

Ignore
1480718264
Reply with quote  #2

1480718264
Report to moderator
mr-sk
Member
**
Offline Offline

Activity: 67



View Profile WWW
July 21, 2011, 02:38:37 PM
 #2

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.

Botcoin - An Open Source PHP Bitcoin bot for retrieving market data.
Enjoy it, please donate: 1K2JWmpd75ehXxco1SWtGLaceQsRytpyEv
idev
Hero Member
*****
Offline Offline

Activity: 846


View Profile WWW
July 31, 2011, 12:28:22 PM
 #3

what to do if bitcoin is not located in my Application Support directory,
how can i find/save the wallet.dat file ?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!