Bitcoin Forum
April 24, 2026, 08:12:50 PM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoincore sync error  (Read 178 times)
Muromskiy (OP)
Copper Member
Newbie
*
Offline Offline

Activity: 21
Merit: 8


View Profile
March 05, 2025, 07:58:10 AM
 #1

Hello Friends!
Installing Bitcoin Core 28.1 on Macbook Air 13 (2017 Monterey).
During synchronization, an error popped up: database reading error, the program closes!

I use an external Kihgston960gb ssd for installation through a HDD/SSS case.





Quote
After next launch 2 other errors !







Tell me, friends, what could this mean?



LoyceV
Legendary
*
Offline Offline

Activity: 4018
Merit: 21661


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
March 05, 2025, 08:10:00 AM
Merited by DireWolfM14 (1)
 #2

I use an external Kihgston960gb ssd for installation through a HDD/SSS case.
A bad cable connection could be the cause of your first error: Bitcoin Core reads and writes a lot during synchronization. If the external disk disconnects, you'll have a corrupted database.

The second error explains itself: "Bitcoin Core is probably already running". Check your running processes.

My advice: avoid external disks for critical data. Unless you have a reason not to, just prune the blockchain and ~15 GB disk space is enough to keep everything inside your computer.

¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
Muromskiy (OP)
Copper Member
Newbie
*
Offline Offline

Activity: 21
Merit: 8


View Profile
March 05, 2025, 08:49:48 AM
 #3

I use an external Kihgston960gb ssd for installation through a HDD/SSS case.
A bad cable connection could be the cause of your first error: Bitcoin Core reads and writes a lot during synchronization. If the external disk disconnects, you'll have a corrupted database.

The second error explains itself: "Bitcoin Core is probably already running". Check your running processes.

My advice: avoid external disks for critical data. Unless you have a reason not to, just prune the blockchain and ~15 GB disk space is enough to keep everything inside your computer.

Tell me why it is better not to use an external ssd drive? What is wrong with this?
LoyceV
Legendary
*
Offline Offline

Activity: 4018
Merit: 21661


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
March 05, 2025, 09:03:11 AM
 #4

Tell me why it is better not to use an external ssd drive? What is wrong with this?
I did:
A bad cable connection could be the cause of your first error

¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
Muromskiy (OP)
Copper Member
Newbie
*
Offline Offline

Activity: 21
Merit: 8


View Profile
March 05, 2025, 09:16:38 AM
 #5

Tell me why it is better not to use an external ssd drive? What is wrong with this?
I did:
A bad cable connection could be the cause of your first error


Thank you, you helped me a lot!
I pulled the ssd out of the case and inserted a similar case with a new cable and synchronization went further.
Shouldn't I worry about these errors?
ABCbits
Legendary
*
Offline Offline

Activity: 3584
Merit: 10004



View Profile
March 05, 2025, 09:25:47 AM
 #6

The second error explains itself: "Bitcoin Core is probably already running". Check your running processes.

And if OP is very sure no Bitcoin Core is running, check whether file with name .lock exist on folder which store blockchain files. If that file exist, delete it manually.

P.S. I mentioned this because first error could be caused by external drive disconnection where .lock file isn't deleted automatically.

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







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

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







██
██
██████

  CHECK MORE > 
Muromskiy (OP)
Copper Member
Newbie
*
Offline Offline

Activity: 21
Merit: 8


View Profile
March 05, 2025, 09:51:21 AM
 #7

The second error explains itself: "Bitcoin Core is probably already running". Check your running processes.

And if OP is very sure no Bitcoin Core is running, check whether file with name .lock exist on folder which store blockchain files. If that file exist, delete it manually.

P.S. I mentioned this because first error could be caused by external drive disconnection where .lock file isn't deleted automatically.



In the blocks folder, then the index folder and there is a LOCK file?
There is also a LOCK file in the chainstate folder.

Where exactly is "LOCK" and why do I need to delete it if everything works for me? Everything works after changing the cable.
ABCbits
Legendary
*
Offline Offline

Activity: 3584
Merit: 10004



View Profile
March 05, 2025, 09:59:16 AM
 #8

Where exactly is "LOCK" and why do I need to delete it if everything works for me? Everything works after changing the cable.

Yeah, Bitcoin Core also create LOCK along with .lock. Those file is used to know whether other Bitcoin process currently use the files/folders. DO NOT delete it if there's no problem. In very rare/specific case, those file isn't automatically deleted by Bitcoin Core when it exit/stop itself.

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







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

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







██
██
██████

  CHECK MORE > 
Muromskiy (OP)
Copper Member
Newbie
*
Offline Offline

Activity: 21
Merit: 8


View Profile
March 05, 2025, 10:48:17 AM
Last edit: March 08, 2025, 07:57:51 PM by hilariousandco
 #9

Where exactly is "LOCK" and why do I need to delete it if everything works for me? Everything works after changing the cable.

Yeah, Bitcoin Core also create LOCK along with .lock. Those file is used to know whether other Bitcoin process currently use the files/folders. DO NOT delete it if there's no problem. In very rare/specific case, those file isn't automatically deleted by Bitcoin Core when it exit/stop itself.

