• 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 Jellyfin Docker Permissions

     
    • 0 Vote(s) - 0 Average

    Jellyfin Docker Permissions

    Jellyfin Permission problems while setting up Gpu acceleration
    erik15
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    #6
    2023-08-30, 05:45 PM
    (2023-08-28, 11:05 PM)bitmap Wrote: So you're running sudo docker exec, which isn't what you want. Because inside the container is a completely different file system layer, it has different permissions. You could technically run:

    Code:
    docker exec -it jellyfin /bin/bash

    And then go in and try to run ldconfig or nvidia-smi. It seems like a permissions issue. Looking at the hardware acceleration documentation, I'm wondering if there was a step missed or something like that. So taking a step back, I have a few troubleshooting requests... 

    1. Could you post (using the code block tool and not a quick post, preferably) your redacted docker run command or compose file? 
    2. Also confirm that you installed the NVIDIA driver and container toolkit (steps 1 and 2 in the virtualized hardware acceleration guide). 
    3. Maybe confirm your user and group IDs by running ID and ensuring that your user and group ID numbers match 1000:1000 and not something else (I've never had them be 1000:1000).

    Hopefully that'll put us on the right path...

    I can only run 
    Code:
    docker exec -it jellyfin /bin/bash
    with sudo.

    After that, that's what I tried:

    Code:
    I have no name!@myhomeserver:/$ groups
    groups: cannot find name for group ID 1000
    1000
    I have no name!@myhomeserver:/$ id
    uid=1000 gid=1000 groups=1000
    I have no name!@myhomeserver:/$ who

    Code:
    I have no name!@myhomeserver:/$ ldconfig
    ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
    I have no name!@myhomeserver:/$ su
    Password:
    su: Authentication failure

    Also my user on the server has 1000:1000 but his not in the docker group, and i dont know the password for su inside the jellyfin container.

    My yml file:

    Code:
    version: '3.5'
    services:
      jellyfin:
        image: jellyfin/jellyfin
        container_name: jellyfin
        user: 1000:1000
        network_mode: 'host'
        volumes:
          - /home/erik/srv/jellyfin/config:/config
          - /home/erik/srv/jellyfin/cache:/cache
          - /home/erik/Media:/media
        restart: 'unless-stopped'
        runtime: nvidia
        deploy:
          resources:
            reservations:
              devices:
                - capabilities: [gpu]

    I comment out the user fot gpu acceleration to work.
    « Next Oldest | Next Newest »

    Users browsing this thread: 3 Guest(s)


    Messages In This Thread
    Jellyfin Docker Permissions - by erik15 - 2023-08-28, 12:03 PM
    RE: Jellyfin Docker Permissions - by bitmap - 2023-08-28, 03:51 PM
    RE: Jellyfin Docker Permissions - by erik15 - 2023-08-28, 05:34 PM
    RE: Jellyfin Docker Permissions - by erik15 - 2023-08-28, 04:44 PM
    RE: Jellyfin Docker Permissions - by bitmap - 2023-08-28, 11:05 PM
    RE: Jellyfin Docker Permissions - by erik15 - 2023-08-30, 05:45 PM
    RE: Jellyfin Docker Permissions - by bitmap - 2023-08-30, 06:19 PM
    RE: Jellyfin Docker Permissions - by erik15 - 2023-08-30, 11:37 PM
    RE: Jellyfin Docker Permissions - by bitmap - 2023-08-31, 06:04 AM
    RE: Jellyfin Docker Permissions - by erik15 - 2023-09-02, 11:31 AM
    RE: Jellyfin Docker Permissions - by mark.monteiro - 2023-10-01, 01:30 AM
    RE: Jellyfin Docker Permissions - by bitmap - 2023-10-01, 09:00 AM
    RE: Jellyfin Docker Permissions - by rsmartapps - 2024-08-01, 10:08 PM

    • 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