• 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: Setting uid & gid of my user with official docker image breaks Jellyfin

     
    • 0 Vote(s) - 0 Average

    SOLVED: Setting uid & gid of my user with official docker image breaks Jellyfin

    Garret
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Jul
    Reputation: 0
    #3
    2024-07-10, 06:44 PM
    I tried by still get Jellyfin working weirdly (and for example playing a video where transcoding is needed in ending soon because of an error playback). Just to be more clear, this is what I did. I stopped the container and run:

    Code:
    sudo chown -R garret:users /home/garret/docker/apps/jellyfin

    My user and groups (at the moment I have removed video and render but added them in the docker compose, see more below):

    Code:
    garret@server ~> groups
    users wheel docker

    This is the status of my /dev/dri and the gid of video and render:

    Code:
    garret@server ~> ls -l /dev/dri
    total 0
    drwxr-xr-x 2 root root        80 Jul 10 17:37 by-path
    crw-rw---- 1 root video  226,  0 Jul 10 17:37 card0
    crw-rw-rw- 1 root render 226, 128 Jul 10 17:37 renderD128
    garret@server ~> getent group video | cut -d: -f3
    26
    garret@server ~> getent group render | cut -d: -f3
    303

    And this is the docker-compose:

    Code:
    version: '3'
    services:
        jellyfin:
            container_name: jellyfin
            image: jellyfin/jellyfin
            restart: unless-stopped
            user: ${PUID}:${PGID}
            environment:
              - TZ=${TIMEZONE}
            volumes:
              - ${CONFIG_FOLDER}/jellyfin:/config
              - ${CONFIG_FOLDER}/temp/jellyfin:/cache
              - ${LIBRARY_FOLDER}/series:/series
              - ${LIBRARY_FOLDER}/shows:/shows
              - ${LIBRARY_FOLDER}/movies:/movies
            group_add:
              - 26  # Video group
              - 303 # Render group
            devices:
              - /dev/dri:/dev/dri
            ports:
              - 8096:8096
              - 7359:7359/udp # Optional - Allows clients to discover Jellyfin on the local network.

    I think it is kind of a permission issues since running as root everything works fine.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Setting uid & gid of my user with official docker image breaks Jellyfin - by Garret - 2024-07-10, 05:59 PM
    RE: Setting uid & gid of my user with official docker image breaks Jellyfin - by TheDreadPirate - 2024-07-10, 06:19 PM
    RE: Setting uid & gid of my user with official docker image breaks Jellyfin - by Garret - 2024-07-10, 06:44 PM
    RE: Setting uid & gid of my user with official docker image breaks Jellyfin - by TheDreadPirate - 2024-07-10, 07:13 PM
    RE: Setting uid & gid of my user with official docker image breaks Jellyfin - by Garret - 2024-07-11, 09:24 AM
    RE: Setting uid & gid of my user with official docker image breaks Jellyfin - by Efficient_Good_5784 - 2024-07-11, 10:19 AM
    RE: Setting uid & gid of my user with official docker image breaks Jellyfin - by Garret - 2024-07-11, 10:56 AM
    RE: Setting uid & gid of my user with official docker image breaks Jellyfin - by TheDreadPirate - 2024-07-11, 03:42 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