Skip to main content
Understanding common errors and their solutions helps maintain a healthy node operation.

Common Error Codes

Here are the most frequent errors you might encounter and their solutions:

Consensus Errors

When you encounter consensus errors, quick and appropriate action is essential:

Network Errors

Network errors can prevent your node from participating in consensus:

Database Errors

Database corruption can require immediate attention:

Diagnostic Commands

These commands help you investigate issues and monitor your node:

AppHash Mismatch Errors

If you encounter an AppHash mismatch, you’ll need to capture the state for comparison with a known good version:
Always include the app hash, commit hash, and block height from your logs when reporting issues.

Identifying AppHash Errors

AppHash errors typically appear in logs as:
Common Causes:
  • Using incorrect node version during sync (ensure you’re on the latest version)
  • Corrupted or incorrectly applied snapshots
  • Database inconsistencies from improper shutdowns
  • Syncing with outdated or incompatible peers
Resolution Steps:
  1. Stop the node immediately.
  2. Try a node rollback first:, see here
  3. If rollback fails, restore from a fresh snapshot:
    • Download a recent snapshot from trusted providers (Polkachu, PublicNode)
    • Ensure you’re using the correct node version
    • Verify peer configurations are up to date
  4. Restart the node and monitor logs for continued errors

Peer Connection Issues as AppHash Red Herrings

Important Note: Peer connection failures are often symptoms of underlying AppHash errors, not the root cause. When you see extensive peer connection errors like:
Don’t focus solely on fixing peer connections first. Instead:
  1. Scan your logs carefully for AppHash errors that may appear intermittently
  2. Look for the actual error pattern:
  3. Check if your node is stuck at a specific height despite peer connection attempts
Why This Happens:
  • AppHash mismatches prevent proper block validation
  • Node cannot advance to new blocks due to state inconsistency
  • Peers may reject connections from nodes with corrupted state
  • Network appears to be the problem when it’s actually a local state issue
Debugging Approach:
  1. First, check for AppHash errors in your logs (search for “wrong Block.Header.AppHash”)
  2. If AppHash errors are found, treat this as the primary issue
  3. Only focus on peer connection fixes if no AppHash errors exist
This approach can save hours of debugging time by addressing the root cause rather than symptoms.

Peer Connection and Handshake Issues

Identifying Peer Issues: Look for these error patterns in your logs:
Common Causes:
  • Outdated peer configurations with mismatched node IDs
  • Network infrastructure changes on peer side
  • Firewall blocking connections on port 26656
  • DNS resolution issues
Resolution Steps:
  1. Update peer configurations with current node IDs:
  2. Verify network connectivity:
  3. Check current peer status:

Sync Performance Issues

Identifying Sync Problems: Monitor these indicators:
Common Solutions:
  1. Increase packet payload size for large block processing:
  2. Optimize mempool settings in config.toml:
  3. If node gets stuck at specific height:
    • Try restarting the node
    • If restart doesn’t help, perform rollback
    • Consider taking a fresh snapshot
Warning Signs to Watch For:
  • Current height not increasing over time
  • Increasing lag between current height and max peer height
  • Repeated timeout errors in logs
  • Mempool size consistently reaching limits

Crash and Panic Debugging

For crashes, panics, or nil pointer exceptions:
  • Capture at least 1,000 lines of logs leading up to the crash
  • Or collect 15 minutes of log data, whichever provides more context
  • Include the full stack trace if available

Logging Configuration

Proper logging configuration is essential for debugging and monitoring:
Configure log rotation to manage storage effectively:
Enable core dumps for crash analysis:

Other common Issues and Fixes

  1. Sync Problems
    • Check available disk space (df -h)
    • Ensure proper peer connections (curl http://localhost:26657/net_info)
    • Verify firewall settings (port 26656 open)
  2. Performance Issues
    • Monitor system resources (htop or iotop)
    • Check disk I/O performance (iostat)
    • Analyze network traffic (iftop)
  3. Database Issues
    • Run database integrity checks using:
      If errors are detected, consider restoring from a recent backup.
    • Consider pruning excessive historical data by adjusting ss-keep-recent in app.toml or running:
      Alternatively, manually remove old state snapshots to free up space:

Node Rollback

To rollback a node from an AppHashed state, you need to stop the node first. Do this in your preferred way. Next, do a rollback with:
Then, restart the node. In case you see the following error while trying to rollback:
This means that you did not shutdown the node properly. Try to shutdown or kill the seid process directly in that case. If this doesn’t help, restart your machine. Then try the rollback steps again.