2023-12-11, 05:49 PM
Every so often, I find that Jellyfin won't serve up certain media files and needs rebooted before it will play. I have to log onto the server and run "docker restart jellyfin" after which the content plays fine.
ffmpeg logs suggest that the server can't find the graphics driver:
Jellyfin logs are here, and ffmpeg logs are here.
docker-compose.yml:
ffmpeg logs suggest that the server can't find the graphics driver:
Code:
[AVHWDeviceContext @ 0x55ab136a6e40] cu->cuInit(0) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
Device creation failed: -542398533.
Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
Error parsing global options: Generic error in an external library
Jellyfin logs are here, and ffmpeg logs are here.
docker-compose.yml:
Code:
version: "2.1"
services:
jellyfin_ddns4:
image: sjmayotte/route53-dynamic-dns:latest
container_name: jellyfin_ddns4
env_file:
- ./4.env
restart: unless-stopped
logging:
driver: gelf
options:
gelf-address: "udp://10.0.0.1:12201"
tag: "jellyfin_ddns4"
jellyfin_ddns6:
image: sjmayotte/route53-dynamic-dns:latest
container_name: jellyfin_ddns6
env_file:
- ./6.env
network_mode: host
restart: unless-stopped
logging:
driver: gelf
options:
gelf-address: "udp://10.0.0.1:12201"
tag: "jellyfin_ddns6"
jellyfin:
image: linuxserver/jellyfin:latest
container_name: jellyfin
runtime: nvidia
environment:
- PUID=1000
- PGID=1000
- TZ=America/Los_Angeles
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
volumes:
- ./config:/config
- /srv/media/music:/music
- /srv/media/tv:/tv
- /srv/media/movies:/movies
network_mode: host
depends_on:
- jellyfin_ddns4
- jellyfin_ddns6
restart: unless-stopped
nginx:
container_name: nginx_jellyfin
image: nginx:latest
volumes:
- ./nginx/log:/var/log/nginx
- ./nginx/keys:/config/keys
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 8920:80
depends_on:
- jellyfin
restart: unless-stopped