Bitcoin Forum

Other => Beginners & Help => Topic started by: TeleBlaster on March 19, 2013, 10:47:18 AM



Title: Bitcoin-QT: System Error: Database Corrupted
Post by: TeleBlaster on March 19, 2013, 10:47:18 AM
I'm new to BitCoin and intend to use it primarily for retail (not mining).  Started downloading BitCoin-QT, this weekend.  For reasons relating to power supply, I shut it down before it was finished building the blockchain database.  When I started up BitCoin-QT, this AM I received an error "System Error: Database Corrupted".  I relaunched and received the same error. 

Since I had not yet done anything with the app, other than start building the blockchain data, I thought I'd simply uninstall and reinstall.  I still get the same error. 

Any advice on how to get this fixed?


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: empoweoqwj on March 19, 2013, 10:53:28 AM
I got same thing. Advice is the software is totally OTT for retail. And bugged as well.

Just use a different wallet app / website. You can import wallet.dat from BitCoin-QT install. Save you many hours of unnecessary worry / wasted processing.


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Stephen Gornick on March 19, 2013, 11:12:11 AM
I thought I'd simply uninstall and reinstall.

If you never used any addresses from your wallet, you can wipe the entire Bitcoin data directory and restart the client and it will re-create all the files it needs.
 - http://en.bitcoin.it/wiki/Data_directory



Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: TeleBlaster on March 19, 2013, 11:15:21 AM
Thanks.  I'll try to wipe the directory, first.  If that doesn't work, I'll move to Multi-Bit to have a simpler wallet.  Any comments good/bad about Multi-Bit?


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Newscastix on March 19, 2013, 11:19:02 AM
Wiping the data directory should work as it is basically a fresh installation then with a new wallet file, etc.


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Stephen Gornick on March 19, 2013, 12:23:12 PM
Any comments good/bad about Multi-Bit?

Well, the comment in red at the bottom should be understood:
 - https://multibit.org/help_walletManagement.html


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: TeleBlaster on March 21, 2013, 08:21:08 AM
Thanks for pointing that out.  I had seen it, and that's part of what prompted me to look at Bitcoin-QT.  Am I correct in understanding that I don't need to worry about that with Bitcoin-QT?

I seem to be back on track with "Reindexing blocks on disk".  Thanks for your help.


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Stephen Gornick on March 21, 2013, 08:53:43 AM
Am I correct in understanding that I don't need to worry about that with Bitcoin-QT?

Bitcoin-Qt provides the (optional) step for passphrase encryption which will encrypt the private keys in the wallet.


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: swimmer7 on April 09, 2013, 11:38:08 AM
I have a similar problem. I installed QT, generated an adress, bought some coins and after some hours Bitcoin-qt got stuck, with 80% being completed... there was an error message containig the word Database... and now I cant start  QT..receiving the error message: Database corrupted.... I used directions from
http://bitcoin.stackexchange.com/questions/4920/my-client-stopped-synchronizing-how-can-i-access-my-wallet
hoping to extract a privatekey and upload it to an online wallet, but it didn't work. when i typed bitcoind in an MS-dos prompt i got no reaction for half an hour and when I type "bitcoind" now, i get the message: System Error: Database corrupted.
I'm worried: Can my coins somehow be retrieved?


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Stephen Gornick on April 15, 2013, 11:56:41 PM
Can my coins somehow be retrieved?

If you made a backup, try that first. (Well, make a backup of the possibly bad wallet.dat before restoring anything).

Or try importing it here and then if that works, start over with a new, empty wallet.dat and send the funds back.
 - http://blockchain.info/wallet/import-wallet


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: metraX on April 16, 2013, 01:36:11 AM
I'm new to BitCoin and intend to use it primarily for retail (not mining).  Started downloading BitCoin-QT, this weekend.  For reasons relating to power supply, I shut it down before it was finished building the blockchain database.  When I started up BitCoin-QT, this AM I received an error "System Error: Database Corrupted".  I relaunched and received the same error. 

Since I had not yet done anything with the app, other than start building the blockchain data, I thought I'd simply uninstall and reinstall.  I still get the same error. 

Any advice on how to get this fixed?

I would report this to the developers here:

