Jellyfin Forum
Container can see all media files, but Jellyfin does not - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: Container can see all media files, but Jellyfin does not (/t-container-can-see-all-media-files-but-jellyfin-does-not)



Container can see all media files, but Jellyfin does not - SaladCesar - 2025-04-12

Hi,

I am using docker. Here is my setup:

  jellyfin:
    image:
jellyfin/jellyfin:latest
    container_name: jellyfin
    environment:
      PUID: 1000
      PGID: 1000
      TZ: ${TZ}
      JELLYFIN_PublishedServerUrl: https://stream.${DOMAIN}
    networks:
      services:
    volumes:
      - ${CONFIG_FOLDER}/jellyfinConfused-faceconfig
      - ${FILMS}Confused-facemedia/films:ro
      - ${SERIES}Confused-facemedia/series:ro
      - ${MUSIQUE}Confused-facemedia/musique:ro
      - ${LIVRES}Confused-facemedia/livres:ro
      - ${TROISD}Confused-facemedia/troisd:ro
      - ${BONUS}Confused-facemedia/bonus:ro
      - ${SHORTS}Confused-facemedia/shorts:ro
    restart: unless-stopped
    devices:
      - /dev/driConfused-facedev/dri
      - /dev/kfdConfused-facedev/kfd


I am trying to add a library from the folder /media/films. When I log into the container console, I can cd into /media/films, and list all files and their content. The container seems to have correctly access to the files. But when in Jellyfin itself, I don't have access. Then trying to add /media/films as a library, I have the following error:

[21:32:30] [ERR] [11] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: Could not find a part of the path '/media/films'. URL GET /Environment/DirectoryContents.

I don't understand why Jellyfin can't access the files if the container has correct access.

Could you help me ?
Thankd in advance for any answer


RE: Container can see all media files, but Jellyfin does not - TheDreadPirate - 2025-04-12

The way you have it configured, the container runs as root but the jellyfin process runs are UID 1000. That is why you can access the media files when you open a bash container, which should open a shell as root.

You need to make sure that UID 1000 has permissions to read the media directory.