Jellyfin just stopped working

Hmm, I think I may have an issue as I when I did the DietPi update it wasn’t able to update JF. I deleted JF and tried to reinstall, but got a the same error message as i did during the DietPi update. Not even sure if JF is installed :exploding_head:

I got this when I pasted the code:

root@DietPi:~# G_CONFIG_INJECT 'JELLYFIN_LOG_DIR=' 'JELLYFIN_LOG_DIR=/mnt/dietpi_userdata/jellyfin/log' /etc/default/jellyfin
G_CONFIG_INJECT 'TMPDIR=' 'TMPDIR="$JELLYFIN_CACHE_DIR/temp"' /etc/default/jellyfin
[  OK  ] G_CONFIG_INJECT | Setting in /etc/default/jellyfin adjusted: JELLYFIN_LOG_DIR=/mnt/dietpi_userdata/jellyfin/log
[  OK  ] G_CONFIG_INJECT | Comment in /etc/default/jellyfin converted to setting: TMPDIR="$JELLYFIN_CACHE_DIR/temp"

but JF still not working

Which error? The bug/change discussed here does not cause an installation or update error, but a failing service startup, i.e. Jellyfin is not reachable via web UI. If there is an actual error message during setup, please paste it here, or open a new issue about it (since it is a different issue then).

One issue I faced on a test install: LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored · Issue #14721 · jellyfin/jellyfin · GitHub
A simple retry from the error-handler should solve it, the Jellyfin package does not assure the shared library cache is updated. It throws a “failed to find libjemalloc on system” error in that case.

You need to restart the sevice:

sudo systemctl restart jellyfin

Hmm, as is often the case, I’m not sure what I’ve done exactly, but all seems to be working now!

Thanks for your help - and patience :slight_smile:

The same thing happened to me, I deleted everything and resolved it with the instructions above, now my subfolder reverse proxy doesn’t work anymore

# Jellyfin
    location /jellyfin {
        return 302 $scheme://$host/jellyfin/;
    }

    location /jellyfin/ {
        # Proxy main Jellyfin traffic

        # The / at the end is significant.
        # https://www.acunetix.com/blog/articles/a-fresh-look-on-reverse-proxy-related-attacks/

        proxy_pass http://***.***.***:8097/jellyfin/;

        proxy_pass_request_headers on;

        proxy_set_header Host $host;

        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-Host $http_host;

        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $http_connection;

        # Disable buffering when the nginx proxy gets very resource heavy upon streaming
        proxy_buffering off;
    }

But this is unrelated to the issue above if your reverse proxy is not working. Did you ensure JF is working without the proxy? You are able to access the web UI directly. Probably you might need to enable sub path on JF after you reinstalled the app.

Sorry, I just wanted to report that I had the same problem with jellyfin not working after the update and it was solved for me with MichaIng’s tip, about the proxy I just wanted to take advantage of the topic and report that my proxy was not working, I put the baseurl /jellyfin in the network settings in the panel and it worked again. But I didn’t remember putting it the other time I installed the baseurl directly in the application>

Good morning everyone, thank you friend, you helped me here, and others too, I increased the partition and restarted the Rpi, and it worked again!

1 Like

This sorted it for me, after updating from 9.17 to 9.18 with sudo dietpi-update my jellyfin stop working.

i could read on reddit that other users with dietpi had the same issue with logs needed to be 512mb, and i also got this after the update: System.InvalidOperationException: The path `/var/log/jellyfin` has insufficient free space. Required: at least 512MB.

https://www.reddit.com/r/jellyfin/comments/1od13wi/updated_to_10110_can_no_longer_access_the_web/

I did the following with a non-root user, rebooted and then restarted jellyfin again.

i dont know if this is the jellyfin update or the dietpi update.. they came in the same “time/update flow” :slight_smile:

just to avoid a misunderstanding. This is unrelated to DietPi. JF changed their prerequisites on last version. We will adjust our config on upcoming DietPi release v9.19 to restores the behavior from Jellyfin pre-10.10

1 Like

