Troubleshooting
Start with the logs:
docker logs -f sonarr-analyzerCan’t sign in
Section titled “Can’t sign in”-
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.bakdocker restart sonarr-analyzerThe next visit shows Create the first account again. To undo, move
users.db.bakback and restart.
Database permission error (bind mounts)
Section titled “Database permission error (bind mounts)”The host folder must be writable by UID 1000:
sudo chown -R 1000:1000 /path/to/your/dataThe entrypoint tries to fix this when the container runs as root. If it keeps happening, switch to a named volume.
Can’t connect to Sonarr
Section titled “Can’t connect to Sonarr”- 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_HOSTSis 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 onhttps://(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/apifrom 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 psshould show0.0.0.0:8501->8501/tcp. If it shows127.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, notlocalhost. - 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.
Mobile apps and the API
Section titled “Mobile apps and the API”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 checkSONARR_ANALYZER_APIisn’t0.docker logs sonarr-analyzershould show Starting mobile API on port 8502. From the server,curl http://localhost:8502/api/v1/health(orcurl -k https://…with HTTPS) should answer. - The app refuses the address: it needs
https://. Use a reverse proxy orSONARR_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_URLto 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_IPSto 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/tlsor 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.
Analysis is slow or times out
Section titled “Analysis is slow or times out”- The error
Request timeout after 10smeans 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.
“Read-only file system” errors
Section titled ““Read-only file system” errors”The hardened Compose file sets read_only: true. The app only writes to /app/data and /tmp, so:
- keep the
/tmptmpfs 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/datais a volume or a bind mount writable by UID 1000.
Upgrade fails with a migration error
Section titled “Upgrade fails with a migration error”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.
Database locked
Section titled “Database locked”docker restart sonarr-analyzerScheduled times look wrong
Section titled “Scheduled times look wrong”Set TZ to your time zone. The image runs in UTC by default.
Master key lost
Section titled “Master key lost”All saved API keys become unrecoverable, and users must re-enter their Sonarr credentials. History is kept. Back up /app/data to avoid this.
Still stuck?
Section titled “Still stuck?”Search or open an issue, or ask in Discussions. Include the version, how you run it and the relevant log lines, without API keys.