Bitcoin Forum
May 06, 2024, 11:34:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoind read error and crash. Log not showing much detail.  (Read 2736 times)
BitSimple_Support (OP)
Member
**
Offline Offline

Activity: 61
Merit: 10

BitSimple. A simpler way to buy and sell bitcoins.


View Profile WWW
July 15, 2014, 06:40:53 PM
 #1

Bitcoind (v0.9.2) crashed without an error.

The last lines of the debug.log are:
Code:
2014-07-15 04:03:13 UpdateTip: new best=0000000000000000254ad6360f213075ec51b80209d4ec432b84f25c165151d1  height=310788  log2_work=79.720254  tx=42550544  date=2014-07-15 04:02:37 progress=0.999999
2014-07-15 04:03:13 ProcessBlock: ACCEPTED
2014-07-15 04:03:57 receive version message: /Satoshi:0.8.1/: version 70001, blocks=308362, us=, them=5.44.169.75:8333, peer=5.44.169.75:51840
2014-07-15 04:04:15 receive version message: /bitcoinseeder:0.01/: version 60000, blocks=230000, us=, them=0.0.0.0:0, peer=178.18.90.41:52823
2014-07-15 04:05:09 socket recv error An existing connection was forcibly closed by the remote host.  (10054)
2014-07-15 04:05:11 ResendWalletTransactions()
2014-07-15 04:06:00 UpdateTip: new best=000000000000000033cd828bf6b8662f424f165def4ccd6d3bf0aa86c89a4680  height=310789  log2_work=79.720361  tx=42550658  date=2014-07-15 04:05:56 progress=1.000000
2014-07-15 04:06:00 ProcessBlock: ACCEPTED
2014-07-15 04:06:32 Unable to open file c:\bitcoin\data\blocks\blk00157.dat
2014-07-15 04:06:32 ERROR: ReadBlockFromDisk : OpenBlockFile failed

Any ideas?

1714995296
Hero Member
*
Offline Offline

Posts: 1714995296

View Profile Personal Message (Offline)

Ignore
1714995296
Reply with quote  #2

1714995296
Report to moderator
1714995296
Hero Member
*
Offline Offline

Posts: 1714995296

View Profile Personal Message (Offline)

Ignore
1714995296
Reply with quote  #2

1714995296
Report to moderator
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714995296
Hero Member
*
Offline Offline

Posts: 1714995296

View Profile Personal Message (Offline)

Ignore
1714995296
Reply with quote  #2

1714995296
Report to moderator
rarkenin
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500



View Profile
July 15, 2014, 06:54:03 PM
 #2

Might be me, but "ERROR: ReadBlockFromDisk : OpenBlockFile failed" looks like an error. Could you try renaming that offending file to some unrelated name?

If that fails, you may consider trying to re-sync after deleting or renaming the C:\bitcoin\data\blocks folder.
BitSimple_Support (OP)
Member
**
Offline Offline

Activity: 61
Merit: 10

BitSimple. A simpler way to buy and sell bitcoins.


View Profile WWW
July 15, 2014, 10:40:35 PM
 #3

Might be me, but "ERROR: ReadBlockFromDisk : OpenBlockFile failed" looks like an error. Could you try renaming that offending file to some unrelated name?

If that fails, you may consider trying to re-sync after deleting or renaming the C:\bitcoin\data\blocks folder.

Yes would be the error I can see how the title would be confusing.  Outside of the debug.log there was no error message when the application crashed.  I restarted bitcoind and it validated blocks without issue.  The start of the log after restart is the following (no indication of the read error).
Code:
2014-07-15 16:48:01 Bitcoin version v0.9.2.0-g505681f-beta (Fri, 13 Jun 2014 12:26:02 +0200)
2014-07-15 16:48:01 Using OpenSSL version OpenSSL 1.0.1h 5 Jun 2014
2014-07-15 16:48:01 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2014-07-15 16:48:01 Default data directory
2014-07-15 16:48:01 Using data directory c:\bitcoin\data
2014-07-15 16:48:01 Using at most 250 connections (2048 file descriptors available)
2014-07-15 16:48:01 Using 8 threads for script verification
2014-07-15 16:48:01 Using wallet wallet.dat
2014-07-15 16:48:01 init message: Verifying wallet...
2014-07-15 16:48:01 CDBEnv::Open : LogDir=c:\bitcoin\data\database ErrorFile=c:\bitcoin\data\db.log
2014-07-15 16:48:02 Bound to [::]:8333
2014-07-15 16:48:02 Bound to 0.0.0.0:8333
2014-07-15 16:48:02 AddLocal(66.232.104.157:8333,5)
2014-07-15 16:48:02 init message: Loading block index...
2014-07-15 16:48:02 Opening LevelDB in c:\bitcoin\data\blocks\index
2014-07-15 16:48:02 Opened LevelDB successfully
2014-07-15 16:48:02 Opening LevelDB in c:\bitcoin\data\chainstate
2014-07-15 16:48:02 Opened LevelDB successfully
2014-07-15 16:48:11 LoadBlockIndexDB(): last block file = 157
2014-07-15 16:48:11 LoadBlockIndexDB(): last block file info: CBlockFileInfo(blocks=132, size=35903286, heights=310658...310789, time=2014-07-14...2014-07-15)
2014-07-15 16:48:11 LoadBlockIndexDB(): transaction index enabled
2014-07-15 16:48:11 LoadBlockIndexDB(): hashBestChain=000000000000000033cd828bf6b8662f424f165def4ccd6d3bf0aa86c89a4680 height=310789 date=2014-07-15 04:05:56 progress=0.998249
2014-07-15 16:48:11 init message: Verifying blocks...
2014-07-15 16:48:11 Verifying last 288 blocks at level 3
2014-07-15 16:48:41 No coin database inconsistencies in last 289 blocks (116571 transactions)
2014-07-15 16:48:42  block index           40463ms
2014-07-15 16:48:42 init message: Loading wallet...
2014-07-15 16:48:42 nFileVersion = 90200
2014-07-15 16:48:42 Keys: 0 plaintext, 1920 encrypted, 414 w/ metadata, 1920 total
2014-07-15 16:48:42  wallet                  234ms
2014-07-15 16:48:42 init message: Rescanning...
2014-07-15 16:48:42 Rescanning last 37 blocks (from block 310752)...

Bitcoind has been very reliable.  It was just unusual to get a fatal read error which caused the application to crash and then restarting it showed no issue.  It would indicate the error (whatever caused it) was recoverable.

coinsolidation
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250

Bitmark Developer


View Profile WWW
July 15, 2014, 10:46:42 PM
 #4

The fault was that the block file on the hard disk could not be opened.

I would suggest backing up your wallet immediately if you have not, then closing bitcoin and running some health checks on the hard disk.

Bitmark (reputation+money) : Bitmark v0.9.4 (release)
KriszDev
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
July 18, 2014, 11:41:42 AM
 #5

How much free space you have in drive C?
BitSimple_Support (OP)
Member
**
Offline Offline

Activity: 61
Merit: 10

BitSimple. A simpler way to buy and sell bitcoins.


View Profile WWW
July 18, 2014, 02:37:04 PM
 #6

How much free space you have in drive C?

About 55 GB.  It has not occured again and bitcoind was able to restart without a rebuild or re-index. 

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!