Jellyfin Forum
New docker container keeps restarting - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: New docker container keeps restarting (/t-new-docker-container-keeps-restarting)

Pages: 1 2


RE: New docker container keeps restarting - amminadabz - 2024-07-12

Just the one NIC. No web console on those two ips, loads for a while though.

Code:
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.68.82  netmask 255.255.252.0  broadcast 192.168.71.255
        inet6 fe80::428d:5cff:feda:4162  prefixlen 64  scopeid 0x20<link>
        inet6 fd7f:f43:ce81:2c33:ed9:7bff:8883:a972  prefixlen 64  scopeid 0x0<global>
        inet6 fd7f:f43:ce81:2c33:428d:5cff:feda:4162  prefixlen 64  scopeid 0x0<global>
        ether 40:8d:5c:da:41:62  txqueuelen 1000  (Ethernet)
        RX packets 497041  bytes 465231282 (443.6 MiB)
        RX errors 0  dropped 13291  overruns 0  frame 0
        TX packets 227818  bytes 84103067 (80.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 8110134  bytes 37968101901 (35.3 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8110134  bytes 37968101901 (35.3 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0



RE: New docker container keeps restarting - TheDreadPirate - 2024-07-12

Ok. Let's go a different route. Let's try for a docker compose setup.

Stop the jellyfin container. Verify that the compose plugin is installed with "sudo docker compose version. If so, in /home/evanm/jellyfin create a file called docker-compose.yml and copy and paste the code block below into it.

Code:
services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    user: 1000:1000
    network_mode: host
    volumes:
      - /home/evanm/jellyfin/config:/config
      - /home/evanm/jellyfin/cache:/cache
      - /media/raid/movies:/movies
      - /media/raid/music:/music
    restart: 'unless-stopped'

Once you've done that, let's clean up docker a bit with "sudo docker system prune -a". Once it finishes running, while in /home/evanm/jellyfin type in "sudo docker compose up -d".


RE: New docker container keeps restarting - amminadabz - 2024-07-12

Still stuck restarting, but now it shows as a multi-container application with only one container in it.


RE: New docker container keeps restarting - TheDreadPirate - 2024-07-12

Try adding this line to the docker compose then down and up the container.

Code:
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
    extra_hosts:
      - 'host.docker.internal:host-gateway'

Also, do you have any other containers installed? Ones that could possibly be restarting unhealthy containers? Like autoheal?


RE: New docker container keeps restarting - amminadabz - 2024-07-12

Same result. Only other application in docker is Immich.


RE: New docker container keeps restarting - TheDreadPirate - 2024-07-12

Go to /home/evanm/jellyfin/config and share the jellyfin log there via pastebin.


RE: New docker container keeps restarting - amminadabz - 2024-07-12

There is no such file, config directory is empty.


RE: New docker container keeps restarting - TheDreadPirate - 2024-07-12

I only use docker on the command line, does docker desktop show you where logs are located? Is the jellyfin even starting? Or is docker failing before jellyfin can even start?


RE: New docker container keeps restarting - amminadabz - 2024-07-12

Found the logs. https://pastebin.com/wuQtn0EV


RE: New docker container keeps restarting - TheDreadPirate - 2024-07-12

Looks like the container doesn't have permissions to the path where you mounted /config.

Code:
2024-07-11 21:27:51 Unhandled exception. System.UnauthorizedAccessException: Access to the path '/config/log' is denied.
2024-07-11 21:27:51  ---> System.IO.IOException: Permission denied

And possibly the same for /cache.