Relay Won’t Start

Check the logs:

docker logs relay

Common causes:

  • Port already in use (change RELAY_API_PORT)
  • Data directory not writable (check permissions on mounted volume)
  • Database unreachable (relay falls back to in-memory, but logs a warning)

Health Checks Failing

If instances show as down:

  1. Check if the instance is actually reachable: curl https://instance-url
  2. Verify the health checker is running: check logs for “health check” messages
  3. The default interval is 60 seconds — wait for the next check cycle

Gossip Not Syncing

curl http://localhost:3000/api/v1/federation/status
  • If peers are missing: check RELAY_PEERS configuration
  • If sync timestamps are old: the peer relay might be down
  • If instances received is zero: the peer has no instances or the sync failed

Database Connection Issues

If using MySQL/MariaDB:

  1. Verify the connection string: DATABASE_URL=mysql://user:pass@host:3306/db
  2. Check the database is running and accepting connections
  3. The relay will log a warning and continue in-memory only if the database is unreachable