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...
- Could you post (using the code block tool and not a quick post, preferably) your redacted docker run command or compose file?
- Also confirm that you installed the NVIDIA driver and container toolkit (steps 1 and 2 in the virtualized hardware acceleration guide).
- 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
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.