Author

Topic: Error message "Error opening block database" (Read 252 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
August 30, 2019, 01:19:12 PM
#11
Yeah it means your hard drive is dying.
OP mention "I got a new hard drive", so i doubt this case unless OP still uses his old HDD or got defect product (which is very unlikely)
In this context that can mean a replacement drive, which could be second hand one. A defect product is also not "very unlikely".

You're right, i forgot it's common to see customer got second-hand/refurbished HDD when you claim a warranty.

Additionally, this doesn't mention whether it is an internal or external drive. In the case of the later, the issue is likely the connector.

Also possible since OP's bitcoin folder located on drive I:, unless he have lots of internal drive/partition.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
Yeah it means your hard drive is dying.

OP mention "I got a new hard drive", so i doubt this case unless OP still uses his old HDD or got defect product (which is very unlikely)

@ultrametalurge can you install CrystalDiskInfo to see the S.M.A.R.T/health status of your HDD?
legendary
Activity: 2674
Merit: 2965
Terminated.
Yeah it means your hard drive is dying.
OP mention "I got a new hard drive", so i doubt this case unless OP still uses his old HDD or got defect product (which is very unlikely)
In this context that can mean a replacement drive, which could be second hand one. A defect product is also not "very unlikely". HDDs aren't as reliable as they should be. Additionally, this doesn't mention whether it is an internal or external drive. In the case of the later, the issue is likely the connector.
legendary
Activity: 3682
Merit: 1580
Yeah it means your hard drive is dying.
legendary
Activity: 2674
Merit: 2965
Terminated.
If it happens frequently, it is usually a hardware issue.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
Yeah you still have to reindex but it means the error shouldn't show up again as you have to manually get rid of the problem and then reload the database...
newbie
Activity: 4
Merit: 1
Here is the latest from the debug log.

2019-08-25T13:13:22Z Cache configuration:
2019-08-25T13:13:22Z * Using 2.0 MiB for block index database
2019-08-25T13:13:22Z * Using 8.0 MiB for chain state database
2019-08-25T13:13:22Z * Using 440.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2019-08-25T13:13:22Z init message: Loading block index...
2019-08-25T13:13:22Z Opening LevelDB in I:\blocks\index
2019-08-25T13:13:22Z Opened LevelDB successfully
2019-08-25T13:13:22Z Using obfuscation key for I:\blocks\index: 0000000000000000
2019-08-25T13:13:22Z LoadBlockIndexDB: last block file = 0
2019-08-25T13:13:22Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=0, size=0, heights=0...0, time=1970-01-01...1970-01-01)
2019-08-25T13:13:22Z Checking all blk files are present...
2019-08-25T13:13:22Z Initializing databases...
2019-08-25T13:13:22Z Opening LevelDB in I:\chainstate
2019-08-25T13:13:22Z Fatal LevelDB error: Corruption: 1616 missing files; e.g.: I:\chainstate/101567.ldb
2019-08-25T13:13:22Z You can use -debug=leveldb to get more complete diagnostic messages
2019-08-25T13:13:22Z Fatal LevelDB error: Corruption: 1616 missing files; e.g.: I:\chainstate/101567.ldb
2019-08-25T13:13:22Z : Error opening block database.
Please restart with -reindex or -reindex-chainstate to recover.
2019-08-25T13:13:28Z init message: Loading block index...
2019-08-25T13:13:28Z Wiping LevelDB in I:\blocks\index
2019-08-25T13:13:28Z Opening LevelDB in I:\blocks\index
2019-08-25T13:13:28Z Opened LevelDB successfully
2019-08-25T13:13:28Z Using obfuscation key for I:\blocks\index: 0000000000000000
2019-08-25T13:13:28Z Initializing databases...
2019-08-25T13:13:28Z Wiping LevelDB in I:\chainstate
2019-08-25T13:13:28Z Opening LevelDB in I:\chainstate
2019-08-25T13:13:28Z Fatal LevelDB error: Corruption: 1616 missing files; e.g.: I:\chainstate/101567.ldb
2019-08-25T13:13:28Z You can use -debug=leveldb to get more complete diagnostic messages
2019-08-25T13:13:28Z Fatal LevelDB error: Corruption: 1616 missing files; e.g.: I:\chainstate/101567.ldb
2019-08-25T13:13:28Z Error: Error opening block database
2019-08-25T13:13:29Z Shutdown: In progress...
2019-08-25T13:13:29Z scheduler thread interrupt
2019-08-25T13:13:29Z Shutdown: done
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
From what I remember, this problem normally gets fixed by renaming the last fine in your block data directory (the "blocks" folder in the data directory) and then restarting bitcoin core.

Like etf says if you provide us with more information we might be able to help more (posting the debug.log). It might also be helpful to know if you have any antivirus running as that can sometimes tamper with the storing of blocks (if you do, quarenteen the block database folder - don't completely deactivate the AV).
legendary
Activity: 1946
Merit: 1427
Might be useful to post the debug log here if you want people to look into it a bit further.

It sounds like your files are somehow corrupted though.
newbie
Activity: 4
Merit: 1
I had to reinstall BTC core after my old harddrive crashed.  I got a new hard drive.  When i download bitcoin core, after it synchs anywhere between 30-60% of the blocks, I keep getting the error message "error opening block database. Do you want to rebuild the block database now?".  I click  yes, but then it says "error opening block database" and it won't allow me to download more blocks.  How do i fix this?
Jump to: