Bitcoin Forum
November 03, 2024, 08:23:58 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Corrupted wallet.dat - any way of repairing?  (Read 7080 times)
frotto (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


View Profile
May 15, 2011, 09:37:58 PM
Merited by ABCbits (1)
 #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
trentzb
Sr. Member
****
Offline Offline

Activity: 406
Merit: 251


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
*
Offline Offline

Activity: 5376
Merit: 13368


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 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


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: 755
Merit: 515


View Profile
May 16, 2011, 07:44:33 AM
Merited by ABCbits (2)
 #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 Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
frotto (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


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
Merit: 251


View Profile
May 16, 2011, 04:10:42 PM
Merited by ABCbits (1)
 #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 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


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
Legendary
*
Offline Offline

Activity: 2058
Merit: 1446



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.

Adblock for annoying signature ads | Enhanced Merit UI
publickeyhash
Newbie
*
Offline Offline

Activity: 20
Merit: 0


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 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


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
Merit: 1026



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

You know he could just keep it himself, right?

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
frotto (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


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
Merit: 500


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 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


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
Merit: 500


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
Merit: 1026



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

Was bitcoin still running when you tried the dump?

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
frotto (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


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
Merit: 500


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
Merit: 1026



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

I wouldn't mind taking a look too.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
Pages: [1] 2 »  All
  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!