Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: qasimilyas99 on July 07, 2017, 12:26:06 PM



Title: Error reading from database shutting down
Post by: qasimilyas99 on July 07, 2017, 12:26:06 PM
I have installed Bitcoin core non external drive & my drive cable accidentally pulled from USB now this error showing when i try to open bitcoin core >>>>> error reading from database shutting down.


Title: Re: Error reading from database shutting down
Post by: ranochigo on July 07, 2017, 12:48:44 PM
Your Bitcoin Core is likely corrupted, it is never okay to pluck the data directory out when Bitcoin Core is running.

You likely have to run Bitcoin Core with the reindex flag to reorganise the blockchain all over again. Just in case, can you post the debug log here?


Title: Re: Error reading from database shutting down
Post by: jackg on July 08, 2017, 07:33:28 PM
I have installed Bitcoin core non external drive & my drive cable accidentally pulled from USB now this error showing when i try to open bitcoin core >>>>> error reading from database shutting down.

Can you post the debug log. If not, try these commands in this order:
1.
Code:
bitcoin-qt -datadir=<file>
Change '<file>' to the actual location of the place the wallet.dat file is.

2.
Code:
bitcoin-qt -reindex

The first will just change the config file and will take a few seconds and cause no damage to anything. The second will completely rescan the blockchain for the block again so will take a while.