Author

Topic: Corrupted block database detected (Read 253 times)

legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
July 08, 2022, 09:46:27 PM
#18
Looks like it might’ve worked. Is it downloading the entire blockchain again? Seems to be going quicker than the first time.
Open your settings in: "Settings->Options..." and see if "Prune block storage to" is ticked.

If it has a check, then it's really downloading the whole blockchain again since there's no way to remake the block index from the blocks that was already pruned.
If it's not checked, it's just verifying the already-downloaded blocks and creating a new index as well as fetching the UTXO set for your wallets.
newbie
Activity: 8
Merit: 2
July 08, 2022, 10:27:57 AM
#17
Looks like it might’ve worked. Is it downloading the entire blockchain again? Seems to be going quicker than the first time.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
July 08, 2022, 06:19:06 AM
#16
Ok Im going to give this a shot. First ever attempt using command line Im sure Ill have additional questions. All the help is much appreciated!

Once you open Bitcoin-Qt with --reindex parameter from the command line, you can safely close the CMD window as it is not needed anymore (it won't close the Bitcoin-Qt program).
newbie
Activity: 8
Merit: 2
July 08, 2022, 04:14:56 AM
#15
Ok I’m going to give this a shot. First ever attempt using command line I’m sure I’ll have additional questions. All the help is much appreciated!
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
July 07, 2022, 10:04:30 PM
#14
I honestly have no idea. I know where to find the bitcoin-qt.exe file if that’s what i need.
Good, then follow these instructions to run bitcoin-qt.exe with --reindex parameter: https://bitcointalksearch.org/topic/m.60513193
You'll only need the bitcoin data directory if you want to delete the suggested files, otherwise, reindex will already do that on its process.

Take note that if your Core has "pruning" settings enabled, adding that parameter or deleting chainstate/index folder will trigger a full re-sync instead.
newbie
Activity: 8
Merit: 2
July 07, 2022, 10:05:59 AM
#13
Okay, I used the winkey+r and found the bitcoin folder. I also see other folders and files mentioned previously.
newbie
Activity: 8
Merit: 2
July 07, 2022, 07:03:50 AM
#12
I think it’s 1tb.
Last thing before it started happening was just simply running it. I let it shut down before powering off each time.
I bought a cheap pc to run it on, not using it for any daily activity.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
July 07, 2022, 06:20:50 AM
#11
I honestly have no idea. I know where to find the bitcoin-qt.exe file if that’s what i need.

No, the exe file is in a separate location.
If you did not change the default location, as stated above the data files are in C:\users\your_user_name\AppData\Roaming\Bitcoin\

How large is your harddrive?
What was the last thing that happened before started getting the error?

Corruption is usually (not always) caused by not shutting down the program properly / waiting for it to exit before shutting down the PC
OR since the IBD (initial block download) does put a bit more stress on a drive then normal PC use it may be the drive has some issues.

-Dave
newbie
Activity: 8
Merit: 2
July 07, 2022, 06:06:09 AM
#10
I honestly have no idea. I know where to find the bitcoin-qt.exe file if that’s what i need.
HCP
legendary
Activity: 2086
Merit: 4363
July 06, 2022, 06:01:05 PM
#9
I can’t seem to find the “bitcoin” directory when searching through Program Files (x86). Any suggestions?
Are you looking for the bitcoin directory where the actual Bitcoin Core executable (.exe) file is... or the bitcoin directory where the block data, debug.log and wallet data are stored? Huh
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
July 05, 2022, 09:42:25 PM
#8
I can?t seem to find the ?bitcoin? directory when searching through Program Files (x86). Any suggestions?
Are you looking for bitcoin-qt.exe to be able to use --reindex or the data directory to delete the suggested files?

If the former: it should be in "Program Files" not the Program Files for 32-bit programs.
But that's only if you didn't changed the default directory when you installed Bitcoin Core.
Another way to find the installation directory (if you forgot where) is to use the shortcut(s).
If you have a shortcut on your desktop/start menu (pinned app), right-click on it and select "Open file location" and it will take you where bitcoin-qt.exe is.

If the latter: It should be in your %appdata% folder if you didn't set a custom data directory.
To access it, launch "run" (WinKey+R), type %appdata% and enter, there should be a bitcoin folder there.
legendary
Activity: 952
Merit: 1386
July 05, 2022, 12:50:13 PM
#7
In the properties (or in bitcoind.conf file) you should see the parameter responsible for the data directory.
newbie
Activity: 8
Merit: 2
July 05, 2022, 12:37:47 PM
#6
I can’t seem to find the “bitcoin” directory when searching through Program Files (x86). Any suggestions?
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
July 04, 2022, 04:56:45 AM
#5
If that doesn't work, you can force a reindex by deleting the contents of the blocks/ -snip-
Deleting blocks' contents will cause 'initial block download' since those are the blocks.dat files,
If he'll have to resort to file deletions, he can delete the contents of blocks/index instead (& chainstate) but --reindex or --reindex-chainstate should work.

I keep receiving “corrupted block database detected” when trying to open btc core. Click OK to “do you want to rebuild the block database now?” Then another error message appears and says- Error: Error opening block database.
The error that you're getting can also be caused by corrupted chainstate and --reindex-chainstate is a lot faster than --reindex.
You can try it instead but it's better if you check the errors from "debug.log" first so you'll know which command to use:

If your blockchain is pruned, either of those commands will trigger IBD which require you to redownload all the blocks from start.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
July 04, 2022, 03:58:24 AM
#4
If that doesn't work, you can force a reindex by deleting the contents of the blocks/ and chainstate/ folders inside the data directory (usually ~/.bitcoin or C:\Users\blabla\AppData\Roaming\Bitcoin).
newbie
Activity: 8
Merit: 2
July 03, 2022, 09:56:27 AM
#3
Thank you! I’ll look this over.
legendary
Activity: 2254
Merit: 2406
Playgram - The Telegram Casino
July 03, 2022, 09:27:29 AM
#2
The pop up message is likely because you do have a corrupted database. Here's a recent thread I found, and a user with the exact same issue as yours, helped by one of the forum members here;
Your database is likely corrupted. Try wiping out the block index with bitcoin-qt -reindex. This will re-make the database by going all over the blk.dat files, re-validate them and rebuilding the chainstate. It'll take a lot of time.

Have you checked your debug.log for further info?

Read from reply #75 down for a step by step process on how to possibly fix the issue.
newbie
Activity: 8
Merit: 2
July 03, 2022, 09:10:15 AM
#1
I keep receiving “corrupted block database detected” when trying to open btc core. Click OK to “do you want to rebuild the block database now?” Then another error message appears and says- Error: Error opening block database. Click OK then btc core shuts down. How can I fix this issue? Non technical user. Thanks
Jump to: