Author

Topic: Rebuilding Database Error (Read 125 times)

legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
August 16, 2021, 11:11:27 PM
#8
nc50lc - your instructions worked perfect and my node started the IBD right away. 

Thanks both for your patience and guidance as computers are not my specialty.
No problem.
If you have no further concerns, feel free to lock the thread using the "lock topic" button at the lower-left side of the page.
You can always unlock it using the same button.
newbie
Activity: 3
Merit: 0
August 16, 2021, 04:08:17 PM
#7
BitMaxz - Thanks for showing me "Voidtools"  I was able to locate the debug file.

Strange that the file path was:

This PC>Local Disk (C:)>Users>DennyLight>AppData>Roaming>Bitcoin

But the file explorer under DennyLight looked like this:

https://imgur.com/a/UhpBkQa


nc50lc - your instructions worked perfect and my node started the IBD right away. 


Thanks both for your patience and guidance as computers are not my specialty.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
August 15, 2021, 10:30:07 PM
#6
Where is the Bitcoin data directory?  
The default paths for different systems are written in that link.
For Windows10, it should be in in "C:\Users\"Your_Username"\AppData\Roaming\Bitcoin"
The shortcut: Use 'Search' or 'Run' (WinKey+R), type %appdata%, then go to bitcoin folder.

Then create the config file if you haven't created one yet.
The easiest way is to: right click on an empty space inside the data directory while nothing is highlighted, select "New->Text Document".
Rename "New Text Document.txt" into "bitcoin.conf" (including the extension from ".txt" into ".conf").
If the extension is hidden, you can display it using the file explorer menu above "View" and check "File name extensions".

Then open bitcoin.conf using your txt editor and type datadir=E:\Bitcoin on the first line, save it.
(replace "E:\Bitcoin" with the correct path for your custom data directory)
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
August 15, 2021, 05:44:00 PM
#5
I am unable to locate AppData\Roaming\Bitcoin on my C: and E: drives.  For what its worth I did not setup a wallet while running the pruned node.  My GUI was blank but did show ~32 active connections and data transmitting.

How about using the search button to find that folder or debug.log?

If you want a fast way to search you can use "Everything" from Voidtools just install it and open it and use the "Bitcoin" or "debug.log" keyword you should see the right path on that folder or debug.log.

Look at mine you can use it as your reference.
newbie
Activity: 3
Merit: 0
August 15, 2021, 10:50:13 AM
#4
BitMaxz:  I am unable to locate AppData\Roaming\Bitcoin on my C: and E: drives.  For what its worth I did not setup a wallet while running the pruned node.  My GUI was blank but did show ~32 active connections and data transmitting.

nc50lc:  I have read the ## Configuration File Path

"The configuration file is not automatically created; you can create it using your favorite text editor. By default, the configuration file name is `bitcoin.conf` and it is located in the Bitcoin data directory, but both the Bitcoin data directory and the configuration file path may be changed using the `-datadir` and `-conf` command-line options."

Where is the Bitcoin data directory? 

legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
August 14, 2021, 11:07:43 PM
#3
That's normal since you've disabled "pruning". And uninstalling Bitcoin Core won't delete the data directory where the blockchain is.
Now that it's unchecked, the full blockchain will be stored in your disk but since the old blocks were pruned (deleted) before, Bitcoin core will have to re-download and verify from the pruned blocks to the tip.

Also, Bitcoin core won't automatically use the drive where it's installed as the data directory (in your case, Drive E).
You'll have to add something like datadir=E:\Bitcoin entry to your bitcoin.conf file in the default data directory which is: .../bitcoin-conf.md#configuration-file-path (read it for more info)

Pressing "ok" will start that said process.
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
August 14, 2021, 05:00:22 PM
#2
Usually, you can find the logs under debug.log for windows 10 you can find debug.log under this path below

Code:
C:\Users\Username\AppData\Roaming\Bitcoin

But since you switch the installation of Bitcoin core I think you can find it on E:\Bitcoin it depends on how you set up your wallet after Bitcoin core is installed. Try to check that folder and look for debug.log
newbie
Activity: 3
Merit: 0
August 14, 2021, 03:51:29 PM
#1
Bitcoin Client Software and Version Number: Bitcoin Core Version v0.21.1

Operating System: Windows 10 64 bit

System Hardware Specs: 4.2 GHz 4 core CPU; 32 GB RAM; 952 GB free disk space

Description of Problem: Error Message "Error opening block database".  BTC Core stored on C: drive. Node running nominally and I Unchecked Pruned Node Option. Uninstalled Bitcoin Core from my C: drive.  Installed Bitcoin Core on my new E: drive (1TB). Message displayed on startup "You need to rebuild the database using -reindex to go back to unprunned mode.  This will redownload the entire blockchain.
Do you want to rebuild the block database now?"

Any Related Addresses: N/A

Any Related Transaction IDs: N/A

Screenshot of the problem: https://imgur.com/a/yJnskSd

Log Files from the Bitcoin Client: IDK how to find these
Jump to: