var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=1&rec=1&url=https://docs.terra.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

Troubleshoot validator problems

Use this guide to solve the most common validator problems.

Validator has 0 voting power

If your validator has 0 voting power, your validator has become auto-unbonded. On the mainnet, validators unbond when they do not vote on 9500 of the last 10000 blocks (50 of the last 100 blocks on the testnet). Because blocks are proposed every ~5 seconds, a validator that is unresponsive for ~13 hours (~4 minutes on testnet) become unbonded. This problem usually happens when your Terrad process crashes.

To return the voting power back to your validator:

  1. If Terrad is not running, restart it:


    _1
    terrad start

  2. Wait for your full node to reach the latest block, and run:


    _1
    terrad tx slashing unjail <terra> --chain-id=<chain_id> --from=<from>

    • <terra> is the address of your validator account.
    • <name> is the name of the validator account. To find this information, run terrad keys list.
☢️caution

If you don't wait for Terrad to sync before running unjail, an error message will inform you that your validator is still jailed.

  1. Check your validator again to see if your voting power is back:

_1
terrad status

If your voting power is less than it was previously, you may have been slashed for downtime.

Terrad crashes because of too many open files

The default number of files Linux can open per process is 1024. Terrad is known to open more than this amount, causing the process to crash.

  1. Increase the number of open files allowed by running ulimit -n 4096.

  2. Restart the process with terrad start.

    If you are using systemd or another process manager to launch Terrad, you might need to configure them. The following sample systemd file fixes the problem:


    _16
    # /etc/systemd/system/terrad.service
    _16
    [Unit]
    _16
    Description=Terra Phoenix Node
    _16
    After=network.target
    _16
    _16
    [Service]
    _16
    Type=simple
    _16
    User=ubuntu
    _16
    WorkingDirectory=/home/ubuntu
    _16
    ExecStart=/home/ubuntu/go/bin/terrad start
    _16
    Restart=on-failure
    _16
    RestartSec=3
    _16
    LimitNOFILE=4096
    _16
    _16
    [Install]
    _16
    WantedBy=multi-user.target

Terrad crashes because of memory fragmentation

As described in this issue, huge memory allocation can cause memory fragmentation issue. Temporal solution is just using small wasm cache size like 50~100MB.

v0.5.10+:


_1
contract-memory-cache-size = 100

v0.5.7~v0.5.9:


_1
write-vm-memory-cache-size = 100

The validator is not active

  • The validator is jailed. To solve this problem, unjail the validator by running:

    terrad tx slashing unjail <terra> --chain-id=<chain_id> --from=<from>

  • The validator is not in the active validator set. Only the top 130 validators are in this set. To fix this problem, increase your total stake to be larger than the 130th validator.