exactly " .lock " there is no file! Only LOCK is a file

Tell me why it is better not to use an external ssd drive? What is wrong with this?
I did:
A bad cable connection could be the cause of your first error


«Error reading from database, shutting down» - The error repeated itself after a while!
What to do at this moment?
LoyceV
Legendary
*
Offline Offline

Activity: 4018
Merit: 21661


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
March 05, 2025, 12:47:22 PM
 #10

«Error reading from database, shutting down» - The error repeated itself after a while!
What to do at this moment?
If you're still using an external disk, I'd go without it. Or at least check the disk for errors (I can't tell you how to do that on a Mac), although that's not going to help you if it's a connection problem.

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

Activity: 1442
Merit: 2655



View Profile
March 06, 2025, 05:02:59 AM
Last edit: March 06, 2025, 10:47:04 AM by satscraper
 #11

Tell me why it is better not to use an external ssd drive? What is wrong with this?
I did:
A bad cable connection could be the cause of your first error


Thank you, you helped me a lot!
I pulled the ssd out of the case and inserted a similar case with a new cable and synchronization went further.
Shouldn't I worry about these errors?


It is better to use external SSD which is not confined inside the case, but instead, is free of any cases and connected to USB port on your machine via relevant USB-SATA SSD adapter. I use StarTech adapters to connect my  Samsung EVO ssd (which is used as external blockchain keeper for Bitcoin Core) for many years and didn't encountered any problem with disk's connectivity in the course of sync.

▄▄███████████████████▄▄
▄███████████████████████▄
████████████████████████
█████████████████████████
████████████████████████
████████████▀██████▀████
████████████████████████
█████████▄▄▄▄███████████
██████████▄▄▄████████████
████████████████████████
████████████████▀▀███████
▀███████████████████████▀
▀▀███████████████████▀▀
 
 EARNBET 
██
██
██
██
██
██
██
██
██
██
██
██
██
███████▄▄███████████
████▄██████████████████
██▀▀███████████████▀▀███
▄████████████████████████
▄▄████████▀▀▀▀▀████████▄▄██
███████████████████████████
█████████▌██▀████████████
███████████████████████████
▀▀███████▄▄▄▄▄█████████▀▀██
▀█████████████████████▀██
██▄▄███████████████▄▄███
████▀██████████████████
███████▀▀███████████
██
██
██
██
██
██
██
██
██
██
██
██
██


▄▄▄
▄▄▄███████▐███▌███████▄▄▄
█████████████████████████
▀████▄▄▄███████▄▄▄████▀
█████████████████████
▐███████████████████▌
███████████████████
███████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

 King of The Castle 
 $200,000 in prizes
██
██
██
██
██
██
██
██
██
██
██
██
██

 62.5% 

 
RAKEBACK
BONUS
nc50lc
Legendary
*
Offline Offline

Activity: 3122
Merit: 8671


Self-proclaimed Genius


View Profile
March 06, 2025, 07:41:57 AM
 #12

I use an external Kihgston960gb ssd for installation through a HDD/SSS case.
Probably best to include the last session's logs in your "debug.log" file inside your bitcoin datadir.
Insert it inside [code][/code] tags to shorten your post.

Now, for the errors:
Quote from: Muromskiy

This can be verified by an error line(s) in your debug.log file, the fix is specific to what kind of error that you have.
If it's a corrupted data and you haven't been forcing Bitcoin Core to shutdown, then check your external drive's cables or ports for hidden data connection issue.
(try another cable and port, then either --reindex-chainstate or --reindex depending on the problematic file)

Quote from: Muromskiy

This is self-explanatory, this appears if there's already a Bitcoin Core process in the background.
Check if you've previously set Bitcoin Core to start with the system or minimize on close, check Core's "Settings->Options...->Window" for that.

Or it's maybe related to v28.1's new bind settings, read the release notes.

Quote from: Muromskiy

This sounds like Bitcoin Core can't establish inbound connections. (normally, it doesn't show an error)
Try to follow the guides here to open the necessary ports that's used by Bitcoin Core: https://bitcoin.org/en/full-node#enabling-connections
You'll still be able to connect to 10~11 peers (Outbound Connections) even without it though.

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







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

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







██
██
██████

  CHECK MORE > 
Cricktor
Legendary
*
Offline Offline

Activity: 1470
Merit: 3900



View Profile
March 08, 2025, 02:25:13 PM
Last edit: March 08, 2025, 02:35:37 PM by Cricktor
 #13

«Error reading from database, shutting down» - The error repeated itself after a while!
What to do at this moment?
This may be an indication that your external storage device isn't reliable for whatever reasons and produces data corruption.

If the external storage enclosure e.g. doesn't have an own power source, it needs to get sufficient power from the USB 3 or Thunderbolt 2 port. It is possible that your SSD has a too high power draw under high load that your connection port doesn't provide sufficiently. Not all SSD media are the same regarding power demand, especially under load.

I don't know how much power the USB 3 ports or the one Thunderbolt 2 port can provide on your specific MacBook Air 2017 model. I would recommend to use a quality external enclosure with an own sufficient power source.

Bad cabling is another possible error source and may be amplified under high load or when the capbe hinders power flow.

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