Bitcoin Forum
April 02, 2026, 12:35:55 PM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to prevent this error from happening on Bitcoin Core?  (Read 130 times)
omarsusername (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 07, 2024, 12:02:35 PM
 #1

I was running Bitcoin Core on a VM running MacOS inside UTM...and one day got this message:
https://ibb.co/mygtrBH
LoyceV
Legendary
*
Offline Offline

Activity: 4004
Merit: 21517


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
December 07, 2024, 05:03:58 PM
Merited by ABCbits (1)
 #2

"Error loading block database" means just that. Have a look at debug.log to see if there's anything useful in there.

¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
apogio
Legendary
*
Offline Offline

Activity: 1106
Merit: 2394


View Profile
December 07, 2024, 05:26:48 PM
 #3

Most of the time, rebuilding the blockchain is inevitable. I would just click "OK" and let it do its work. BTW, do you run a pruned node or a full node?

LoyceV
Legendary
*
Offline Offline

Activity: 4004
Merit: 21517


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
December 07, 2024, 05:30:33 PM
Merited by Slot Kid (2), apogio (1)
 #4

do you run a pruned node or a full node?
Follow-up question: why do you run a node inside a VM? I can think of a few reasons, but I can think of more reasons to run it normally.

¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
ABCbits
Legendary
*
Offline Offline

Activity: 3570
Merit: 9882



View Profile
December 08, 2024, 08:38:16 AM
 #5

I was running Bitcoin Core on a VM running MacOS inside UTM...and one day got this message:


We need more ifnration. Aside from whatever been asked,
1. Do you mean https://mac.getutm.app/ when you say UTM?
2. While i'm not familiar with UTM, on where do you store Bitcoin Core files? Inside one of disk image file? Using mounted folder/disk to the VM?

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
omarsusername (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 08, 2024, 02:45:34 PM
 #6

Most of the time, rebuilding the blockchain is inevitable. I would just click "OK" and let it do its work. BTW, do you run a pruned node or a full node?

Pruned. I was running inside a VM because I was downloading some experimental software that required Bitcoin Core to be running in the background. Do you think if I was running a full node that this wouldn't have happened?


This was my VM https://mac.getutm.app/


I believe the files are stored here:
'/Users/a1/Library/Application Support/Bitcoin'

apogio
Legendary
*
Offline Offline

Activity: 1106
Merit: 2394


View Profile
December 08, 2024, 03:21:31 PM
 #7


Pruned. I was running inside a VM because I was downloading some experimental software that required Bitcoin Core to be running in the background. Do you think if I was running a full node that this wouldn't have happened?

This was my VM https://mac.getutm.app/

I believe the files are stored here:
'/Users/a1/Library/Application Support/Bitcoin'


Hmm let's take it step by step.

1. Pruned or not, doesn't really matter. In both setups, there can be issues like that.
2. I wouldn't run Bitcoin Core in a VM, since there are executables for every OS. Bitcoin Core can definitely run in the background. In fact, if you start it and don't turn the PC off, it will keep running forever. A bitcoin node (computer that runs Bitcoin Core), is primarily used a server that stays online 24/7.

It's still unclear why you chose a VM. Did anyone tell you to do so?

Cricktor
Legendary
*
Offline Offline

Activity: 1456
Merit: 3812



View Profile
December 10, 2024, 01:16:46 AM
 #8

Pruned. I was running inside a VM because I was downloading some experimental software that required Bitcoin Core to be running in the background.
Was the VM's storage large enough or did even your pruned node fill up your virtual disk? Filling up the disk could easily corrupt the block storage of Bitcoin Core. Don't forget that e.g. chainstate eats up 12GiB alone in any case.

Here's current space consumption of a full node on Linux (without wallets), output of du -h:
Code:
122M	./blocks/index
659G ./blocks
12G ./chainstate
98M ./indexes/blockfilter/basic/db
11G ./indexes/blockfilter/basic
11G ./indexes/blockfilter
148M ./indexes/coinstats/db
148M ./indexes/coinstats
54G ./indexes/txindex
65G ./indexes


Do you think if I was running a full node that this wouldn't have happened?
The VM has to share the ressources of your host system. Host and guest OS have to share RAM and other ressources, so running the node natively could be less ressource-hungry.

But sandboxing shady software in a VM is totally legit if you know what you're doing.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
nc50lc
Legendary
*
Offline Offline

Activity: 3108
Merit: 8539


Self-proclaimed Genius


View Profile
December 11, 2024, 07:22:40 AM
 #9

Pruned. I was running inside a VM because I was downloading some experimental software that required Bitcoin Core to be running in the background. Do you think if I was running a full node that this wouldn't have happened?
Pinpointing the cause requires you to check the "debug.log" file contents in our bitcoin datadir for the related error.
Most of the time, it's caused by abrupt shutdown of your VM while Core is still running in the background specially when its dumping data to disk.

It would also be beneficial if you tell the name of the "experimental software" since most of those require the whole Bitcoin blockchain intact in disk.
It will be a waste if you resync your node while the software isn't compatible with pruned blockchain.

On a side note; Bitcoin Core with pruned or complete blockchain are both full nodes since both verify the entire blockchain.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
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!