Bitcoin Forum

Other => Beginners & Help => Topic started by: Dymix on April 24, 2013, 08:49:03 AM



Title: "Bitcoin-Qt: Failed to read block"
Post by: Dymix on April 24, 2013, 08:49:03 AM
Hi.

I'm having a problem with my wallet om my mac. When I try to start the program, Bitcoin-Qt, it shows me an error "Bitcoin-Qt: Failed to read block" and then crashes. This happens everytime I open the wallet, making my bitcoins stuck inside..

Anyone knows what could be the reason? And how to fix it? :)

Thanks,
Dymix.


Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: Dymix on April 24, 2013, 09:05:56 AM
Update:
In case it could help, I've managed to locate a errorcode from when the program crashed, and I've copied it into a Evernote doc, and here it is:
https://www.evernote.com/shard/s89/sh/51046a63-70dd-42fb-88e3-fc1f990122da/c0b2940d128e8fcfa071a63216299e65


Really hope someone can help me!


Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: alphonse3 on April 24, 2013, 09:07:27 AM
Hi.

I'm having a problem with my wallet om my mac. When I try to start the program, Bitcoin-Qt, it shows me an error "Bitcoin-Qt: Failed to read block" and then crashes. This happens everytime I open the wallet, making my bitcoins stuck inside..

Anyone knows what could be the reason? And how to fix it? :)

Thanks,
Dymix.

I would back up wallet right away - (to multiple sources not just 1 place) -

Then uninstall program, reinstall from scratch

copy the wallet over at the end and see if it works...

Could be dying/bad RAM or bad hard drive


Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: alphonse3 on April 24, 2013, 09:11:38 AM
wallet.dat is the file you want to back up 1st


https://bitcointalk.org/index.php?topic=36542.0



Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: FrenchFriesKetchup on April 24, 2013, 09:12:33 AM
Yeah you should backup your wallet file!!

After that i would try to remove the whole bitcoin data directory. (I would say there is a problem with the blockchain file.) Then start bitcoin again let it download the blockchain again (might take a while). When its done exit it, copy your backedup wallet file over the new created and start bitcoin again.

If you don't see your coins you have to close it again and start bitcoin with the -rescan option.


Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: Dymix on April 24, 2013, 10:24:46 AM
Alright I'm making a backup of the entire folder. When I'm done, I will delete everything related to bitcoins on my macbook, then reinstall Bitcoin-Qt, let it download the entire blockchain again. When it's done, I will overwrite the wallet.dat file on my harddisk, with the one I just made a backup of.

Is that right? Just want to make sure :)


Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: Dymix on April 24, 2013, 10:25:28 AM
If you don't see your coins you have to close it again and start bitcoin with the -rescan option.

-Rescan option? Where do I find that? :)


Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: alphonse3 on April 24, 2013, 10:27:36 AM
If you don't see your coins you have to close it again and start bitcoin with the -rescan option.

-Rescan option? Where do I find that? :)

you need to run it from the command line

if it was windows the command would be

bitcoin.exe -rescan

I think it is very similar (no .exe) on Macs in terminal


Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: alphonse3 on April 24, 2013, 10:28:39 AM
Alright I'm making a backup of the entire folder. When I'm done, I will delete everything related to bitcoins on my macbook, then reinstall Bitcoin-Qt, let it download the entire blockchain again. When it's done, I will overwrite the wallet.dat file on my harddisk, with the one I just made a backup of.

Is that right? Just want to make sure :)

Yes - that's right.



Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: alphonse3 on April 24, 2013, 10:32:06 AM
Write back and let us know how it went...


Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: Dymix on April 24, 2013, 11:27:21 AM
I will, but it might take a day or two, because of my internet speed :)


Title: Re: "Bitcoin-Qt: Failed to read block"
Post by: Dymix on April 26, 2013, 10:14:08 PM
Thanks mates! Got it working, by following your steps! :D My God was I relieved when I found the bitcoins in my wallet again! Tips your way! :)