Skip to content

Troubleshooting ​

Common issues and how to resolve them.

Installation Issues ​

SSL Certificate Fails to Generate ​

Symptoms: The installer fails with certificate errors during Let's Encrypt setup.

Causes:

  • DNS not properly configured
  • DNS propagation not complete
  • Ports 80/443 blocked by firewall

Solutions:

  1. Verify DNS records are correct:

    bash
    dig tracker.your-domain.com +short
    dig announce.your-domain.com +short
    dig monitoring.your-domain.com +short

    Each should return your VPS IP address.

  2. Check if ports are open:

    bash
    sudo ufw status
    # Or for iptables:
    sudo iptables -L -n
  3. Wait for DNS propagation (up to 24-48 hours, usually a few minutes).

  4. Run the installer again after fixing the issue.


Docker Build Fails ​

Symptoms: docker compose up -d --build fails with errors.

Solutions:

  1. Clear Docker cache and rebuild:

    bash
    docker system prune -a
    docker compose -f docker-compose.prod.yml build --no-cache
    docker compose -f docker-compose.prod.yml up -d
  2. Check available disk space:

    bash
    df -h
  3. Ensure Docker is running:

    bash
    sudo systemctl status docker

Runtime Issues ​

Application Won't Start ​

Symptoms: Container keeps restarting or exits immediately.

Solutions:

  1. Check container logs:

    bash
    docker compose -f docker-compose.prod.yml logs -f app
  2. Verify environment variables are set:

    bash
    docker compose -f docker-compose.prod.yml config
  3. Check database connectivity:

    bash
    docker exec trackarr-db pg_isready
  4. Check Redis connectivity:

    bash
    docker exec trackarr-redis redis-cli ping

Database Connection Errors ​

Symptoms: "Connection refused" or "ECONNREFUSED" errors.

Solutions:

  1. Verify database container is running:

    bash
    docker ps | grep trackarr-db
  2. Check database logs:

    bash
    docker compose -f docker-compose.prod.yml logs postgres
  3. Restart the database:

    bash
    docker compose -f docker-compose.prod.yml restart postgres
  4. password authentication failed for user ... in the logs of pgbouncer or app: DB_PASSWORD in .env is not the password of the role DB_USER. Set it again, see Changing a database password.

  5. permission denied for table ... after restoring a dump by hand: the tables belong to the superuser who loaded them, not to the role the app connects with. Give them back:

    bash
    sudo ./scripts/db-split-role.sh

PgBouncer Configuration Error ​

Symptoms: PgBouncer fails to start with syntax error in configuration.

ERROR syntax error in configuration (/etc/pgbouncer/pgbouncer.ini:3), stopping loading
FATAL cannot load config file

The generated config shows something like:

ini
[databases]
e21V5@postgres:5432/trackarr = host=postgres port=5432 auth_user=tracker

