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:
My user and groups (at the moment I have removed video and render but added them in the docker compose, see more below):
This is the status of my /dev/dri and the gid of video and render:
And this is the docker-compose:
I think it is kind of a permission issues since running as root everything works fine.
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.