Main Menu

Corrupted wallet.dat

Started by Proto, November 12, 2013, 06:39:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

joele

Backup not only the wallet but also the private key.

To reveal your private key: dumpprivkey <address>

To import private key: importprivkey <privatekey>

super3

If you want my help I can probably recover it. Send me a PM.

gigawatt

Quote from: Proto on November 12, 2013, 06:54:30 PM
That really sucks :(
Private key export was also broken with the first version on git... so I didn't do it.
Any other way to extract the private key manually from wallet.dat, if I know the address?

Private key export worked fine.  It was private key import that was broken (it was looking for the wrong version bytes).

You might be able to use something like pywallet to extract your keys from it.
BTC: 1E2egHUcLDAmcxcqZqpL18TPLx9Xj1akcV
PTS: Pstkk1gZCxc4GEwS1eBAykYwVmcubU1P8L

bytemaster

I would love to know the root cause of this problem.  I have also seen it.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Proto

Starting the client with the salvagewallet option + using a backup helped. Thanks!

A remainder to anyone here: MAKE BACKUPS

Does salvagewallet reimport all key pairs, even the unnamed ones? Not that I get into trouble when I try to spend some of that PTS (change address)

bobb

my clients are linked against libdb_cxx-5.1.so.
But so is the qt-client which seem to work fine.

And yes I was able to revcover the PTS.

Proto

Quote from: bobb on November 12, 2013, 07:11:35 PM
This happend to almost all of my protoshare-wallets, including the wallets on the miners.
I already started to dump the wallets using db_dump. 
Then I just tried the qt-client and the salvagewallet option.

Did you recover your PTS? What DB version are you using?

bobb

This happend to almost all of my protoshare-wallets, including the wallets on the miners.
I already started to dump the wallets using db_dump. 
Then I just tried the qt-client and the salvagewallet option.

Proto

#8
Only difference between my miners and my client wallet is the db version used.

My miners use:
libdb_cxx-4.7.so => /usr/lib64/libdb_cxx-4.7.so

The problematic client is linked against:
libdb_cxx-5.3.so => /usr/lib/x86_64-linux-gnu/libdb_cxx-5.3.so

To anyone with the same problem, please run ldd on your binary and report back what db version you used

Proto

#7
Yes, I'm using the non qt-client. Nonetheless thanks, I will try loading my wallet.dat with a qt-client and report back. Have multiple backups, so I still have high hopes I didn't loose all that money. 

alphaking

*** System error: CDB() : can't open database file wallet.dat, error -30973

same problem!

bobb

Hey Proto,

the same happened to me on some wallets.
I guess you are using the non-qt client?

After _backing up the the wallet_ just try to open the wallet with the qt-client.
If this doesn't work try the -salvagewallet option.

If you have any questions feel free to pm me. I know the feeling when reading that message.

Proto

That really sucks :(
Private key export was also broken with the first version on git... so I didn't do it.
Any other way to extract the private key manually from wallet.dat, if I know the address?

Proto

I don't use binaries for new alt-coins... I'm compiling from newest git source.
I have deleted everything except my wallet.dat and try to redownload the blockchain currently. Did a git pull and complete recompile.
I get lots of warnings:

ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
ERROR: mempool transaction missing input
...


Then after a while, with my backup wallet.dat:


*** System error: CDB() : can't open database file wallet.dat, error -30973
Error: System error: CDB() : can't open database file wallet.dat, error -30973
Error: System error: CDB() : can't open database file wallet.dat, error -30973
ERROR: AcceptBlock() : AddToBlockIndex failed
ProcessBlock: ACCEPTED
CreateNewBlock(): total size 1000
bitcoind: main.cpp:1662: bool CBlock::ConnectBlock(CValidationState&, CBlockIndex*, CCoinsViewCache&, bool): Assertion `pindex->pprev == view.GetBestBlock()' failed.
Aborted (core dumped)

Amazon

Sorry to hear about this. Have you tried to use the wallet file on another machine? The 0.2.0 Linux binary has bug and bytemaster has been trying to fix it.
Forum Donation: PforumPLfVQXTi4QpQqKwoChXHkoHcxGuA