Skip to content

Troubleshooting

Start with the logs:

Terminal window
docker logs -f sonarr-analyzer
  • Usernames and passwords are case-sensitive.

  • “Too many failed attempts”: the account is locked for 5 minutes. Another user can reset its password from Settings → Users, which unlocks it.

  • “User account is disabled”: another user can re-enable it from Users. Read-only users from v0.4 are disabled on upgrade.

  • “Sign-in failed”: a server-side error, such as a database problem. The cause is in docker logs sonarr-analyzer.

  • If nobody can sign in any more, you can reset all user accounts. Read the warning first.

    Terminal window
    docker exec sonarr-analyzer mv /app/data/users.db /app/data/users.db.bak
    docker restart sonarr-analyzer

    The next visit shows Create the first account again. To undo, move users.db.bak back and restart.

The host folder must be writable by UID 1000:

Terminal window
sudo chown -R 1000:1000 /path/to/your/data

The entrypoint tries to fix this when the container runs as root. If it keeps happening, switch to a named volume.

  • Use the full URL with the protocol: http://192.168.1.10:8989.
  • Use the host’s LAN IP or the container name, not localhost.
  • Check the API key in Sonarr → Settings → General → Security.
  • If SONARR_ANALYZER_ALLOWED_HOSTS is set, the Sonarr host must be in it.
  • “Sonarr redirected the request (HTTP 301/302…)”: the URL doesn’t point straight at Sonarr. Common causes are http:// where Sonarr only answers on https:// (or the other way round), a missing URL base, or a login page (Authelia, Authentik…) in front of Sonarr. Since 0.7.0 the app doesn’t follow redirects, so your API key can’t be sent to another server. Use the address Sonarr answers on directly, or exempt /api from the login proxy.

Can’t open it from another machine on the LAN

Section titled “Can’t open it from another machine on the LAN”
  • Check how the port is published: docker ps should show 0.0.0.0:8501->8501/tcp. If it shows 127.0.0.1:8501->8501/tcp, the container was started with -p 127.0.0.1:8501:8501 (like the “Try it on this computer” command), which only allows the same machine. Recreate it with -p 8501:8501.
  • Use the server’s LAN IP from the other machine, for example http://192.168.1.20:8501, not localhost.
  • A firewall on the host (macOS, Windows, or a NAS) may block port 8501 for incoming connections.

On a server with a public IP, keep it on 127.0.0.1 and use a VPN or reverse proxy instead. See Security.

Container is unhealthy after turning on HTTPS

Section titled “Container is unhealthy after turning on HTTPS”

With SONARR_ANALYZER_TLS=self-signed, both ports answer only HTTPS. A health check that still calls http://localhost:8501 fails. The image’s own health check handles both since 0.7.0; if your compose file defines its own healthcheck:, change its test to:

test: ["CMD", "python", "-m", "sonarr_analyzer.healthcheck"]

If the container stops right away with SONARR_ANALYZER_TLS must be one of none, self-signed, the variable has a typo: those are the only two values.

The mobile apps are a work in progress. These notes are about the server side, which is in place since 0.7.0.

  • Nothing answers on port 8502: map it (-p 8502:8502) and check SONARR_ANALYZER_API isn’t 0. docker logs sonarr-analyzer should show Starting mobile API on port 8502. From the server, curl http://localhost:8502/api/v1/health (or curl -k https://… with HTTPS) should answer.
  • The app refuses the address: it needs https://. Use a reverse proxy or SONARR_ANALYZER_TLS=self-signed (Security → HTTPS).
  • The QR code points at the wrong address: edit Server address in the Add mobile device dialog, or set SONARR_ANALYZER_PUBLIC_URL to the address the phones use.
  • “Invalid or expired pairing code”: codes last 5 minutes and work once. Close the dialog and open it again for a new one.
  • “Too many failed attempts. Try again later” (429): 10 failed sign-ins or codes from one IP in 10 minutes. Wait 10 minutes. If it happens to everyone at once behind a reverse proxy, the API sees every client as the proxy: set FORWARDED_ALLOW_IPS to the proxy’s IP or Docker network.
  • The app says the device was signed out: it was revoked in My profile → Mobile devices, its user changed or reset their password, or the account was disabled. Pair it again.
  • The app reports that the certificate changed: the server’s self-signed certificate is new, for example after deleting /app/data/tls or restoring a backup without it. Check that it’s really your server (compare the fingerprint in My profile or the logs), then pair again.
  • Your browser warns about the certificate: expected with a self-signed certificate. Accept it once, or use a reverse proxy with a public certificate.
  • The error Request timeout after 10s means Sonarr didn’t answer in time. Raise Request timeout (up to 60 s) in the Options popover on Library → Analysis.
  • If Sonarr struggles under load, lower Parallel requests (default 8).
  • For frequent schedules that only track growth, use Fast mode: one request for the series list (about 1 s) instead of every episode file. Keep a full analysis now and then for codecs, outliers and re-encode estimates.

The hardened Compose file sets read_only: true. The app only writes to /app/data and /tmp, so:

  • keep the /tmp tmpfs in the Compose file;
  • if you changed SONARR_ANALYZER_DATA_DIR, point it at a mounted volume, or leave the default /app/data;
  • make sure /app/data is a volume or a bind mount writable by UID 1000.

Each migration runs in a transaction, so a failed one leaves the database at the last version that applied fully. Check docker logs sonarr-analyzer, restore your backup, go back to the previous tag and open an issue with the log. See Upgrading.

Terminal window
docker restart sonarr-analyzer

Set TZ to your time zone. The image runs in UTC by default.

All saved API keys become unrecoverable, and users must re-enter their Sonarr credentials. History is kept. Back up /app/data to avoid this.

Search or open an issue, or ask in Discussions. Include the version, how you run it and the relevant log lines, without API keys.

Sonarr Analyzer v0.7.0 · GitHub · Docker Hub ·Report an issue

No trackers · MIT License · © Carlos Medina · Not affiliated with Sonarr