# \-reindex-chainstate to recover

**URL:** <https://community.umbrel.com/t/reindex-chainstate-to-recover/13468>\
**Category:** Support and Troubleshooting\
**Created:** [August 25, 2023, 4:32pm UTC](https://community.umbrel.com/t/reindex-chainstate-to-recover/13468 "2023-08-25T16:32:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![smolgrrr](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/smolgrrr/32/2825_2.png) [@smolgrrr](https://community.umbrel.com/u/smolgrrr)\
**Post date:** [August 26, 2023, 1:36am UTC](https://community.umbrel.com/t/reindex-chainstate-to-recover/13468/2 "2023-08-26T01:36:55Z")

</div>

Hi @1BTC,

Please see the following, you can try reindex-chainstate first, and if that doesn’t work do a full reindex.

> [@Official Umbrel Troubleshooting Guide and FAQ](https://community.umbrel.com/t/official-umbrel-troubleshooting-guide-and-faq/9873/1):
>
> 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.
> 
> 1. 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.
> 2. 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`
> 3. Add the following line to the file:`reindex=1` or `reindex-chainstate=1`
> 4. Save and exit the file by pressing `CTRL+X`, then `Y`, and then `ENTER`.
> 5. 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.

---

_[View the full topic](https://community.umbrel.com/t/reindex-chainstate-to-recover/13468)._