Things are btw partly reverted. For now, with next JF release, /tmp (or $TMPDIR) can be 512 MiB in size. That would not be a problem with default DietPi RAM + swap size. I’ll then adjust our workaround to leave it at /tmp but, if needed, apply a swap file to assure it has 512 MiB min, i.e. RAM + swap >= 1024 MiB. Fact is, that dir is used for max (in size) a few temporary pictures extracted from video files for preview thumbnails, way less than 512 MiB. Transcoding is still done in the dedicated cache dir.

About the logging dir: Add option to disable file logging · Jellyfin Feature Requests
Let’s see.

Armbian users run into the same issue, with zram mount at /tmp and /var/log by default, and /tmp is a tmpfs in a lot of other cases, with often 512 MiB size by default. Hence this got some more traction.

2 Likes

I think I had the same issue. Rolled back a day with dietpi-backup. dietpi-backup is a must to have setup for your NAS!

Oct 26 16:13:35 DietPi systemd\[1\]: Started jellyfin.service - Jellyfin Media Server.
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Setting cache path: /mnt/dietpi_userdata/jellyfin/cache
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Kestrel is listening on 0.0.0.0
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Jellyfin version: 10.11.0
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Environment Variables: \[“\[JELLYFIN_ADDITIONAL_OPTS, \]”, “\[JELLYFIN_USER, jellyfin\]”, “\[JELLYFIN_LOG_DIR, /var/log/jellyfin\]”, “\[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web\]”, “\[JELLYFIN_CONFIG_DIR, /etc/jellyfin\]”, “\[JELLYFIN_ARGS, $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR\]”, “\[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg\]”, “\[JELLYFIN_DATA_DIR, /mnt/dietpi_userdata/jellyfin\]”, “\[JELLYFIN_CACHE_DIR, /mnt/dietpi_userdata/jellyfin/cache\]”\]
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Arguments: \[“/usr/lib/jellyfin/bin/jellyfin.dll”, “–webdir=/usr/share/jellyfin/web”, “–ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg”\]
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Operating system: Debian GNU/Linux 12 (bookworm)
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Architecture: X64
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] 64-Bit Process: True
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] User Interactive: True
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Processor count: 4
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Program data path: /mnt/dietpi_userdata/jellyfin
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Log directory path: /var/log/jellyfin
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Config directory path: /etc/jellyfin
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Cache path: /mnt/dietpi_userdata/jellyfin/cache
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Temp directory path: /tmp/jellyfin
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Web resources path: /usr/share/jellyfin/web
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Application directory: /usr/lib/jellyfin/bin/
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[INF\] Storage path `/mnt/dietpi_userdata/jellyfin/data` (Fixed) successfully checked with 210.8GB free which is over the minimum of 2GB.
Oct 26 16:13:36 DietPi jellyfin\[1667\]: \[16:13:36\] \[FTL\] Unhandled Exception
Oct 26 16:13:36 DietPi jellyfin\[1667\]: System.InvalidOperationException: The path `/var/log/jellyfin` has insufficient free space. Required: at least 512MB.
Oct 26 16:13:36 DietPi jellyfin\[1667\]:    at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestDataDirectorySize(String path, ILogger logger, Int64 threshold)
Oct 26 16:13:36 DietPi jellyfin\[1667\]:    at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestCommonPathsForStorageCapacity(IApplicationPaths applicationPaths, ILogger logger)
Oct 26 16:13:36 DietPi jellyfin\[1667\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 26 16:13:36 DietPi jellyfin\[1667\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 26 16:13:36 DietPi jellyfin\[1667\]: Unhandled exception. System.InvalidOperationException: The path `/var/log/jellyfin` has insufficient free space. Required: at least 512MB.
Oct 26 16:13:36 DietPi jellyfin\[1667\]:    at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestDataDirectorySize(String path, ILogger logger, Int64 threshold)
Oct 26 16:13:36 DietPi jellyfin\[1667\]:    at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestCommonPathsForStorageCapacity(IApplicationPaths applicationPaths, ILogger logger)
Oct 26 16:13:36 DietPi jellyfin\[1667\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 26 16:13:36 DietPi jellyfin\[1667\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 26 16:13:36 DietPi systemd\[1\]: jellyfin.service: Main process exited, code=killed, status=6/ABRT
Oct 26 16:13:36 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 26 16:13:36 DietPi systemd\[1\]: jellyfin.service: Scheduled restart job, restart counter is at 4.
Oct 26 16:13:36 DietPi systemd\[1\]: Stopped jellyfin.service - Jellyfin Media Server.
Oct 26 16:13:36 DietPi systemd\[1\]: Started jellyfin.service - Jellyfin Media Server.
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Setting cache path: /mnt/dietpi_userdata/jellyfin/cache
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Kestrel is listening on 0.0.0.0
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Jellyfin version: 10.11.0
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Environment Variables: \[“\[JELLYFIN_ARGS, $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR\]”, “\[JELLYFIN_DATA_DIR, /mnt/dietpi_userdata/jellyfin\]”, “\[JELLYFIN_CONFIG_DIR, /etc/jellyfin\]”, “\[JELLYFIN_CACHE_DIR, /mnt/dietpi_userdata/jellyfin/cache\]”, “\[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg\]”, “\[JELLYFIN_LOG_DIR, /var/log/jellyfin\]”, “\[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web\]”, “\[JELLYFIN_USER, jellyfin\]”, “\[JELLYFIN_ADDITIONAL_OPTS, \]”\]
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Arguments: \[“/usr/lib/jellyfin/bin/jellyfin.dll”, “–webdir=/usr/share/jellyfin/web”, “–ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg”\]
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Operating system: Debian GNU/Linux 12 (bookworm)
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Architecture: X64
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] 64-Bit Process: True
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] User Interactive: True
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Processor count: 4
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Program data path: /mnt/dietpi_userdata/jellyfin
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Log directory path: /var/log/jellyfin
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Config directory path: /etc/jellyfin
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Cache path: /mnt/dietpi_userdata/jellyfin/cache
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Temp directory path: /tmp/jellyfin
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Web resources path: /usr/share/jellyfin/web
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Application directory: /usr/lib/jellyfin/bin/
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[INF\] Storage path `/mnt/dietpi_userdata/jellyfin/data` (Fixed) successfully checked with 210.8GB free which is over the minimum of 2GB.
Oct 26 16:13:37 DietPi jellyfin\[1683\]: \[16:13:37\] \[FTL\] Unhandled Exception
Oct 26 16:13:37 DietPi jellyfin\[1683\]: System.InvalidOperationException: The path `/var/log/jellyfin` has insufficient free space. Required: at least 512MB.
Oct 26 16:13:37 DietPi jellyfin\[1683\]:    at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestDataDirectorySize(String path, ILogger logger, Int64 threshold)
Oct 26 16:13:37 DietPi jellyfin\[1683\]:    at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestCommonPathsForStorageCapacity(IApplicationPaths applicationPaths, ILogger logger)
Oct 26 16:13:37 DietPi jellyfin\[1683\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 26 16:13:37 DietPi jellyfin\[1683\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 26 16:13:37 DietPi jellyfin\[1683\]: Unhandled exception. System.InvalidOperationException: The path `/var/log/jellyfin` has insufficient free space. Required: at least 512MB.
Oct 26 16:13:37 DietPi jellyfin\[1683\]:    at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestDataDirectorySize(String path, ILogger logger, Int64 threshold)
Oct 26 16:13:37 DietPi jellyfin\[1683\]:    at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestCommonPathsForStorageCapacity(IApplicationPaths applicationPaths, ILogger logger)
Oct 26 16:13:37 DietPi jellyfin\[1683\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 26 16:13:37 DietPi jellyfin\[1683\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 26 16:13:37 DietPi systemd\[1\]: jellyfin.service: Main process exited, code=killed, status=6/ABRT
Oct 26 16:13:37 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 26 16:13:37 DietPi systemd\[1\]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Oct 26 16:13:37 DietPi systemd\[1\]: Stopped jellyfin.service - Jellyfin Media Server.
Oct 26 16:13:37 DietPi systemd\[1\]: jellyfin.service: Start request repeated too quickly.
Oct 26 16:13:37 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 26 16:13:37 DietPi systemd\[1\]: Failed to start jellyfin.service - Jellyfin Media Server.

Restore was not needed, workaround described above