Author

Topic: Please Help! New Bitcoin Core node user - Getting fatal error when restarting (Read 215 times)

legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
another fatal error popped up after maybe 8 hrs or so.... in the bug log it said something about the error possibly being the reason of an "I/O" and there wasn't anything else. Bitcoin Core terminated itself after I clicked ok to the fatal error message.

That's a sign of corruption the external 1TB HDD is very problematic I have had external before where most of the files and software do not work after accidentally disconnecting it from the PC without removing it on "Safely remove hardware" even though I changed the "remove policy" to "Quick removal/better performance" it doesn't help. That is why I switch to HDD(Internal) and directly installed it as another drive on my PC it is way more better than using the HDD as an external drive. So it should fix your issue after adding this new drive(SSD) there is also big impact on the speed of your PC and syncing process if you use SSD.
newbie
Activity: 13
Merit: 2
hehe so I had another error near the end of the reindex.

it might have been my fault, idk

I had to stop the reindex and shut Bitcoin Core off. I used the Bitcoin Core console to shut it down and checked my task manager that it was good.
I didn't disconnect the external HD.

When I restarted Bitcoin Core, a tiny window popped up about "Loading Wallet" and it never went away nor did Bitcoin Core ever fully start. Eventually the "Not Responding" window appeared and yeah. This happened over and over but strangely, no bug log of it.

Sudden idea popped in my head, I still had the "-reindex" command enabled when Bitcoin Core started. I deleted the command and the wallet problem went away. However, I'm guessing, since it never fully reindexed, it was still fucked, so I restarted the reindexing.... another fatal error popped up after maybe 8 hrs or so.... in the bug log it said something about the error possibly being the reason of an "I/O" and there wasn't anything else. Bitcoin Core terminated itself after I clicked ok to the fatal error message.

I do not have a bug log to show everyone bc out of frustration I formatted the external and packed it up to return it. Figured that whatever was on the external HD was corrupted anyway and was useless to transfer to the new internal ssd I am ordering.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
That disk has been spinning for 7 years, that's not bad at all.

Not saying the drive should not have some issues after all this time, just that Windows and the BIOS are not reporting any.
That is were the issues come in. Portly3268 could be spending hours tracking down a software or configuration issue that does not exist, because a new out of the box drive is not quite up to snuff.

But, yes for just a little more money if you can a SSD is the way to go.

-Dave
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Crystaldisk is a well known utility for reading the S.M.A.R.T. info from drives.
I have GSmartControl installed (it's a standard package on my Linux system).

I'm thinking that it might just be better to return this external, and pay a bit extra for a bigger internal ssd. I'm still in my 30 day return window.
If you have the space in your system, go for it! SSD prices have dropped a lot, I've recently seen 1TB SSDs from Crucial for €50 and Samsung for €60. PNY was even cheaper.
newbie
Activity: 13
Merit: 2
I'm thinking that it might just be better to return this external, and pay a bit extra for a bigger internal ssd. I'm still in my 30 day return window.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
I downloaded the crystaldiskinfo, but would this be something I should run while reindexing?
I don't know "crystaldiskinfo" (and I wouldn't just install any software), but in general, I wouldn't run disk checking software while the disk is busy.
Then again, if you suspect the disk is faulty, it's better to rule it out before continuing.



I wouldn't recommend to use an external drive for anything that's supposed to be accessible all the time. It's so easy to accidentally unplug them.

Crystaldisk is a well known utility for reading the S.M.A.R.T. info from drives. Does not matter if it's doing something or not.
The problem with externals is that a lot of time the PC & OS don't display those errors you need an external app.
Even now one of my machines swears that all drives are fine but crystal shows this:



So yes, you can run it. At yes, at times it will scare the crap out of you when you see some error rates.

-Dave
newbie
Activity: 13
Merit: 2
Depending on your needs, you can just prune the blockchain and use your internal storage already.

I want to contribute to the network and I read that running a full node is how I can do that. I have yet to actually use my own node for a transaction for I have only recently started this entire process. I will eventually but I guess it is best to go through all the pains now instead of worrying that I lost something from some error like this. For now I want to run a full node, even if I am not using it myself, on the external hard drive, and upgrade my internal storage when I can.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I can just transfer the files from my external when I get a new internal hard drive right?
Yes.

Depending on your needs, you can just prune the blockchain and use your internal storage already.
newbie
Activity: 13
Merit: 2
I wouldn't recommend to use an external drive for anything that's supposed to be accessible all the time. It's so easy to accidentally unplug them.

Yeah, you're right. I should have invested in a bigger internal hard drive.... I can just transfer the files from my external when I get a new internal hard drive right?
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I downloaded the crystaldiskinfo, but would this be something I should run while reindexing?
I don't know "crystaldiskinfo" (and I wouldn't just install any software), but in general, I wouldn't run disk checking software while the disk is busy.
Then again, if you suspect the disk is faulty, it's better to rule it out before continuing.



