Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: skyvahaerie on February 16, 2014, 10:29:25 PM



Title: bitcoin-qt failed to read/write block
Post by: skyvahaerie on February 16, 2014, 10:29:25 PM
As the subject states i have trouble to download the blockchain with bitcoin-qt 0.86 and 0.85 and 0.84 (did not try previous versions, think it won't work either). Always get the failed to read/write block error after a while. I already tried the following:
- started bitcoin with -reindex
- reinstalled wallet
- deleted block data and directory (did a backup of wallet.dat)
- downloaded a bootstrap.dat

There is enough free space on my harddrive, i even tried it on a freshly formated disk.
System: Win 7 Pro x64
Any help is appreciated.

Debuglog:
Code:
Unable to open file E:\Bitcoin\Bitcoin\blocks\blk00000.dat
ERROR: CBlock::ReadFromDisk() : OpenBlockFile failed
*** Failed to read block
connection timeout
trying connection 84.92.43.202:8333 lastseen=5.4hrs
Flushing wallet.dat
Flushed wallet.dat 47ms
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
Loaded 4639 blocks from external file in 16888ms
dumpaddr thread stop
addcon thread interrupt
msghand thread interrupt
net thread interrupt
connection timeout
opencon thread interrupt
Flush(false)
DBFlush(false) ended               0ms
StopNode()
UPNP_DeletePortMapping() returned : 0
upnp thread interrupt
Flushed 10147 addresses to peers.dat  31ms
Committing 19758 changed transactions to coin database...
Flush(true)
wallet.dat refcount=0
wallet.dat checkpoint
wallet.dat detach
wallet.dat closed
DBFlush(true) ended              63ms



2014-02-16 22:05:28 Unable to open file E:\Bitcoin\Bitcoin\blocks\blk00000.dat
2014-02-16 22:05:28 ERROR: CBlock::WriteToDisk() : OpenBlockFile failed
2014-02-16 22:05:28 *** Failed to write block
2014-02-16 22:05:33 connection timeout
2014-02-16 22:05:33 trying connection 97.94.193.141:8333 lastseen=0.0hrs
2014-02-16 22:05:33 connected 97.94.193.141:8333
2014-02-16 22:05:33 send version message: version 70001, blocks=15836, us=84.58.126.208:8333, them=97.94.193.141:8333, peer=97.94.193.141:8333
2014-02-16 22:05:34 ERROR: ProcessBlock() : AcceptBlock FAILED
2014-02-16 22:05:34 Loaded 3035 blocks from external file in 16127ms
2014-02-16 22:05:34 Added time data, samples 2, offset -2 (+0 minutes)
2014-02-16 22:05:34 receive version message: /Satoshi:0.8.6/: version 70001, blocks=286251, us=84.58.126.208:62729, them=97.94.193.141:8333, peer=97.94.193.141:8333
2014-02-16 22:05:34 opencon thread interrupt
2014-02-16 22:05:34 msghand thread interrupt
2014-02-16 22:05:34 dumpaddr thread stop
2014-02-16 22:05:34 addcon thread interrupt
2014-02-16 22:05:34 net thread interrupt
2014-02-16 22:05:34 Shutdown : In progress...
2014-02-16 22:05:34 Flush(false)
2014-02-16 22:05:34 wallet.dat refcount=0
2014-02-16 22:05:34 wallet.dat checkpoint
2014-02-16 22:05:34 wallet.dat detach
2014-02-16 22:05:34 wallet.dat closed
2014-02-16 22:05:34 DBFlush(false) ended             156ms
2014-02-16 22:05:34 StopNode()
2014-02-16 22:05:34 UPNP_DeletePortMapping() returned : 0
2014-02-16 22:05:34 upnp thread interrupt
2014-02-16 22:05:34 Flushed 10129 addresses to peers.dat  31ms
2014-02-16 22:05:34 Committing 15179 changed transactions to coin database...
2014-02-16 22:05:35 Flush(true)
2014-02-16 22:05:35 wallet.dat refcount=0
2014-02-16 22:05:35 wallet.dat checkpoint
2014-02-16 22:05:35 wallet.dat detach
2014-02-16 22:05:35 wallet.dat closed
2014-02-16 22:05:35 DBFlush(true) ended              78ms
2014-02-16 22:05:35 Shutdown : done






Title: Re: bitcoin-qt failed to read/write block
Post by: rmines on February 16, 2014, 10:32:29 PM
Did you check your HDD/SSD's smart status, are there any reallocated bad sectors?
Do you have the same problem on another pc?


Title: Re: bitcoin-qt failed to read/write block
Post by: cp1 on February 16, 2014, 10:34:06 PM
Is your disk full?  (when you say there's enough room, is that on C or E, or both?)


Title: Re: bitcoin-qt failed to read/write block
Post by: skyvahaerie on February 16, 2014, 10:36:37 PM
I have only one pc, so can't check with another. But i have 2 HDD's and one SSD in my rig, i tried it on all of them. I did not check smart status of the disk yet, will do this next. But i don't think all my drives are damaged/dying, quite unlikly. One of the HDD's is not even two days old, bought it last friday.

On all disks are at least 120 GB of free space available.


Title: Re: bitcoin-qt failed to read/write block
Post by: rmines on February 16, 2014, 10:39:07 PM
Are you using Trend Micro Antivirus?
If so try disabling it and downloading the blockchain again https://bitcointalk.org/index.php?topic=171891


Title: Re: bitcoin-qt failed to read/write block
Post by: skyvahaerie on February 16, 2014, 10:41:56 PM
No, i don't use Trend Micro Antivirus, at the moment i use bitdefender free edition and comodo software firewall. Will try with one/both disabled.


EDIT: Same issue with bitdefender free edition and comodo software firewall disabled, tried it with bitdefender alone and then with comodo alone, same result: Failed to read/write block.

Thanks for your input so far. :)


Title: Re: bitcoin-qt failed to read/write block
Post by: rmines on February 18, 2014, 10:30:27 AM
I was wondering if you are still facing the same problem?
If you managed to solve the error, could you post the solution here?


Title: Re: bitcoin-qt failed to read/write block
Post by: skyvahaerie on February 18, 2014, 01:51:46 PM
Did not find a solution. I tested smart status of all my drives and they are good. I have migrated to multibit at the moment, but will keep trying to find a solution, although i have no clue where to look for now.


Title: Re: bitcoin-qt failed to read/write block
Post by: Olly_K on February 18, 2014, 02:08:47 PM
I had issues with my bitcoin client recently, after upgrading my RAM. After a memtest (google) it turned out I had a faulty module. The client seems to be quite RAM intensive.


Title: Re: bitcoin-qt failed to read/write block
Post by: skyvahaerie on February 20, 2014, 03:00:22 PM
Tested my Ram now, it works fine too.
I updated my java and i thought that did the trick, as i could download nearly 50% of the blockchain, but then the errors came back.


Title: Re: bitcoin-qt failed to read/write block
Post by: cp1 on February 20, 2014, 03:10:15 PM
Have you tried it just using your C drive, not E?