Bitcoin Forum
May 10, 2024, 06:20:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SOLVED] Getting DB::Open Exception when attempting to run Bitcoin on OSX  (Read 2137 times)
mr-sk (OP)
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
July 21, 2011, 01:10:41 PM
Last edit: July 21, 2011, 02:38:47 PM by mr-sk
 #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...?

Telegram
1715365220
Hero Member
*
Offline Offline

Posts: 1715365220

View Profile Personal Message (Offline)

Ignore
1715365220
Reply with quote  #2

1715365220
Report to moderator
1715365220
Hero Member
*
Offline Offline

Posts: 1715365220

View Profile Personal Message (Offline)

Ignore
1715365220
Reply with quote  #2

1715365220
Report to moderator
1715365220
Hero Member
*
Offline Offline

Posts: 1715365220

View Profile Personal Message (Offline)

Ignore
1715365220
Reply with quote  #2

1715365220
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715365220
Hero Member
*
Offline Offline

Posts: 1715365220

View Profile Personal Message (Offline)

Ignore
1715365220
Reply with quote  #2

1715365220
Report to moderator
1715365220
Hero Member
*
Offline Offline

Posts: 1715365220

View Profile Personal Message (Offline)

Ignore
1715365220
Reply with quote  #2

1715365220
Report to moderator
mr-sk (OP)
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
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.

Telegram
idev
Hero Member
*****
Offline Offline

Activity: 859
Merit: 1004


BTC OG and designer of the BitcoinMarket.com logo


View Profile
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!