Cause: Your DB_PASSWORD contains special characters (@, :, /, #) that break the DATABASE_URL parsing in the PgBouncer image.

Solution: give the role a password made of letters and digits only, as described below.


Changing a Database Password ​

Two roles exist in PostgreSQL (see Configuration): the one the app connects with (DB_USER / DB_PASSWORD) and the administration role (PG_SUPERUSER / PG_SUPERUSER_PASSWORD). On an install from before the role split there is only DB_USER, and the steps are the same.

  1. Open psql as the administration role. Its password is read inside the container, you do not type it:

    bash
    cd /opt/trackarr
    docker compose -f docker-compose.prod.yml exec postgres \
      sh -c 'PGPASSWORD="$POSTGRES_PASSWORD" psql -U "$POSTGRES_USER" -d postgres'
  2. Set the new password at the postgres=# prompt. \password asks for it twice and sends it already hashed, so it appears neither on a command line nor in the PostgreSQL log (an ALTER USER ... PASSWORD '...' typed by hand would be logged in clear):

    \password trackarr_app
    \q

    Use the name that DB_USER has in your .env; \password alone changes the administration role itself. Letters and digits only (openssl rand -hex 24 gives one): the password goes into connection URLs.

  3. Write the same password in .env: DB_PASSWORD (and the DATABASE_URL line if there is one) for the app's role, PG_SUPERUSER_PASSWORD for the administration role.

    bash
    sudo nano .env
  4. Recreate the containers that use it. restart is not enough: it keeps the old settings.

    bash
    docker compose -f docker-compose.prod.yml up -d

Re-running scripts/install.sh does not change database passwords: it keeps the ones in .env.


Redis Connection Errors ​

Symptoms: Session errors, rate limiting not working, "ECONNREFUSED" to Redis.

Solutions:

  1. Verify Redis container is running:

    bash
    docker ps | grep trackarr-redis
  2. Test Redis connection:

    bash
    docker exec trackarr-redis redis-cli ping
    # Should return: PONG
  3. Check Redis password matches .env:

    bash
    docker exec trackarr-redis redis-cli -a YOUR_PASSWORD ping

Tracker Issues ​

Torrents Show 0 Seeders/Leechers ​

Symptoms: Torrent pages display "0 seeders / 0 leechers" despite active peers.

Causes:

  • The tracker service is not running (with NODE_ENV=production it refuses to start without an IP_HASH_SECRET of at least 32 characters)
  • The tracker just started without a snapshot (crash, failover, first start): counters are published only after the warm-up (TRACKER_WARMUP, ~11 minutes by default), then every 60 s. Until then the site keeps the last published counters (none on a fresh install). A graceful restart reloads its swarm snapshot and publishes right away.
  • Peers not announcing correctly
  • Redis cache issues

Solutions:

  1. Verify IP_HASH_SECRET is set in your .env file.

  2. Check the tracker status (GET /api/admin/debug/tracker-status as admin). unreachable means the app cannot reach the tracker's private API: check that TRACKER_INTERNAL_TOKEN is set in .env.

  3. Restart the tracker:

    bash
    docker compose -f docker-compose.prod.yml restart tracker
  4. Check tracker logs (TRACKER_DEBUG=true for more detail):

    bash
    docker compose -f docker-compose.prod.yml logs -f tracker

Announce URL Not Working ​

Symptoms: Torrent clients show "tracker offline" or connection errors.

Solutions:

  1. Verify announce domain DNS:

    bash
    dig announce.your-domain.com +short
  2. Test announce endpoint:

    bash
    curl -I https://announce.your-domain.com/announce
  3. Check Caddy logs for SSL issues:

    bash
    docker compose -f docker-compose.prod.yml logs caddy

Authentication Issues ​

"Invalid or Expired Challenge" ​

Symptoms: Login fails with "Invalid or expired challenge" error.

Causes:

  • Session expired during login
  • Clock skew between client and server
  • Redis session storage issues

Solutions:

  1. Refresh the page and try again.

  2. Clear browser cache and cookies.

  3. Check Redis is running and accessible.

  4. Verify server time is correct:

    bash
    date
    timedatectl

Can't Register First Admin ​

Symptoms: Registration form doesn't appear or fails.

Solutions:

  1. Ensure no users exist in the database (first user becomes admin).

  2. Check for JavaScript errors in browser console.

  3. Verify the PoW challenge is completing:

    bash
    docker compose -f docker-compose.prod.yml logs -f app | grep challenge

Monitoring Issues ​

Beszel Shows No System / Agent Not Running ​

Symptoms: Beszel loads but lists no system, or the system stays down.

Causes:

  • The agent was never paired: it exits without a key
  • COMPOSE_PROFILES=monitoring is missing from .env, so the agent is not started

Solutions:

  1. Pair the agent as described in Monitoring: add the system in Beszel (host /beszel_socket/beszel.sock), then run sudo ./scripts/pair-monitoring.sh in the Trackarr directory. It writes these lines to .env:

    BESZEL_AGENT_KEY=...
    BESZEL_AGENT_TOKEN=...
    COMPOSE_PROFILES=monitoring
  2. Start it and check its logs:

    bash
    docker compose -f docker-compose.prod.yml up -d
    docker logs trackarr-beszel-agent

Monitoring Keeps Asking for a Login ​

Cause: an install from before this fix still has Caddy basic auth in front of Beszel. The Beszel UI sends its own token in the Authorization header, basic auth rejects it, and the browser asks again.

Solution: update (git pull, or re-run install.sh), then restart Caddy:

bash
docker compose -f docker-compose.prod.yml up -d caddy

Then log in with your Beszel account only. MONITORING_USER and MONITORING_PASSWORD_HASH can be removed from .env.


Forgot the Monitoring Password ​

Solutions:

BESZEL_ADMIN_PASSWORD is only read on Beszel's first start: changing it does nothing afterwards. Create a Beszel superuser instead:

bash
docker exec trackarr-beszel /beszel superuser upsert you@example.com 'a-long-password'

Open https://monitoring.your-domain.com/_/, log in with it, open the users collection and set a new password on your account.


Performance Issues ​

Slow Page Loads ​

Solutions:

  1. Check system resources:

    bash
    htop
    docker stats
  2. Increase Redis memory if needed (in docker-compose.prod.yml).

  3. Check for long-running database queries:

    bash
    echo "SELECT pid, usename, now() - query_start AS running, left(query, 80) FROM pg_stat_activity WHERE state = 'active';" \
      | docker compose -f docker-compose.prod.yml exec -T postgres \
        sh -c 'PGPASSWORD="$POSTGRES_PASSWORD" psql -U "$POSTGRES_USER" -d postgres'

High Memory Usage ​

Solutions:

  1. Set memory limits in Docker Compose:

    yaml
    services:
      app:
        deploy:
          resources:
            limits:
              memory: 512M
  2. Restart containers to free memory:

    bash
    docker compose -f docker-compose.prod.yml restart

Common Commands ​

Full Restart ​

bash
cd /opt/trackarr
docker compose -f docker-compose.prod.yml down
docker compose -f docker-compose.prod.yml up -d

Restart with Rebuild ​

bash
cd /opt/trackarr
docker compose -f docker-compose.prod.yml down
docker compose -f docker-compose.prod.yml up -d --build --force-recreate

View All Logs ​

bash
docker compose -f docker-compose.prod.yml logs -f

View Specific Service Logs ​

bash
docker compose -f docker-compose.prod.yml logs -f app    # Application
docker compose -f docker-compose.prod.yml logs -f tracker # Tracker
docker compose -f docker-compose.prod.yml logs -f db     # PostgreSQL
docker compose -f docker-compose.prod.yml logs -f redis  # Redis
docker compose -f docker-compose.prod.yml logs -f caddy  # Reverse proxy

Check Container Health ​

bash
docker ps
docker compose -f docker-compose.prod.yml ps

Database Backup and Restore ​

bash
cd /opt/trackarr
sudo ./scripts/backup.sh                          # writes to /var/backups/trackarr
sudo ./scripts/restore.sh --verify BACKUP_FILE    # proves it restores, touches nothing
sudo ./scripts/restore.sh BACKUP_FILE             # replaces the database

See Backup & Restore for encryption, the nightly timer and a restore on a new server.

Still Need Help? ​

If you're still experiencing issues:

  1. Check the GitHub Issues for similar problems
  2. Open a new issue with:
    • Description of the problem
    • Relevant log output
    • Your environment (OS, Docker version)
    • Steps to reproduce
  3. Get professional support if you need hands-on help

Released under the MIT License.