Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: supernintendo64 on June 23, 2016, 04:50:36 PM



Title: Someone please help, my bitcoin block index is corrupted.
Post by: supernintendo64 on June 23, 2016, 04:50:36 PM
I just got Bitcoin Core and it's been downloading the block index for a few days now and then just a few minutes ago, my stupid computer crashes while it's running Bitcoin Core and corrupts my block index. Now it won't open. I don't know what to do. I don't want to start the download all over again. Please help.
EDIT: Language.


Title: Re: Someone please help, my bitcoin block index is corrupted.
Post by: achow101 on June 23, 2016, 04:52:54 PM
You will have to reindex the blockhain it should automatically prompt you for that when it starts up. Reindexing is not the same as redownloading, nothing is downloaded, it just indexes the blocks you have already downloaded and continues syncing from where it left off.


Title: Re: Someone please help, my bitcoin block index is corrupted.
Post by: supernintendo64 on June 23, 2016, 05:01:00 PM
Thanks but I forgot to mention that when I open Bitcoin Core, it says that it had an error reading the database and then I get a runtime error. I'm running Windows 10 and I'm using the latest version of Core.


Title: Re: Someone please help, my bitcoin block index is corrupted.
Post by: achow101 on June 23, 2016, 05:05:05 PM
Thanks but I forgot to mention that when I open Bitcoin Core, it says that it had an error reading the database and then I get a runtime error. I'm running Windows 10 and I'm using the latest version of Core.
What is the exact error given? Can you also provide the Debug.log file?


Title: Re: Someone please help, my bitcoin block index is corrupted.
Post by: supernintendo64 on June 23, 2016, 05:15:02 PM
Thanks but I forgot to mention that when I open Bitcoin Core, it says that it had an error reading the database and then I get a runtime error. I'm running Windows 10 and I'm using the latest version of Core.
What is the exact error given? Can you also provide the Debug.log file?
https://i.imgur.com/cdjFXFk.png
https://i.imgur.com/Lu2glNp.png

And no, I don't know where the debug.log file is. It's not in the program's files.


Title: Re: Someone please help, my bitcoin block index is corrupted.
Post by: achow101 on June 23, 2016, 05:26:41 PM
Thanks but I forgot to mention that when I open Bitcoin Core, it says that it had an error reading the database and then I get a runtime error. I'm running Windows 10 and I'm using the latest version of Core.
What is the exact error given? Can you also provide the Debug.log file?
https://i.imgur.com/cdjFXFk.png
https://i.imgur.com/Lu2glNp.png

And no, I don't know where the debug.log file is. It's not in the program's files.
In the windows file explorer and in the top bar, type
Code:
%appdata%/Bitcoin
And hit enter.

The Debug.log file is in there. Post all of its contents here. If it is to large, go to http://pastebin.com and post it in a new paste there. Then post the link here.

I think you will need to delete a few things to fix the error. Try deleting the chainstate folder and the index folder inside of the blocks folder.


Title: Re: Someone please help, my bitcoin block index is corrupted.
Post by: supernintendo64 on June 23, 2016, 05:35:41 PM
Thanks but I forgot to mention that when I open Bitcoin Core, it says that it had an error reading the database and then I get a runtime error. I'm running Windows 10 and I'm using the latest version of Core.
What is the exact error given? Can you also provide the Debug.log file?
https://i.imgur.com/cdjFXFk.png
https://i.imgur.com/Lu2glNp.png

And no, I don't know where the debug.log file is. It's not in the program's files.
In the windows file explorer and in the top bar, type
Code:
%appdata%/Bitcoin
And hit enter.

The Debug.log file is in there. Post all of its contents here. If it is to large, go to http://pastebin.com and post it in a new paste there. Then post the link here.

I think you will need to delete a few things to fix the error. Try deleting the chainstate folder and the index folder inside of the blocks folder.

It was too big even for pastebin so I putted it in dropbox.

https://www.dropbox.com/s/yimua7sq0wcxpya/debug.log?dl=0

Also I will try what you suggested.

EDIT: I tried what you suggested and it reset the progress bar.

EDIT 2: I put the folders back and changed some file names. I finally got it to reindex.


Title: Re: Someone please help, my bitcoin block index is corrupted.
Post by: etparle on June 23, 2016, 06:02:11 PM
Is there a reason you're using core? You can use a lighter weight wallet like Electrum which doesn't require you to download the entire blockchain. It's 100% as safe as using core.


Title: Re: Someone please help, my bitcoin block index is corrupted.
Post by: killerjoegreece on July 01, 2016, 03:41:07 PM
maybe you can try a bootstrap. or copy and paste the files in another location and have em ready to copy them back again once corruption happens.


Title: Re: Someone please help, my bitcoin block index is corrupted.
Post by: cr1776 on July 01, 2016, 03:50:16 PM
maybe you can try a bootstrap. or copy and paste the files in another location and have em ready to copy them back again once corruption happens.

Using a bootstrap is a bad idea and has been since version 0.10.0.