Jellyfin Forum
[Docker] Librarys disappearing from Jellyfin - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: [Docker] Librarys disappearing from Jellyfin (/t-docker-librarys-disappearing-from-jellyfin)



[Docker] Librarys disappearing from Jellyfin - Akeldema - 2024-11-22

I set Jellyfin up to run in a docker container a while ago, everything seemed fine.

But this is now the second time I have had the library disappear out of jellyfin and the server become unconnectable to clients.

I am able to make a new connection to the same IP from the server select page, but the library is missing.

It still has access to the media directory, Is able to play media that is already on the Home page, and on the quick menu on the Left is showing a Media library.

   
   


Any insight as to why this might be happening would be greatly appreciated, I am by no means an expert on docker.


RE: [Docker] Librarys disappearing from Jellyfin - TheDreadPirate - 2024-11-22

Can you share your docker config?


RE: [Docker] Librarys disappearing from Jellyfin - Akeldema - 2024-11-22

This is my compose file, unless I made some great mistake its from https://jellyfin.org/docs/general/installation/container/

Code:
services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    user: 1026:100
    network_mode: 'host'
    volumes:
      - /volume1/docker/jellyfin:/config
      - /volume1/docker/jellyfin:/cache
      - type: bind
        source: /volume1/Anime/data/media/tv
        target: /media/tv
        read_only: true
    restart: 'unless-stopped'



RE: [Docker] Librarys disappearing from Jellyfin - TheDreadPirate - 2024-11-22

You need to keep /config and /cache separate. The way you have it now both /config and /cache are in /volume1/docker/jellyfin. Once a day Jellyfin runs a cache cleanup job. Since /config is in the same host folder the cache cleanup job cleans up EVERYTHING. Including your database, user accounts, metadata, library settings. EVERYTHING.

Change your volume mounts to this.

Code:
volumes:
      - /volume1/docker/jellyfin/config:/config
      - /volume1/docker/jellyfin/cache:/cache