Skip to content

Upgrading

Upgrading is: back up /app/data, pull the new image, recreate the container. The databases are migrated automatically when the new version starts.

Stop the container and copy its /app/data (details in Data & backups):

Terminal window
docker stop sonarr-analyzer
docker run --rm \
--volumes-from sonarr-analyzer \
-v "$(pwd)":/backup \
alpine tar czf /backup/sonarr-backup.tar.gz -C /app/data .

Docker Compose

Terminal window
docker compose pull
docker compose up -d

docker run: remove the old container and start a new one with the same volume and TZ:

Terminal window
docker pull martitoci/sonarr-analyzer:latest
docker rm -f sonarr-analyzer
docker run -d --name sonarr-analyzer -p 8501:8501 -p 8502:8502 \
-e TZ=America/New_York \
-v sonarr-data:/app/data --restart unless-stopped \
martitoci/sonarr-analyzer:latest

To stay on a specific version, use its tag instead of latest (see Image tags).

Terminal window
docker logs sonarr-analyzer

Each applied migration logs a line like Migrated /app/data/sonarr_history.db to schema version N. Databases from v0.3 and v0.4 are migrated too.

If a migration fails, its changes are rolled back and the database stays at the last version that applied fully. Restore your backup, start the previous tag, and open an issue with the log.

Upgrading to What to know
0.7.0 Nothing to migrate by hand: users.db gains two tables. Map port 8502 to use the mobile apps. If your own compose file replaces the healthcheck, change it to python -m sonarr_analyzer.healthcheck, or an HTTPS container shows as unhealthy. Changing a password now signs out that user’s mobile devices.
0.6.2 The image runs in UTC. Set TZ when you recreate the container, or schedules and dates show in UTC.
0.6.1 Fixes the permissions of .master.key. If you ran 0.6.0 or earlier, check it’s 600: docker exec sonarr-analyzer stat -c %a /app/data/.master.key
0.5.0 (from 0.4 or earlier) The read-only role is gone. Former read-only users are disabled; re-enable them from Settings → Users if they should keep access.

Full details in the release notes.

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

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