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:
Verify DNS records are correct:
bashdig tracker.your-domain.com +short dig announce.your-domain.com +short dig monitoring.your-domain.com +shortEach should return your VPS IP address.
Check if ports are open:
bashsudo ufw status # Or for iptables: sudo iptables -L -nWait for DNS propagation (up to 24-48 hours, usually a few minutes).
Run the installer again after fixing the issue.
Docker Build Fails
Symptoms: docker compose up -d --build fails with errors.
Solutions:
Clear Docker cache and rebuild:
bashdocker system prune -a docker compose -f docker-compose.prod.yml build --no-cache docker compose -f docker-compose.prod.yml up -dCheck available disk space:
bashdf -hEnsure Docker is running:
bashsudo systemctl status docker
Runtime Issues
Application Won't Start
Symptoms: Container keeps restarting or exits immediately.
Solutions:
Check container logs:
bashdocker compose -f docker-compose.prod.yml logs -f appVerify environment variables are set:
bashdocker compose -f docker-compose.prod.yml configCheck database connectivity:
bashdocker exec trackarr-db pg_isreadyCheck Redis connectivity:
bashdocker exec trackarr-redis redis-cli ping
Database Connection Errors
Symptoms: "Connection refused" or "ECONNREFUSED" errors.
Solutions:
Verify database container is running:
bashdocker ps | grep trackarr-dbCheck database logs:
bashdocker compose -f docker-compose.prod.yml logs postgresRestart the database:
bashdocker compose -f docker-compose.prod.yml restart postgrespassword authentication failed for user ...in the logs ofpgbouncerorapp:DB_PASSWORDin.envis not the password of the roleDB_USER. Set it again, see Changing a database password.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:bashsudo ./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 fileThe generated config shows something like:
[databases]
e21V5@postgres:5432/trackarr = host=postgres port=5432 auth_user=trackerCause: 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.
Open psql as the administration role. Its password is read inside the container, you do not type it:
bashcd /opt/trackarr docker compose -f docker-compose.prod.yml exec postgres \ sh -c 'PGPASSWORD="$POSTGRES_PASSWORD" psql -U "$POSTGRES_USER" -d postgres'Set the new password at the
postgres=#prompt.\passwordasks for it twice and sends it already hashed, so it appears neither on a command line nor in the PostgreSQL log (anALTER USER ... PASSWORD '...'typed by hand would be logged in clear):\password trackarr_app \qUse the name that
DB_USERhas in your.env;\passwordalone changes the administration role itself. Letters and digits only (openssl rand -hex 24gives one): the password goes into connection URLs.Write the same password in
.env:DB_PASSWORD(and theDATABASE_URLline if there is one) for the app's role,PG_SUPERUSER_PASSWORDfor the administration role.bashsudo nano .envRecreate the containers that use it.
restartis not enough: it keeps the old settings.bashdocker 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:
Verify Redis container is running:
bashdocker ps | grep trackarr-redisTest Redis connection:
bashdocker exec trackarr-redis redis-cli ping # Should return: PONGCheck Redis password matches
.env:bashdocker 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
trackerservice is not running (withNODE_ENV=productionit refuses to start without anIP_HASH_SECRETof 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:
Verify
IP_HASH_SECRETis set in your.envfile.Check the tracker status (
GET /api/admin/debug/tracker-statusas admin).unreachablemeans the app cannot reach the tracker's private API: check thatTRACKER_INTERNAL_TOKENis set in.env.Restart the tracker:
bashdocker compose -f docker-compose.prod.yml restart trackerCheck tracker logs (
TRACKER_DEBUG=truefor more detail):bashdocker compose -f docker-compose.prod.yml logs -f tracker
Announce URL Not Working
Symptoms: Torrent clients show "tracker offline" or connection errors.
Solutions:
Verify announce domain DNS:
bashdig announce.your-domain.com +shortTest announce endpoint:
bashcurl -I https://announce.your-domain.com/announceCheck Caddy logs for SSL issues:
bashdocker 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:
Refresh the page and try again.
Clear browser cache and cookies.
Check Redis is running and accessible.
Verify server time is correct:
bashdate timedatectl
Can't Register First Admin
Symptoms: Registration form doesn't appear or fails.
Solutions:
Ensure no users exist in the database (first user becomes admin).
Check for JavaScript errors in browser console.
Verify the PoW challenge is completing:
bashdocker 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=monitoringis missing from.env, so the agent is not started
Solutions:
Pair the agent as described in Monitoring: add the system in Beszel (host
/beszel_socket/beszel.sock), then runsudo ./scripts/pair-monitoring.shin the Trackarr directory. It writes these lines to.env:BESZEL_AGENT_KEY=... BESZEL_AGENT_TOKEN=... COMPOSE_PROFILES=monitoringStart it and check its logs:
bashdocker 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:
docker compose -f docker-compose.prod.yml up -d caddyThen 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:
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:
Check system resources:
bashhtop docker statsIncrease Redis memory if needed (in
docker-compose.prod.yml).Check for long-running database queries:
bashecho "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:
Set memory limits in Docker Compose:
yamlservices: app: deploy: resources: limits: memory: 512MRestart containers to free memory:
bashdocker compose -f docker-compose.prod.yml restart
Common Commands
Full Restart
cd /opt/trackarr
docker compose -f docker-compose.prod.yml down
docker compose -f docker-compose.prod.yml up -dRestart with Rebuild
cd /opt/trackarr
docker compose -f docker-compose.prod.yml down
docker compose -f docker-compose.prod.yml up -d --build --force-recreateView All Logs
docker compose -f docker-compose.prod.yml logs -fView Specific Service Logs
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 proxyCheck Container Health
docker ps
docker compose -f docker-compose.prod.yml psDatabase Backup and Restore
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 databaseSee Backup & Restore for encryption, the nightly timer and a restore on a new server.
Still Need Help?
If you're still experiencing issues:
- Check the GitHub Issues for similar problems
- Open a new issue with:
- Description of the problem
- Relevant log output
- Your environment (OS, Docker version)
- Steps to reproduce
- Get professional support if you need hands-on help