I wouldn't recommend to use an external drive for anything that's supposed to be accessible all the time. It's so easy to accidentally unplug them.
newbie
Activity: 13
Merit: 2
I downloaded the crystaldiskinfo, but would this be something I should run while reindexing? I know that it was safe to stop my initial blockchain download, but idk if it would start over if I stop the reindex. I'm about 12% in going 3%+ /hr.

Also, I am seeing in the debug.log that every time it would try to bind to RPC on address 192.168.0.10 port 8332 it would fail. "2023-06-23T19:39:40Z Binding RPC on address 192.168.0.10 port 8332 failed."

and it shows my config files with this address:
2023-06-23T19:39:40Z Config file: D:\Bitcoin Core\bitcoin.conf
2023-06-23T19:39:40Z Config file arg: rpcpassword=****
2023-06-23T19:39:40Z Config file arg: rpcuser=****
2023-06-23T19:39:40Z Config file arg: server="1"
2023-06-23T19:39:40Z Config file arg: [main] rpcallowip="127.0.0.1"
2023-06-23T19:39:40Z Config file arg: [main] rpcallowip="192.168.0.0/16"
2023-06-23T19:39:40Z Config file arg: [main] rpcbind="127.0.0.1"
2023-06-23T19:39:40Z Config file arg: [main] rpcbind="192.168.0.10"

Did I set up my config file wrong here?

and every time is says anything about Socks5 it has a failure. "2023-06-23T08:20:36Z Socks5() connect to 2604:a880:400:d0::261f:6001:8333 failed: general failure"

again, really thanks for everyone's help.
hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
...
Log Files from the Bitcoin Client:
(I am unsure what is relevant. I pasted what didn't seem like a lot of the same thing (even thought idk what I am looking at really))
https://pastebin.com/BUpgPVXq

Definitely check if your external drive is healthy. From the provided debug.log of the OP it didn't look to me that he disconnected his external drive before Bitcoin Core has shut down properly. There was always this final log entry Shutdown: done by Core, so no premature interruption of a proper exit of Core visible to me.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
Also, download a copy of crystaldisk info https://crystalmark.info/en/download/ and check the external drive for errors.
I am constantly amazed at how many issues there are with good name brand externals, never mind the cheap generic ones.

A little issue that you would never see playing back a video or listening to a song will cause issues with 'real' data.

-Dave
newbie
Activity: 13
Merit: 2
Based on the logs provided by Cricktor above it seems you didn't close or shut down the Bitcoin core properly which cause some of your Bitcoin core data on an external drive to become corrupted.

-reindex might fix this issue the easy way to run this flag alternatively from the suggestion above is by adding -reindex on the Bitcoin core shortcut properties you can check the image below where you can add the -reindex.


Thanks for the shortcut tip. I've added that and have started Bitcoin Core back up. Hopefully it is reindexing.
https://imgur.com/a/jEswi7s
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
Based on the logs provided by Cricktor above it seems you didn't close or shut down the Bitcoin core properly which cause some of your Bitcoin core data on an external drive to become corrupted.

-reindex might fix this issue the easy way to run this flag alternatively from the suggestion above is by adding -reindex on the Bitcoin core shortcut properties you can check the image below where you can add the -reindex.




Is there another way to know if Bitcoin Core is really shut down? Should I be inspecting my task manager to make sure?.

Yes, it would be better check the task manager if bitcoin core daemon still running on the background you might need to use bitcoin-cli stop command to properly shut down your node.

And to know if it's properly shut down you will need to use this command below

Code:
bitcoin-cli getblockchaininfo
newbie
Activity: 13
Merit: 2
Your external drive fucks up some of the blk0nnnn.dat files in your "D:\Bitcoin Core\blocks" folder and maybe some other files, too. Could be that you're detaching the drive without properly unmounting it. There are clearly issues logged in the debug.log that expected blk0nnnn.dat files are not found which Bitcoin Core expected to be there already.

Is your external drive properly powered? What kind of USB connection do you use? When you shutdown Bitcoin Core you have to wait until it has really shut down. Then you don't just pull the connection cable, but you explicitly tell Windows to detach the external drive and release it safely. Only once Windows tells you that you can safely remove the attached drive, you should do it then and only then to be safe.

On a quick look, it seems fine until the shutdown on
Code:
2023-06-23T08:32:22Z Shutdown: done

First suspicious quirk follows:
Code:
2023-06-23T19:37:44Z GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely…"

After...
Code:
2023-06-23T19:37:59Z LoadBlockIndexDB: last block file = 3672
2023-06-23T19:37:59Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=18, size=31633504, heights=795544...795561, time=2023-06-23...2023-06-23)
2023-06-23T19:37:59Z Checking all blk files are present...
2023-06-23T19:39:16Z Unable to open file D:\Bitcoin Core\blocks\blk03152.dat
2023-06-23T19:39:16Z : Error loading block database.
Please restart with -reindex or -reindex-chainstate to recover.
2023-06-23T19:39:36Z Aborted block database rebuild. Exiting.
2023-06-23T19:39:36Z Shutdown: In progress...
2023-06-23T19:39:36Z scheduler thread exit
2023-06-23T19:39:36Z Shutdown: done
...more and more issues with the blk0nnnn.dat files emerge.