https://github.com/bitcoin/bitcoin/issues/2305


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Thør on October 01, 2013, 04:26:42 AM
I know this thread is old, but this is the explanation I wish I had seen a couple of hours ago...

I encountered the same problem on OSX and was able to rectify the issue by closing Bitcoin-Qt, navigating to the bitcoin data folder...

"user">Library>Application Support>Bitcoin

...and deleting everything except the wallet.dat and peers.dat files (this may work if you delete peers.dat too, but I didn't).

Reopen Bitcoin-Qt and it should re-downloaded the blockchain while keeping your addresses/private keys intact.


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: bumpin4 on December 08, 2013, 05:15:25 PM
This worked for me, try right clicking the bitcoin icon and select properties.

Change the "Target" box from
"C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe"

to

"C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" -reindex

click apply and ok. Then launch your bitcoin wallet using that icon. It will take some time to reindex everything but this did the trick for me.

After you run it the first time don't forget to undo the changes above or it will reindex every time you use that icon.

Paul


1Aq2Z4f97rLFMod6ApkCpurqy2o88666aS


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Hawkeye99 on December 15, 2013, 07:52:16 PM
I have downloaded Bitcoin-QT from http://bitcoin.org/en/download and during its update, I get the DB corrupted error. Is there another site I can download bitcoin-qt from?


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Hawkeye99 on December 19, 2013, 02:07:05 AM
Anyone know how to get this to work with Windows 8.1?


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Kaligulax on December 19, 2013, 12:31:57 PM
go to your %appdata% folder then roaming. then delete everything but the wallet.file, then and only then, un-install the program and re-install it. i am sure this will solve your problem. i have worked a ton with the QT source code and am quite familiar with it.


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Hawkeye99 on December 25, 2013, 10:28:40 PM
go to your %appdata% folder then roaming. then delete everything but the wallet.file, then and only then, un-install the program and re-install it. i am sure this will solve your problem. i have worked a ton with the QT source code and am quite familiar with it.
Thanks. Did this and still same problem. Am I doing something wrong when reinstalling it? Anything specific I should be doing when I do the reinstall?


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: infinitybo on December 26, 2013, 02:18:45 PM
@Hawkeye99 no you are not doing something wrong however that problem could be avoid if you guys had created a backup before.


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: glon on January 24, 2014, 07:32:54 AM
@Hawkeye99 no you are not doing something wrong however that problem could be avoid if you guys had created a backup before.

I have several backups and only now started getting the error 30974 related to a corrupted wallet.dat. Is there any way of salvaging the wallet WITHOUT having to redownload the whole fricking blockchain? I'm on 6mbit DSL... thanks!


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: Cryptoweez on February 07, 2014, 07:08:52 AM
I'm having this issue while trying to open my bitcoin QT wallet: erreur système :CDB() : cannot open database file wallet.dat, error -30974
Does my issue is in the same "kind" of issue mention in this post?


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: soy on November 18, 2014, 03:37:00 PM
I imagine there are fewer and fewer blockchains at  home all the time given its size.

I maintain two blockchains having Bitcoin-QT on two machines.  This morning I got a payout and soon after that blockchain came up corrupted.  So, I know the corruption is in the last block.

Can I go into the database and remove the last block, then remove the lock on the directory, delete the wallet, and have the blockchain start building from just before the deleted block?

I realize that all the other times this has happened I have had to wipe the whole thing then after copying the blockchain from the other machine, rebuilt from that but it takes weeks even when building from a current blockchain.

soy

Okay, this is odd.  I had deleted the wallet and removed the lock then tried but got a corrupt database message again.  Then I put the machine on another sub-net here, removed the lock and the wallet and tried again.  This time the Bitcoin-QT opened just fine and caught up the blockchain!  Putting the wallet having the new payout on the other machine with a blockchain, it opened perfectly with the correct balance and is up to date.  So, all fixed and I don't know why.


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: HeroCat on November 19, 2014, 10:16:49 AM
In your place I would use Blockchain online wallet together with Multibit wallet or only Multibit wallet - it is much more simple. At this stage BTC network is expanded a lot, so Multibit is good choice.


Title: Re: Bitcoin-QT: System Error: Database Corrupted
Post by: bornil267645 on November 19, 2014, 10:49:26 AM
I faced the similar problem too. I was bit worried at the time. Used a different wallet to recover. :D ;D