Updating Jellyfin on the Synology NAS: Difference between revisions

From MemoryLeak
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:


=== 2. Pull and recreate ===
=== 2. Pull and recreate ===
From the folder containing the compose file:
(/volume1/docker/projects/jellyfin-compose/compose.yaml)


<pre>
<pre>
sudo docker compose pull
sudo docker compose -f /volume1/docker/projects/jellyfin-compose/compose.yaml pull
sudo docker compose up -d
sudo docker compose -f /volume1/docker/projects/jellyfin-compose/compose.yaml up -d
</pre>
</pre>



Revision as of 19:22, 4 October 2026

Jellyfin runs as the linuxserver image (lscr.io/linuxserver/jellyfin:latest) via Docker Compose. Config lives at /volume1/docker/jellyfin, so recreating the container with a new image keeps all settings and library data.

1. Back up the config

SSH into the NAS and copy the config folder next to the original. Jellyfin sometimes runs database migrations on upgrade, and those can't easily be rolled back. The cache folder does not need a backup.

sudo cp -a /volume1/docker/jellyfin /volume1/docker/jellyfin-backup-$(date +%F)

2. Pull and recreate

sudo docker compose -f /volume1/docker/projects/jellyfin-compose/compose.yaml pull
sudo docker compose -f /volume1/docker/projects/jellyfin-compose/compose.yaml up -d
  • pull downloads the newest image.
  • up -d detects the new image and recreates the container with the same settings. Config, cache, and media mounts are untouched.

3. Verify

sudo docker logs -f jellyfin

Wait for startup messages to settle (Ctrl+C to exit), then open http://mille.cam:8096 and check the version under Dashboard.

Note: The first start after a big version jump can take a few minutes while the database migrates. Do not restart the container during this.

4. Clean up (optional)

sudo docker image prune

This removes the old image to free disk space.

Notes

  • Hardware transcoding: The /dev/dri mapping is already in the compose file, so transcoding should keep working. If it stops, check the device exists on the host with ls -l /dev/dri.
  • Container Manager alternative: If the project was created in Synology's Container Manager, you can update from the Project tab: stop the project, then use Action > Build to pull and recreate.
  • Writable mount: /volume1/Media/dvr is the only media mount that is not read-only.

Rollback

If something goes wrong:

  1. Stop the container: sudo docker compose down
  2. Move the backup folder back into place at /volume1/docker/jellyfin
  3. Start it again: sudo docker compose up -d

Reference compose file

services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    devices:
      - /dev/dri:/dev/dri
    environment:
      - JELLYFIN_PublishedServerUrl=http://mille.cam
      - PUID=1031
      - PGID=65537
      - TZ=America/Denver
      - UMASK=022
    volumes:
      - /volume1/docker/jellyfin:/config
      - /volume1/Media/Movies:/data/movies:ro
      - /volume1/Media/Church:/data/church:ro
      - "/volume1/Media/Home Videos:/data/home_videos:ro"
      - "/volume1/Media/TV Shows:/data/tv_shows:ro"
      - /volume1/docker/jellyfin-cache:/cache
      - /volume1/Media/dvr:/data/dvr
    ports:
      - "8096:8096"
    network_mode: bridge
    security_opt:
      - no-new-privileges:true
    restart: unless-stopped