Bitcoin Forum

Other => Beginners & Help => Topic started by: madrigal on February 23, 2012, 09:32:40 PM



Title: Darn it
Post by: madrigal on February 23, 2012, 09:32:40 PM
Can Bitcoin Wallets be fixed if they go funny?

Do I really have to unistall and reinstall and let it synch for another two days?

Can I somehow retrieve the block data before doing this?

Can anyone help?

Luckily it was empty.


Title: Re: Darn it
Post by: stevegee58 on February 23, 2012, 09:33:45 PM
Can Bitcoin Wallets be fixed if they go funny?

Do I really have to unistall and reinstall and let it synch for another two days?

Can I somehow retrieve the block data before doing this?

Can anyone help?

Luckily it was empty.

No, yes, no, yes (yes) :D


Title: Re: Darn it
Post by: madrigal on February 23, 2012, 09:36:45 PM
Thanks!  That's real bad news!

I think I'll have to stick to using Mt. Gox or an equivalent - I can't trust Bitcoin Walle - It's happened twice!



Title: Re: Darn it
Post by: deepceleron on February 23, 2012, 09:40:39 PM
Posting the actual errors you are seeing would help you get an accurate answer of what to do.

Uninstalling and reinstalling Bitcoin won't help if one of the databases has been corrupted; the data and the program are kept separately on the computer, and the Bitcoin data/wallet directory is not removed by uninstalling the client program.

If you have never used your wallet addresses for anything, than the wallet file certainly doesn't need to be kept.

What if I were to upload a copy of the blockchain to the web, and post complete instructions for you, so you could quickly fix a corrupted blockchain? Oh, wait, I already did that in this newbie forum: https://bitcointalk.org/index.php?topic=51456.0


Title: Re: Darn it
Post by: Red Emerald on February 23, 2012, 09:41:09 PM
Thanks!  That's real bad news!

I think I'll have to stick to using Mt. Gox or an equivalent - I can't trust Bitcoin Walle - It's happened twice!


Why are you doing to your poor computer? I haven't lost any wallets...


Title: Re: Darn it
Post by: Stephen Gornick on February 23, 2012, 09:57:01 PM
Can Bitcoin Wallets be fixed if they go funny?

They don't normally "go funny".   You probably are seeing something that either isn't clear as to what is happening or you are encountering a symptom of some other problem.

Do I really have to unistall and reinstall and let it synch for another two days?

If you already have the blockchain downloaded, you can let bitcoin recreate a new wallet from scratch by removing the old wallet.dat.

Can I somehow retrieve the block data before doing this?

Keeping the existing blk*.dat and removing everything else will give you a clean slate with whatever blockchain you previously had.
 - http://en.bitcoin.it/wiki/Data_directory

There are alternative clients as well.
Electrum, for instance: http://ecdsa.org/electrum
is a lightweight client that does not need to download the blockchain


Title: Re: Darn it
Post by: madrigal on February 23, 2012, 10:08:04 PM
My PC crashed while Bitcoin Wallet was synchronizing.

It's too late, I unistalled and deleted the lot.

However, my new dowloaded version is not working now.

The error message is:

Runtime Error!

Program:[where the program is]

This application has requested the Runtime to terminate it in an unusual way. Please contact the application support team for more information.


Title: Re: Darn it
Post by: Stephen Gornick on February 23, 2012, 10:14:47 PM
Runtime Error!

Program:[where the program is]

To start clean, you can remove all data files (including the wallet) by deleting the entire directory:
 - http://en.bitcoin.it/wiki/Data_directory


Title: Re: Darn it
Post by: madrigal on February 23, 2012, 10:21:27 PM


Can I somehow retrieve the block data before doing this?

Keeping the existing blk*.dat and removing everything else will give you a clean slate with whatever blockchain you previously had.
 - http://en.bitcoin.it/wiki/Data_directory

Thanks, but which blk DAT should I keep? There are two: blk0001 and blkindex


Title: Re: Darn it
Post by: madrigal on February 23, 2012, 10:29:15 PM
I deleted everything, but still getting the same message >:(


Title: Re: Darn it
Post by: deepceleron on February 23, 2012, 10:29:51 PM
Bad data in the database directory will typically not create a runtime error in the Bitcoin exe, you will get a more diagnostic message such as:

EXCEPTION: 11DbException
Db::open: Invalid  ...
...  called after throwing an instance of 'DbException'
what(): Db::open: Invalid  ...


You can rename the whole %APPDATA%\bitcoin directory to something like \bitcoin-backup, and re-run Bitcoin. If you still have the problem, nothing in the database directory was causing it, and likely you need to uninstall and reinstall the Bitcoin software, or fix an underlying hardware problem on your computer.


Title: Re: Darn it
Post by: madrigal on February 23, 2012, 10:36:49 PM
Yeay! I deleted everything again, dowloaded and setup again, and it appears to be working!

Now I shall read with great interest your wonderful post deepceleron, so that I can speed things up!

Thanks muchly everyone!

madrigal