Emergency guide for Erigon client

One-page interactive complete emergency guide for Erigon client.

Disclaimer

This guide is for informational purposes only. The author nor website owner does not guarantee accuracy of the information in this guide and is not responsible for any damages or losses incurred by following the guide.

Database corruption

In a case of database corruption (shortly DB corruption):

  1. Stop Erigon service

    sudo systemctl stop erigon
  2. Delete and recreate Erigon directory

    Delete the directory
    sudo rm -r /var/lib/erigon
    Recreate the directory
    sudo mkdir -p /var/lib/erigon
    Set directory ownership
    sudo chown -R erigon:erigon /var/lib/erigon
  3. Start the service

    sudo systemctl start erigon
    Check the service
    systemctl status erigon
    journalctl -f -u erigon

Once the execution chain will get synchronized, your validator will go online again.

Erigon got stucked

If a Erigon got stucked, you can simply restart it.

sudo systemctl restart erigon

This can be also automated through Service Log Monitor.

There are no other serious issues with Erigon detected.