Jellyfin Forum
Jellyfin isnt starting well or staying up well - 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: Jellyfin isnt starting well or staying up well (/t-jellyfin-isnt-starting-well-or-staying-up-well)

Pages: 1 2


Jellyfin isnt starting well or staying up well - TheCritic - 2024-08-24

Jellyfin seems to be just looping. I don't know what logs to look at to find more detail. The one I have attached doesn't help me find the problem, but I thought it might help you guys point me in the right direction. Log is attached to this post.

Steps to reproduce:

Docker Compose:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
      - JELLYFIN_PublishedServerUrl=10.11.12.5 #optional
    volumes:
      - /mnt/gfs2/ezarr/config/jellyfin-configConfused-faceconfig
      - /mnt/omen/video/dataConfused-facedata
    ports:
      - 8096:8096
      - 8920:8920 #optional
      - 7359:7359/udp #optional
      - 1900:1900/udp #optional
    restart: unless-stopped


RE: Jellyfin isnt starting well or staying up well - TheDreadPirate - 2024-08-24

Code:
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories

Make sure that all the folders under where you mounted /config are owned by UID 1000.


RE: Jellyfin isnt starting well or staying up well - TheCritic - 2024-08-25

As you wish.
(couldnt help it)
Ran
chown -R 1000 /config

It worked. Restarted the service, checked it:
root@ff0bb8832cc3Confused-face# find /config -not -user 1000 -ls
root@ff0bb8832cc3Confused-face#

Still the problem persists.

New logs since the chown, look the same to me, but I'm posting incase you guys see something I didnt:


RE: Jellyfin isnt starting well or staying up well - TheDreadPirate - 2024-08-25

You wouldn't use "1000" in the chown command. It would be the username that corresponds to UID 1000.


RE: Jellyfin isnt starting well or staying up well - TheCritic - 2024-08-26

root@d9f3d8c69395Confused-face# chown -R abc:abc /config
root@d9f3d8c69395Confused-face# ls -alh /config/
total 40K
drwxr-xr-x 5 abc abc 4.0K Aug 25 15:37 .
drwxr-xr-x 1 root root 4.0K Aug 25 15:37 ..
drwxr-xr-x 3 abc abc 4.0K Aug 25 16:37 cache
drwxr-xr-x 7 abc abc 4.0K Aug 25 15:37 data
-rw-r--r-- 1 abc abc 2.4K Aug 25 15:37 encoding.xml
drwxr-xr-x 2 abc abc 4.0K Aug 26 02:00 log
-rw-r--r-- 1 abc abc 1.4K Aug 25 15:37 logging.default.json
-rw-r--r-- 1 abc abc 3.1K Aug 25 15:37 migrations.xml
-rw-r--r-- 1 abc abc 6.6K Aug 25 15:37 system.xml
root@d9f3d8c69395Confused-face# id abc
uid=1000(abc) gid=1000(abc) groups=1000(abc),100(users)
root@d9f3d8c69395Confused-face#

restarted service

Problem Persists


RE: Jellyfin isnt starting well or staying up well - TheCritic - 2024-08-26

Log files


RE: Jellyfin isnt starting well or staying up well - TheDreadPirate - 2024-08-26

Run these commands.

Code:
sudo docker compose down jellyfin
sudo docker system prune -a
sudo docker compose up -d jellyfin --force-recreate

This will fully recreate the container (does not touch your /config or /data volumes).


RE: Jellyfin isnt starting well or staying up well - TheCritic - 2024-08-28

Code:
me@hp1:~/jellyfin$ sudo docker compose down jellyfin
[+] Running 2/2
✔ Container jellyfin        Removed                                                                                                                                                                      10.9s
✔ Network jellyfin_default  Removed                                                                                                                                                                      0.4s
me@hp1:~/jellyfin$ docker system prune -a
WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all images without at least one container associated to them
  - all build cache

Are you sure you want to continue? [y/N] y
Deleted Images:
untagged: lscr.io/linuxserver/jellyfin:latest
untagged: lscr.io/linuxserver/jellyfin@sha256:0da2fb716f6e7eaeea082d81418f80c4d2adab9407801629790ef3c2d0b743ab
deleted: sha256:26db90644122e6cd020e6f125c05f1d58aedcddf179c28990411b99617a1ada7
deleted: sha256:254de2ce214dc881930fc2c421950ef77b3e8179bc2e6d63caae94df185af015
deleted: sha256:fa950a4192465c079c502556f28a20e0e423236cd34287d0eb51a32a9dfcfab5
deleted: sha256:b249a4e5d0cfa6ca56d3ebdde7b4947d23a0f0dbff5766dd808229306209255c
deleted: sha256:f3283944f498e7475603bfb5366adff2bc2cb8ebcbbdc6654c9f18c98b5a6a74
deleted: sha256:d94f39825cd6e820c034985f7d94721cb01cba6722abffd826d8bd2905462517
deleted: sha256:f52750ab2106c7e1b371310ba8f322d189facfe6c602221dd42337bda4da4058
deleted: sha256:42d39e00f32a8408baf6fc7e3caae6c3005d88d8cf5dbdbc2288bbc4efb3db16
deleted: sha256:129d24cb9b19f9ec0629bfe00c63465bc766443df5e9976905330f6ddcfef8a6
deleted: sha256:290908991a4bd3a43a38a310fdeb3c81d6006a369c79a81943488081ffeece08

Total reclaimed space: 750.3MB
me@hp1:~/jellyfin$ docker compose up -d jellyfin --force-recreate
[+] Running 10/10
✔ jellyfin 9 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                                                                                                  23.6s
  ✔ 11a792c372b8 Pull complete                                                                                                                                                                            4.1s
  ✔ df25a931801a Pull complete                                                                                                                                                                            4.1s
  ✔ d393a8bf3739 Pull complete                                                                                                                                                                            4.2s
  ✔ b3833b26f1a5 Pull complete                                                                                                                                                                            4.2s
  ✔ 1e8c456288ed Pull complete                                                                                                                                                                            4.2s
  ✔ 87986329961d Pull complete                                                                                                                                                                            5.9s
  ✔ eee76595540f Pull complete                                                                                                                                                                            5.9s
  ✔ 7680b5328b22 Pull complete                                                                                                                                                                          22.0s
  ✔ aea0827a6e49 Pull complete                                                                                                                                                                          22.1s
[+] Running 2/2
✔ Network jellyfin_default  Created                                                                                                                                                                      0.2s
✔ Container jellyfin        Started                                                                                                                                                                      4.2s
me@hp1:~/jellyfin$



RE: Jellyfin isnt starting well or staying up well - TheDreadPirate - 2024-08-28

What is the output of

Code:
sudo docker exec jellyfin env



RE: Jellyfin isnt starting well or staying up well - TheCritic - 2024-08-29

Code:
me@hp1:~$ docker exec jellyfin env
PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=10302ba3881c
TZ=America/New_York
JELLYFIN_PublishedServerUrl=10.11.12.5
PUID=1000
PGID=1000
HOME=/root
LANGUAGE=en_US.UTF-8
LANG=en_US.UTF-8
TERM=xterm
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
S6_VERBOSITY=1
S6_STAGE2_HOOK=/docker-mods
VIRTUAL_ENV=/lsiopy
LSIO_FIRST_PARTY=true
NVIDIA_DRIVER_CAPABILITIES=compute,video,utility