Bitcoin Forum
May 02, 2024, 11:55:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: chainstate files?  (Read 124 times)
calkob (OP)
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
February 28, 2024, 10:39:13 AM
 #1

PC Crashed yesterday due to a graphics error, nothing to do with Bitcoin core.  went to run core again today but getting this error below.  I had a look in the Chainstate folder and all files are locked by Microsoft Access, any ideas on how to resolve this? 

also tried running with arg -reindex but still error.

Thanks



2024-02-28T10:21:38Z Opening LevelDB in E:\BitcoinNode\chainstate
2024-02-28T10:21:38Z Fatal LevelDB error: IO error: E:\BitcoinNode\chainstate/LOCK: The file or directory is corrupted and unreadable.\x0d

2024-02-28T10:21:38Z You can use -debug=leveldb to get more complete diagnostic messages
2024-02-28T10:21:38Z Fatal LevelDB error: IO error: E:\BitcoinNode\chainstate/LOCK: The file or directory is corrupted and unreadable.\x0d

2024-02-28T10:21:38Z : Error opening block database.
Please restart with -reindex or -reindex-chainstate to recover.
: Error opening block database.
Please restart with -reindex or -reindex-chainstate to recover.
2024-02-28T10:21:38Z Aborted block database rebuild. Exiting.
2024-02-28T10:21:38Z Shutdown: In progress...
2024-02-28T10:21:38Z scheduler thread exit
2024-02-28T10:21:38Z Shutdown: done
1714650935
Hero Member
*
Offline Offline

Posts: 1714650935

View Profile Personal Message (Offline)

Ignore
1714650935
Reply with quote  #2

1714650935
Report to moderator
1714650935
Hero Member
*
Offline Offline

Posts: 1714650935

View Profile Personal Message (Offline)

Ignore
1714650935
Reply with quote  #2

1714650935
Report to moderator
1714650935
Hero Member
*
Offline Offline

Posts: 1714650935

View Profile Personal Message (Offline)

Ignore
1714650935
Reply with quote  #2

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

Posts: 1714650935

View Profile Personal Message (Offline)

Ignore
1714650935
Reply with quote  #2

1714650935
Report to moderator
1714650935
Hero Member
*
Offline Offline

Posts: 1714650935

View Profile Personal Message (Offline)

Ignore
1714650935
Reply with quote  #2

1714650935
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4165


View Profile
February 28, 2024, 10:52:46 AM
Merited by mikeywith (4)
 #2

What error do you receive when you're running the reindex? Try renaming the chainstate to another name before trying the reindex again. Bitcoin Core should trigger a reindex if it doesn't detect the chainstate directory in the datadir.

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

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

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

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

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

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











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











▄▄▄▄█
calkob (OP)
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
February 28, 2024, 11:09:44 AM
Merited by ranochigo (1)
 #3

What error do you receive when you're running the reindex? Try renaming the chainstate to another name before trying the reindex again. Bitcoin Core should trigger a reindex if it doesn't detect the chainstate directory in the datadir.

2024-02-28T11:07:52Z Initializing databases...
2024-02-28T11:07:52Z Wiping LevelDB in E:\BitcoinNode\chainstate
2024-02-28T11:07:52Z Opening LevelDB in E:\BitcoinNode\chainstate
2024-02-28T11:07:52Z Fatal LevelDB error: IO error: E:\BitcoinNode\chainstate/LOCK: The file or directory is corrupted and unreadable.\x0d

2024-02-28T11:07:52Z You can use -debug=leveldb to get more complete diagnostic messages
2024-02-28T11:07:52Z Fatal LevelDB error: IO error: E:\BitcoinNode\chainstate/LOCK: The file or directory is corrupted and unreadable.\x0d

2024-02-28T11:07:52Z Error: Error opening block database
2024-02-28T11:07:52Z Shutdown: In progress...
2024-02-28T11:07:52Z scheduler thread exit
2024-02-28T11:07:52Z Shutdown: done


***UPDATE**** Renaming the Chainstate folder seems to have worked, currently reindexing.  Thanks will let ya know if it has further issues.
NotATether
Legendary
*
Online Online

Activity: 1596
Merit: 6720


bitcoincleanup.com / bitmixlist.org


View Profile WWW
February 29, 2024, 07:21:08 AM
 #4

***UPDATE**** Renaming the Chainstate folder seems to have worked, currently reindexing.  Thanks will let ya know if it has further issues.

Yeah, as the diagnostic says, these kind of issues can almost always be fixed by running Core with -reindex (or -reindex-chainstate if only chainstate is corrupted).

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
nc50lc
Legendary
*
Online Online

Activity: 2408
Merit: 5580


Self-proclaimed Genius


View Profile
February 29, 2024, 12:12:51 PM
 #5

Yeah, as the diagnostic says, these kind of issues can almost always be fixed by running Core with -reindex (or -reindex-chainstate if only chainstate is corrupted).
But, what actually fixed it is by renaming the chainstate folder which is somehow restricted by a certain Microsoft product, then --reindex after.
The log and the errors in the second reply are the ones he got after using --reindex without renaming it first.

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

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

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

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

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

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











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











▄▄▄▄█
NotATether
Legendary
*
Online Online

Activity: 1596
Merit: 6720


bitcoincleanup.com / bitmixlist.org


View Profile WWW
February 29, 2024, 12:16:34 PM
 #6

Yeah, as the diagnostic says, these kind of issues can almost always be fixed by running Core with -reindex (or -reindex-chainstate if only chainstate is corrupted).
But, what actually fixed it is by renaming the chainstate folder which is somehow restricted by a certain Microsoft product, then --reindex after.
The log and the errors in the second reply are the ones he got after using --reindex without renaming it first.

Why rename it? Old, corrupted chainstate folders still use a few GB.

Wouldn't it be better to delete the folder entirely?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4165


View Profile
March 01, 2024, 01:35:39 AM
 #7

Why rename it? Old, corrupted chainstate folders still use a few GB.

Wouldn't it be better to delete the folder entirely?
Of course, though I'm aware that chainstate would be rebuild regardless, I wanted to eliminate the possibility of the existence of the folder being an issue. Hence, the advice to rename instead of deleting it. In this case it is, so the chainstate can be deleted now.

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

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

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

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

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

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











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











▄▄▄▄█
nc50lc
Legendary
*
Online Online

Activity: 2408
Merit: 5580


Self-proclaimed Genius


View Profile
March 01, 2024, 04:35:29 AM
 #8

-snip-
Why rename it? Old, corrupted chainstate folders still use a few GB.

Wouldn't it be better to delete the folder entirely?
That besides the point.
Of course OP can do that to get rid of the restricted files but it's what previously suggested and followed by the OP.

But the point is, this particular issue can't be solved by --reindex/--reindex-chainstate alone as it somehow can't wipe the chainstate directory by itself.

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

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

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

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

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

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











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











▄▄▄▄█
calkob (OP)
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
March 03, 2024, 07:10:44 PM
 #9

-snip-
Why rename it? Old, corrupted chainstate folders still use a few GB.

Wouldn't it be better to delete the folder entirely?
That besides the point.
Of course OP can do that to get rid of the restricted files but it's what previously suggested and followed by the OP.

But the point is, this particular issue can't be solved by --reindex/--reindex-chainstate alone as it somehow can't wipe the chainstate directory by itself.

This is correct, I renamed the old, locked "chainstate" folder to "chain" then ran bitcoind -reindex.  Bitcoin core created a new chainstate folder,  until that point, --reindex/--reindex-chainstate wouldnt work.   
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!