mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
Jellyfin fails to start if /var/log/jellyfin has <512 MB free (DietPi / tmpfs log partition) #7614
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @deejaysyky on GitHub (Oct 28, 2025).
Description of the bug
System Information
🧩 Description
Jellyfin fails to start on systems where
/var/logis mounted as tmpfs (for example, DietPi, Raspbian, or OpenMediaVault).The process terminates immediately with a fatal error, even though the system has plenty of free disk space elsewhere.
The problem is caused by a hardcoded minimum free space requirement (512 MB) in the log directory
/var/log/jellyfin.As tmpfs partitions are intentionally small (often 50–100 MB), Jellyfin aborts startup instead of just logging a warning.
💥 Error log
System.InvalidOperationException: The path /var/log/jellyfin has insufficient free space.
(String[] args)Available: 49.9 MiB, Required: 512 MiB.
at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestDataDirectorySize(...)
at Jellyfin.Server.Program.StartApp(StartupOptions options)
at Jellyfin.Server.Program.
============================================================================
Systemd:
jellyfin.service: Main process exited, code=killed, status=6/ABRT
⚙️ Steps to reproduce
/var/logis mounted astmpfs(e.g., 50 MB)✅ Expected behavior
🔧 Workaround
Creating a persistent log directory and overriding via systemd fixes the issue:
mkdir -p /mnt/dietpi_userdata/jellyfin-logs
chown -R jellyfin:jellyfin /mnt/dietpi_userdata/jellyfin-logs
systemctl edit jellyfin
Add:
[Service]
Environment="JELLYFIN_LOG_DIR=/mnt/dietpi_userdata/jellyfin-logs"
Then reload:
systemctl daemon-reexec
systemctl daemon-reload
systemctl restart jellyfin
After that, Jellyfin runs normally.
🧠 Additional context
🧾 Suggested Fix
In StorageHelper.TestCommonPathsForStorageCapacity():
Reproducible: ✅ Always
Severity: 💥 High (prevents startup on many embedded systems)
Proposed labels: bug, linux, storage, debian, dietpi
Reproduction steps
System Information
🧩 Description
Jellyfin fails to start on systems where
/var/logis mounted as tmpfs (for example, DietPi, Raspbian, or OpenMediaVault).The process terminates immediately with a fatal error, even though the system has plenty of free disk space elsewhere.
The problem is caused by a hardcoded minimum free space requirement (512 MB) in the log directory
/var/log/jellyfin.As tmpfs partitions are intentionally small (often 50–100 MB), Jellyfin aborts startup instead of just logging a warning.
💥 Error log
System.InvalidOperationException: The path /var/log/jellyfin has insufficient free space.
(String[] args)Available: 49.9 MiB, Required: 512 MiB.
at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestDataDirectorySize(...)
at Jellyfin.Server.Program.StartApp(StartupOptions options)
at Jellyfin.Server.Program.
============================================================================
Systemd:
jellyfin.service: Main process exited, code=killed, status=6/ABRT
⚙️ Steps to reproduce
/var/logis mounted astmpfs(e.g., 50 MB)✅ Expected behavior
🔧 Workaround
Creating a persistent log directory and overriding via systemd fixes the issue:
mkdir -p /mnt/dietpi_userdata/jellyfin-logs
chown -R jellyfin:jellyfin /mnt/dietpi_userdata/jellyfin-logs
systemctl edit jellyfin
Add:
[Service]
Environment="JELLYFIN_LOG_DIR=/mnt/dietpi_userdata/jellyfin-logs"
Then reload:
systemctl daemon-reexec
systemctl daemon-reload
systemctl restart jellyfin
After that, Jellyfin runs normally.
🧠 Additional context
🧾 Suggested Fix
In StorageHelper.TestCommonPathsForStorageCapacity():
Reproducible: ✅ Always
Severity: 💥 High (prevents startup on many embedded systems)
Proposed labels: bug, linux, storage, debian, dietpi
What is the current bug behavior?
System Information
🧩 Description
Jellyfin fails to start on systems where
/var/logis mounted as tmpfs (for example, DietPi, Raspbian, or OpenMediaVault).The process terminates immediately with a fatal error, even though the system has plenty of free disk space elsewhere.
The problem is caused by a hardcoded minimum free space requirement (512 MB) in the log directory
/var/log/jellyfin.As tmpfs partitions are intentionally small (often 50–100 MB), Jellyfin aborts startup instead of just logging a warning.
💥 Error log
System.InvalidOperationException: The path /var/log/jellyfin has insufficient free space.
(String[] args)Available: 49.9 MiB, Required: 512 MiB.
at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestDataDirectorySize(...)
at Jellyfin.Server.Program.StartApp(StartupOptions options)
at Jellyfin.Server.Program.
============================================================================
Systemd:
jellyfin.service: Main process exited, code=killed, status=6/ABRT
⚙️ Steps to reproduce
/var/logis mounted astmpfs(e.g., 50 MB)✅ Expected behavior
🔧 Workaround
Creating a persistent log directory and overriding via systemd fixes the issue:
mkdir -p /mnt/dietpi_userdata/jellyfin-logs
chown -R jellyfin:jellyfin /mnt/dietpi_userdata/jellyfin-logs
systemctl edit jellyfin
Add:
[Service]
Environment="JELLYFIN_LOG_DIR=/mnt/dietpi_userdata/jellyfin-logs"
Then reload:
systemctl daemon-reexec
systemctl daemon-reload
systemctl restart jellyfin
After that, Jellyfin runs normally.
🧠 Additional context
🧾 Suggested Fix
In StorageHelper.TestCommonPathsForStorageCapacity():
Reproducible: ✅ Always
Severity: 💥 High (prevents startup on many embedded systems)
Proposed labels: bug, linux, storage, debian, dietpi
What is the expected correct behavior?
System Information
🧩 Description
Jellyfin fails to start on systems where
/var/logis mounted as tmpfs (for example, DietPi, Raspbian, or OpenMediaVault).The process terminates immediately with a fatal error, even though the system has plenty of free disk space elsewhere.
The problem is caused by a hardcoded minimum free space requirement (512 MB) in the log directory
/var/log/jellyfin.As tmpfs partitions are intentionally small (often 50–100 MB), Jellyfin aborts startup instead of just logging a warning.
💥 Error log
System.InvalidOperationException: The path /var/log/jellyfin has insufficient free space.
(String[] args)Available: 49.9 MiB, Required: 512 MiB.
at Jellyfin.Server.Implementations.StorageHelpers.StorageHelper.TestDataDirectorySize(...)
at Jellyfin.Server.Program.StartApp(StartupOptions options)
at Jellyfin.Server.Program.
============================================================================
Systemd:
jellyfin.service: Main process exited, code=killed, status=6/ABRT
⚙️ Steps to reproduce
/var/logis mounted astmpfs(e.g., 50 MB)✅ Expected behavior
🔧 Workaround
Creating a persistent log directory and overriding via systemd fixes the issue:
mkdir -p /mnt/dietpi_userdata/jellyfin-logs
chown -R jellyfin:jellyfin /mnt/dietpi_userdata/jellyfin-logs
systemctl edit jellyfin
Add:
[Service]
Environment="JELLYFIN_LOG_DIR=/mnt/dietpi_userdata/jellyfin-logs"
Then reload:
systemctl daemon-reexec
systemctl daemon-reload
systemctl restart jellyfin
After that, Jellyfin runs normally.
🧠 Additional context
🧾 Suggested Fix
In StorageHelper.TestCommonPathsForStorageCapacity():
Reproducible: ✅ Always
Severity: 💥 High (prevents startup on many embedded systems)
Proposed labels: bug, linux, storage, debian, dietpi
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
10.11.1
Specify the build version
10.11.1
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response