• 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 SOLVED: Issue with new install

     
    • 0 Vote(s) - 0 Average

    SOLVED: Issue with new install

    Issue with new install
    Lukatz
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Feb
    Reputation: 0
    Country:United States
    #1
    2025-02-22, 10:05 PM
    Hello All,

    I just used Docker to setup Jellyfin on my Debian 12 server. My docker compose file is below. I am running into an issue that Jellyfin can not see the sub-folders in /data/media. So far my searches have not turned up anything to point me in the right direction. I am getting this error in the log. 

    Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find a part of the path '/data/media/movies'". URL "GET" "/Environment/DirectoryContents".

     
    Code:
    jellyfin:
        container_name: jellyfin
        image: ghcr.io/linuxserver/jellyfin
        environment:
          - PUID=1000
          - PGID=1000
          - TZ=Asia/Kolkata
        ports:
          - '8096:8096'
        devices:
          - '/dev/dri/card0:/dev/dri/card0'
        volumes:
          - '/home/${USER}/server/configs/jellyfin:/config'
          - '/home/${USER}/server/media:/data/media'
        restart: unless-stopped

    When I do an ls -la I get the following results. Since I have Jellyfin running as my user it should have access to the folders with this is my understanding.
    drwxr-xr-x 7 (user) (user) 4096 Feb 22 11:24 .
    drwxr-xr-x 7 (user) (user) 4096 Feb 22 11:24 ..
    drwxr-xr-x 7 (user) (user) 4096 Feb 22 11:24 audiobooks
    drwxr-xr-x 7 (user) (user) 4096 Feb 22 11:24 books
    drwxr-xr-x 7 (user) (user) 4096 Feb 22 11:24 movies
    drwxr-xr-x 7 (user) (user) 4096 Feb 22 11:24 music
    drwxr-xr-x 7 (user) (user) 4096 Feb 22 11:24 tv


    My Jellyfin build is 10.10.6. If there is anything else I need to provide let me know. Thank you for any help you can give me.
    10.10.6
    10.10.6
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-02-22, 10:32 PM
    Where are you defining ${USER}? In a .env file? Is that set to a user name or user ID?
    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]
    Lukatz
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Feb
    Reputation: 0
    Country:United States
    #3
    2025-02-22, 11:21 PM
    (2025-02-22, 10:32 PM)TheDreadPirate Wrote: Where are you defining ${USER}?  In a .env file?  Is that set to a user name or user ID?

    I am new to this so forgive me if I am wrong. From my understanding when I set the environmental arguments it makes it use my user as the user that Jellyfin uses. At least that is what I understand.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-02-23, 01:46 AM
    Docker will not use the host's environment variables by default. So specifying $USER within a Docker compose will not translate to your username inside the Docker container.

    You will need to either directly specify your path or you need to create a .env or custom environment file where you do define $USER.

    https://docs.docker.com/compose/how-tos/...-attribute
    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]
    Lukatz
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Feb
    Reputation: 0
    Country:United States
    #5
    2025-02-23, 05:04 PM (This post was last modified: 2025-02-23, 05:35 PM by Lukatz. Edited 1 time in total.)
    (2025-02-23, 01:46 AM)TheDreadPirate Wrote: Docker will not use the host's environment variables by default.  So specifying $USER within a Docker compose will not translate to your username inside the Docker container.

    You will need to either directly specify your path or you need to create a .env or custom environment file where you do define $USER.

    https://docs.docker.com/compose/how-tos/...-attribute

    Again please correct me if I am wrong but the way I read it here (https://docs.linuxserver.io/general/unde...-variables) is when using the PUID and PGUID it sets the user to the number I use. In this case 1000 which is my user. I did change my path from ${USER} to my actual user. I then stopped and restarted my Jellyfin container and I did not see a change. I still had the same paths and could not see any other folders. Thank you for helping me understand this.

    You can ignore the above. Thank you again for your help! I deleted my container and started a new one after changing the file path to my user and it worked!
    « 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