Bitcoin Forum
April 26, 2024, 04:36:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Rebuilding Database Error  (Read 98 times)
dennylight (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 14, 2021, 08: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
1714149371
Hero Member
*
Offline Offline

Posts: 1714149371

View Profile Personal Message (Offline)

Ignore
1714149371
Reply with quote  #2

1714149371
Report to moderator
1714149371
Hero Member
*
Offline Offline

Posts: 1714149371

View Profile Personal Message (Offline)

Ignore
1714149371
Reply with quote  #2

1714149371
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714149371
Hero Member
*
Offline Offline

Posts: 1714149371

View Profile Personal Message (Offline)

Ignore
1714149371
Reply with quote  #2

1714149371
Report to moderator
BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2942


Block halving is coming.


View Profile WWW
August 14, 2021, 10: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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5538


Self-proclaimed Genius


View Profile
August 15, 2021, 04:07:43 AM
 #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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
dennylight (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 15, 2021, 03:50:13 PM
 #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? 

BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2942


Block halving is coming.


View Profile WWW
August 15, 2021, 10:44:00 PM
Merited by pooya87 (3)
 #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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5538


Self-proclaimed Genius


View Profile
August 16, 2021, 03:30:07 AM
Merited by pooya87 (3)
 #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)

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
dennylight (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 16, 2021, 09: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.
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5538


Self-proclaimed Genius


View Profile
August 17, 2021, 04:11:27 AM
 #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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
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!