Fractal
  • Overview
  • Basics
    • Architecture
  • Key Concepts
    • Fractal Confluence: The EVM Layer
    • The Confluence Bridge
    • Fractal Spring: The UTXO Layer
      • Concepts
      • Technical Specifications
    • Staking
      • Overview
      • EVM Staking
        • UTXO Staking and EVM Staking
      • Consensus
      • Rewards
      • Penalties
  • Developers
    • Acquire Testnet FRA
    • EVM Tools & Tutorials
      • Contract Deployment
        • Ganache
        • Hardhat
        • Remix
        • Truffle
        • Waffle
      • The Graph
    • Developer SDKs
      • UTXO Native Chain SDK
        • Fractal Spring (UTXO Layer) SDK Installation
        • Developer Tools
          • Fractal CLI Tool
        • UTXO API Reference
          • Account
          • Keypair
          • Network
          • Asset
          • Staking
          • Transaction
          • Helpers
      • The Confluence Bridge SDK
    • EVM References
      • Metamask
      • Local Development Network Setup
      • EVM API Reference
      • Precompiled Contracts
  • Network Settings
    • Contract Addresses
    • Network Settings
  • User Guides
    • Fractal Wallet Guides
      • MetaMask
        • Download
        • Configure (Auto)
        • Configure (Manual)
      • Fractal Wallet
        • Download
        • New Wallet
        • Transfer Tokens in the Fractal Wallet
        • The Confluence Bridge
        • Adding Custom Assets to the Fractal Wallet
        • Manage Assets
      • Ledger Hardware Wallet
    • Acquire FRA
    • Explore Testnet
    • Acquire FRA (Testnet)
    • Stake FRA
    • How to Use Block Explorers
    • Bridging Tokens to Fractal
  • Validator Materials
    • Validator Setup Guides
      • System Requirements
      • Acquire a Server
      • Validator Toolbox Setup
        • New Build
        • Existing Build
        • Additional Info
      • Manual Setup
      • Automated Setup (Deprecated)
    • Upgrade Guides
      • Node Upgrade (Toolbox)
      • Node Upgrade (Manual)
      • fn CLI Upgrade (Wallet)
    • Operational Guides
      • Emergency Recovery
      • Data Backup
      • CLI Staking
Powered by GitBook
On this page
  • Auto Safety Clean​
  • Option #1 - Automatic
  • Option #2 - Manual
  1. Validator Materials
  2. Operational Guides

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.

PreviousOperational GuidesNextData Backup

Last updated 1 year ago

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.

Enter the following command:
wget https://github.com/FractalFoundation/fractal-docs/raw/main/.gitbook/assets/safety_clean_mainnet.sh
Enter the following command:
wget https://github.com/FractalFoundation/fractal-docs/raw/main/.gitbook/assets/safety_clean_testnet.sh

Run the script.

bash -x safety_clean_mainnet.sh
safety_clean_testnet.sh

Option #2 - Manual

Download and manually transfer the script to your node.

Run the script at the directory where the file has been transferred.

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
​
2KB
safety_clean_mainnet.sh
2KB
safety_clean_testnet.sh