Solution is also right in front of you: fix the reason why your external drive messes up files (it's the hardware or it's you) and restart Bitcoin Core with command line options -reindex or -reindex-chainstate to recover.


I have my external drive on a usb port bus with an external power source to the usb bus. external drive is connected to the usb 3 port on the bus and the bus is connected to the usb 3 on my computer.
When I exit Bitcoin Core, I use the Exit option and wait for all the windows about shutting down to disappear before properly ejecting the external hard drive, always waiting for the windows message that it is safe to disconnect.

For the "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely…" yesterday, I think that is the first time that I actually disconnected my hard drive from my computer after fully downloading the entire blockchain. also ejecting safely before disconnecting.

Is there another way to know if Bitcoin Core is really shut down? Should I be inspecting my task manager to make sure?

Maybe I should connect the hard drive directly into my computer instead of through the bus. Or just never disconnect it lol.

Thanks for looking over my logs.
hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
Your external drive fucks up some of the blk0nnnn.dat files in your "D:\Bitcoin Core\blocks" folder and maybe some other files, too. Could be that you're detaching the drive without properly unmounting it. There are clearly issues logged in the debug.log that expected blk0nnnn.dat files are not found which Bitcoin Core expected to be there already.

Is your external drive properly powered? What kind of USB connection do you use? When you shutdown Bitcoin Core you have to wait until it has really shut down. Then you don't just pull the connection cable, but you explicitly tell Windows to detach the external drive and release it safely. Only once Windows tells you that you can safely remove the attached drive, you should do it then and only then to be safe.

On a quick look, it seems fine until the shutdown on
Code:
2023-06-23T08:32:22Z Shutdown: done

First suspicious quirk follows:
Code:
2023-06-23T19:37:44Z GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely…"

After...
Code:
2023-06-23T19:37:59Z LoadBlockIndexDB: last block file = 3672
2023-06-23T19:37:59Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=18, size=31633504, heights=795544...795561, time=2023-06-23...2023-06-23)
2023-06-23T19:37:59Z Checking all blk files are present...
2023-06-23T19:39:16Z Unable to open file D:\Bitcoin Core\blocks\blk03152.dat
2023-06-23T19:39:16Z : Error loading block database.
Please restart with -reindex or -reindex-chainstate to recover.
2023-06-23T19:39:36Z Aborted block database rebuild. Exiting.
2023-06-23T19:39:36Z Shutdown: In progress...
2023-06-23T19:39:36Z scheduler thread exit
2023-06-23T19:39:36Z Shutdown: done
...more and more issues with the blk0nnnn.dat files emerge.

Solution is also right in front of you: fix the reason why your external drive messes up files (it's the hardware or it's you) and restart Bitcoin Core with command line options -reindex or -reindex-chainstate to recover.
newbie
Activity: 13
Merit: 2
Bitcoin Client Software and Version Number: Bitcoin Core v25.0.0
Operating System: Windows 11
System Hardware Specs:
Processor - 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz   2.80 GHz
RAM - 16.0 GB
Toshiba 1 TB external hard drive

Description of Problem:
I am running a full node.
I changed the network settings (based off of what I found on the internet in order to use it over Tor. I was trying to do the "private" thing...) to "Connect through SOCKS5 proxy (default proxy):
Proxy IP: 127.0.0.1 Port: 9050
with IPv4 IPv6 and Tor all checked
I set the bitcoin.conf on my external hard drive to:
server=1
rpuser=abc123(not actual)
rpcpassword=******
rpcbind=127.0.0.1
rpcbind=192.168.0.10
rpcallowip=127.0.0.1
rpcallowip=192.168.0.0/16

After fully downloading the entire bitcoin blockchain to my external hard drive I connected to Sparrow wallet (V. 1.7.6) and changed the settings as stated above. I have not made any transactions.
I was connected to the network for several days.
I turned off Bitcoin Core for possibly ~8 hours and disconnected (safely) by external hard drive.
I reconnected my external hard drive and turned Bitcoin Core. Bitcoin Core started, what I presumed, to resync. The message I was provided (attached image):

(all info here is from after error message so might not be the same as started)
Number of blocks left: Unknown. Syncing Headers ((numbers),(percent)...
Last block time: Sat Jan 3 13:15:05 2009
Progress: 0.00%
Estimated time left until synced: Unknown

What was odd was that the progress never changed and everything continued to say unknown. I figured this was normal (never having run a node before), and I left it over night to "sync."
When I woke this morning and checked the progress, I was met with a "Bitcoin Core - Error" message. "Error: A fatal internal error occurred, see debug.log for details".
I have the debug.log in the link below. I have no idea what it is saying to me.

I would greatly appreciate someone enlightening me.
I really want to contribute to the Bitcoin Network.

Any Related Addresses:n/a
Any Related Transaction IDs:n/a

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

Log Files from the Bitcoin Client:
(I am unsure what is relevant. I pasted what didn't seem like a lot of the same thing (even thought idk what I am looking at really))
https://pastebin.com/BUpgPVXq
Jump to: