Links
Comment on page

Emergency Recovery

The safety clean script can be used as a last resort to obtain the latest version, wipe the node of stale data, and download the latest database.

Auto Safety Clean

Use the following scripts to clean the data and restart the validator. Please note that this script WILL NOT clean your validator ID and wallet data.
Expect a long period of downtime while the database is downloaded.

Option #1 - Automatic

Download the safety_clean script to your node using wget.
Mainnet
Testnet
Enter the following command:
wget https://github.com/FindoraNetwork/findora-wiki-docs/raw/main/.gitbook/assets/safety_clean_mainnet.sh
Enter the following command:
wget https://github.com/FindoraNetwork/findora-wiki-docs/raw/main/.gitbook/assets/safety_clean_testnet.sh
Run the script.
Mainnet
Testnet
bash -x safety_clean_mainnet.sh
safety_clean_testnet.sh

Option #2 - Manual

Download and manually transfer the script to your node.
Mainnet
Testnet
safety_clean_mainnet.sh
2KB
Text
safety_clean_testnet.sh
2KB
Binary
Run the script at the directory where the file has been transferred.
Mainnet
Testnet
bash -x safety_clean_mainnet.shbash -x safety_clean_mainnet.shbash -x safety_clean_mainnet.shbash -x safety_clean_mainnet.sh
bash -x safety_clean_testnet.sh

Expectations

The Auto Safety Clean script will:
1. Get the latest image version number
2. Stop the exist findorad docker container
3. Remove the existing data (data only, not the keys)
rm -rf "${ROOT_DIR}/findorad"
rm -rf "${ROOT_DIR}/tendermint/data"
rm -rf "${ROOT_DIR}/tendermint/config/addrbook.json"
4. Download the latest data from Findora and mv to the data folders.
5. Start a new container with the latest version
6. Output the container status and image version