Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: ericools on April 18, 2013, 12:19:10 AM



Title: can't use my wallet? error -30974 <solved>
Post by: ericools on April 18, 2013, 12:19:10 AM
I get this each time I try to open my bitcoin-qt

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

I can't find any posts showing that same error #.

I installed a new copy of bitcoin-qt on another computer and tried both my wallet from the old one then my backedup copy of the wallet.  Both still caused this error.  It happens if I try to do anything with the wallet.  If I just let it sync it runs for a while then shows the error.  Once it shows the error I am forced to press ok and the program closes.

Both machines are running Ubuntu.

Any ideas?


Title: Re: can't use my wallet? error -30974
Post by: grue on April 18, 2013, 01:52:16 AM
1. backup your wallet
2. get pywallet
3. extract all the private keys
4. delete wallet (not the backup!)
5. import your keys (https://en.bitcoin.it/wiki/How_to_import_private_keys_v7%2B)


Title: Re: can't use my wallet? error -30974
Post by: jackjack on April 18, 2013, 07:25:12 AM
If you're going to import the 100+ keys from your wallet you should use pywallet's ability to import a file full of private keys


Title: Re: can't use my wallet? error -30974
Post by: ericools on April 18, 2013, 04:31:36 PM
I don't know if I am doing something wrong, but when I go to import.

I got a lot of errors like this when I tried to import:
2013-04-18 11:22:19-0500 [HTTPChannel,1,127.0.0.1] Hexadecimal private keys must be 64 or 66 characters long (specified one is 34 characters long)


Title: Re: can't use my wallet? error -30974
Post by: grue on April 18, 2013, 05:23:57 PM
sounds like your wallet is corrupt


Title: Re: can't use my wallet? error -30974
Post by: jackjack on April 18, 2013, 08:39:18 PM
I don't know if I am doing something wrong, but when I go to import.

I got a lot of errors like this when I tried to import:
2013-04-18 11:22:19-0500 [HTTPChannel,1,127.0.0.1] Hexadecimal private keys must be 64 or 66 characters long (specified one is 34 characters long)

I think you're trying to import a private key in WIF format: so you must uncheck the 'hexadecimal' check box


Title: Re: can't use my wallet? error -30974
Post by: ericools on April 21, 2013, 07:51:04 PM
Hex, is not checked.  On a retry I got it to say that it imported, however no coins show in the new wallet.  Tried merging too, no luck.


Title: Re: can't use my wallet? error -30974
Post by: jackjack on April 21, 2013, 08:07:22 PM
So Hex is not checked but pywallet says "Hexadecimal private keys must be 64 or 66 characters long (specified one is 34 characters long)" ?


Title: Re: can't use my wallet? error -30974
Post by: ericools on April 21, 2013, 08:18:38 PM
It may have been when I tried before, but this time it wasn't checked and still failed.

In any case I have fixed it.

I went to:
https://blockchain.info/wallet/import-wallet

Dropped my wallet.dat file into their page, it imported my keys without issue, I then created a new wallet on my pc and sent myself my coins.


Thanks for the help.


Title: Re: can't use my wallet? error -30974
Post by: odinhf on March 12, 2014, 03:58:12 PM
It may have been when I tried before, but this time it wasn't checked and still failed.

In any case I have fixed it.

I went to:
https://blockchain.info/wallet/import-wallet

Dropped my wallet.dat file into their page, it imported my keys without issue, I then created a new wallet on my pc and sent myself my coins.


Thanks for the help.
I tried that and I get the error: Wallet decrypter returned empty response