Bitcoin Forum
December 02, 2016, 10:37:01 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 »  All
  Print  
Author Topic: Corrupted wallet.dat - any way of repairing?  (Read 5544 times)
frotto
Newbie
*
Offline Offline

Activity: 11


View Profile
May 15, 2011, 09:37:58 PM
 #1

Hi everybody, my SSD crashed today, and of course, I hadn't made a backup of my wallet.dat file. I managed to restore the file, but when I launch bitcoin, it gives me a '11DbException' error message and then closes itself. Is there any way of restoring the file? I do have the address, just can not access it. Sad
1480718222
Hero Member
*
Offline Offline

Posts: 1480718222

View Profile Personal Message (Offline)

Ignore
1480718222
Reply with quote  #2

1480718222
Report to moderator
1480718222
Hero Member
*
Offline Offline

Posts: 1480718222

View Profile Personal Message (Offline)

Ignore
1480718222
Reply with quote  #2

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

Posts: 1480718222

View Profile Personal Message (Offline)

Ignore
1480718222
Reply with quote  #2

1480718222
Report to moderator
trentzb
Sr. Member
****
Offline Offline

Activity: 406


View Profile
May 15, 2011, 09:58:32 PM
 #2

Ouch! Yea having the address won't help much. There is bitcointools and IIRC there was another wallet dump/export utility mentioned somewhere on the forums here. Play around with bitcointools and see if you can get anything out of your wallet.dat.
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2492


View Profile
May 15, 2011, 10:38:55 PM
 #3

Did you delete all other files in the data directory before restoring wallet.dat? Maybe those files are corrupted.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
frotto
Newbie
*
Offline Offline

Activity: 11


View Profile
May 16, 2011, 05:51:39 AM
 #4

Did you delete all other files in the data directory before restoring wallet.dat? Maybe those files are corrupted.
Yes, I did try that, didn't help. Sad
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 751


View Profile
May 16, 2011, 07:44:33 AM
 #5

Try running dbdump.py --wallet --datadir=/path/to/corrupt/wallet/ from bitcointools, if you get a reasonable looking data, you might be ok, otherwise well you might try some more advanced BDB recovery tools.

Bitcoin Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
frotto
Newbie
*
Offline Offline

Activity: 11


View Profile
May 16, 2011, 12:37:26 PM
 #6

Try running dbdump.py --wallet --datadir=/path/to/corrupt/wallet/ from bitcointools, if you get a reasonable looking data, you might be ok, otherwise well you might try some more advanced BDB recovery tools.
Could you please give me a step by step guide how to do this? I'm useless when it comes to python. Thanks!
trentzb
Sr. Member
****
Offline Offline

Activity: 406


View Profile
May 16, 2011, 04:10:42 PM
 #7

Code:
# git clone https://github.com/gavinandresen/bitcointools.git
# cd bitcointools
# ./dbdump.py --wallet --datadir=/point/to/wallet/dir

Use ./dbdump.py --help for other options.


frotto
Newbie
*
Offline Offline

Activity: 11


View Profile
May 30, 2011, 07:17:24 PM
 #8

Code:
# git clone https://github.com/gavinandresen/bitcointools.git
# cd bitcointools
# ./dbdump.py --wallet --datadir=/point/to/wallet/dir

Use ./dbdump.py --help for other options.




I still wasn't able to figure out what to do with these commands. I tried putting them in the python command line, but it did absolutely nothing. Again, I haven't ever worked with python, so any help would be appreciated!  Smiley
grue
Global Moderator
Legendary
*
Offline Offline

Activity: 1932



View Profile
May 30, 2011, 09:36:55 PM
 #9

Code:
# git clone https://github.com/gavinandresen/bitcointools.git
# cd bitcointools
# ./dbdump.py --wallet --datadir=/point/to/wallet/dir

Use ./dbdump.py --help for other options.




I still wasn't able to figure out what to do with these commands. I tried putting them in the python command line, but it did absolutely nothing. Again, I haven't ever worked with python, so any help would be appreciated!  Smiley
that's for unix, i believe.

It is pitch black. You are likely to be eaten by a grue.

Tired of annoying signature ads? Ad block for signatures
publickeyhash
Newbie
*
Offline Offline

Activity: 20


View Profile
May 30, 2011, 09:41:29 PM
 #10

How many bitcoins did it contain?
How many bitcoins would you offer for me to repair it? (only if succesfull)
frotto
Newbie
*
Offline Offline

Activity: 11


View Profile
May 31, 2011, 02:06:39 PM
 #11

How many bitcoins did it contain?
How many bitcoins would you offer for me to repair it? (only if succesfull)

I'd be willing to send you some bitcoins (3-5) if you help me repair it.
kjj
Legendary
*
Offline Offline

Activity: 1302



View Profile
May 31, 2011, 02:17:54 PM
 #12

You know he could just keep it himself, right?

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
frotto
Newbie
*
Offline Offline

Activity: 11


View Profile
May 31, 2011, 08:07:28 PM
 #13

You know he could just keep it himself, right?

Yeah, well, I would still end up with nothing. Smiley
I would really like some help with the repairing, though :/
SomeoneWeird
Hero Member
*****
Offline Offline

Activity: 700


View Profile
June 01, 2011, 12:16:07 PM
 #14

You know he could just keep it himself, right?

Yeah, well, I would still end up with nothing. Smiley
I would really like some help with the repairing, though :/

I'll help, pm me.
frotto
Newbie
*
Offline Offline

Activity: 11


View Profile
June 07, 2011, 01:59:15 PM
 #15

I was able to get it working and ran it, but the program (dbdump.py) just says "Couldn't open wallet.dat/main, try quitting Bitcoin and running this again." Even tried fixwallet.py, but same result. I guess I just lost 20 BTC. Sad
SomeoneWeird
Hero Member
*****
Offline Offline

Activity: 700


View Profile
June 07, 2011, 02:01:46 PM
 #16

I was able to get it working and ran it, but the program (dbdump.py) just says "Couldn't open wallet.dat/main, try quitting Bitcoin and running this again." Even tried fixwallet.py, but same result. I guess I just lost 20 BTC. Sad

If your giving up on it, PM me with your wallet file and i'll try and fix it, if I can i'll send most of it back to you Smiley You've got nothing to lose Tongue
kjj
Legendary
*
Offline Offline

Activity: 1302



View Profile
June 07, 2011, 02:02:14 PM
 #17

Was bitcoin still running when you tried the dump?

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
frotto
Newbie
*
Offline Offline

Activity: 11


View Profile
June 07, 2011, 02:07:27 PM
 #18

Was bitcoin still running when you tried the dump?
No it wasn't, I'm not that stupid Smiley I did this on a virtual computer running Ubuntu Live CD.
SomeoneWeird
Hero Member
*****
Offline Offline

Activity: 700


View Profile
June 07, 2011, 02:13:59 PM
 #19

Was bitcoin still running when you tried the dump?
No it wasn't, I'm not that stupid Smiley I did this on a virtual computer running Ubuntu Live CD.

I have a few hidden tricks up my sleeve for repairing corrupted wallets, but they're time consuming, so if you want I can try Smiley
kjj
Legendary
*
Offline Offline

Activity: 1302



View Profile
June 07, 2011, 02:23:24 PM
 #20

I wouldn't mind taking a look too.

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
Pages: [1] 2 »  All
  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!