1BTC
August 25, 2023, 4:32pm
1
I have errors:
LevelDB read failure: Corruption: not an sstable (bad magic number)
Fatal LevelDB error: Corruption: not an sstable (bad magic number)
You can use -debug=leveldb to get more complete diagnostic messages
Fatal LevelDB error: Corruption: not an sstable (bad magic number)
Error opening block database.
Please restart with -reindex or -reindex-chainstate to recover
how to -reindex-chainstate? (not full reindex)
Hi @1BTC ,
Please see the following, you can try reindex-chainstate first, and if that doesn’t work do a full reindex.
Resolving a corrupted blockchain is a time-consuming process. Depending on the size of the blockchain and the speed of your device, this process can take several days. It is important to be patient and not interrupt the process, as interrupting it may result in needing to restart the process from the beginning.
Connect to your Umbrel device by following the instructions in How to SSH into umbrelOS on Umbrel Home or Rasberry Pi or by accessing a terminal on your Linux machine.
Run the following command to open bitcoin.conf in a nano text editor. If you are on a Linux machine, you may need to replace ~/umbrel
with the path to your installation directory, as described in Troubleshooting on Linux :sudo nano ~/umbrel/app-data/bitcoin/data/bitcoin/umbrel-bitcoin.conf
Add the following line to the file:reindex=1
or reindex-chainstate=1
Save and exit the file by pressing CTRL+X
, then Y
, and then ENTER
.
Restart your Bitcoin node by running the following command:sudo ~/umbrel/scripts/app restart bitcoin
Your Bitcoin node will now start the process of reindexing. You can monitor the reindexing progress of your node by accessing your Bitcoin Node app through the browser.
After your node is fully synced, follow the same steps to remove reindex=1
/reindex-chainstate=1
from the bitcoin.conf
file and restart your Bitcoin Node. If you do not do this, then the lengthy process of reindexing will occur again the next time your node restarts.
Note: It may also take some time for dependant apps like Electrs to resume functioning after the reindex is the complete.
2 Likes
1BTC
August 26, 2023, 2:22am
3
thank you @smolgrrr i will try and mark as SOLUTION after.
1BTC
August 26, 2023, 3:55am
4
@smolgrrr after rescan can i lose the onchain SAT’ I sent moth ago and that transaction stuck in mempool ?
Sorry I don’t quite understand- you sent bitcoin to your Umbrel wallet but you are still waiting for it in the mempool (to be confirmed)?
The bitcoin node does not hold the funds so it is fine to reindex.
Either way, you must remember to write down your seed phrase from the lightning node app.
1BTC
August 26, 2023, 4:17am
6
@smolgrrr , I withdrew my sats from umbrel to external QT wallet more than month ago:
You’ll need to use the tx_id that was linked when you were looking at mempool.space
after many unsuccessful attempts “bumpfee” I decided to wait while the transaction goes.
But yesterday the blockchain DB was damaged
Yeah reindexing won’t cause any issues here
how can i know that reindex is running? I can sse it runnig until 183 530 than it stopped
after tryied reindex several times, it works