• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Media Scanning & Identification Container can see all media files, but Jellyfin does not

     
    • 0 Vote(s) - 0 Average

    Container can see all media files, but Jellyfin does not

    Docker setup. Logging into the console container, I can see all media files. But when trying to add a library, I get an error
    SaladCesar
    Offline

    Junior Member

    Posts: 3
    Threads: 2
    Joined: 2023 Jul
    Reputation: 0
    Country:France
    #1
    2025-04-12, 07:38 PM
    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
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-04-12, 09:55 PM (This post was last modified: 2025-04-12, 09:56 PM by TheDreadPirate.)
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode