[10.11RC1] Delay on startup with large drives #7080

Closed
opened 2026-02-07 04:28:13 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @theguymadmax on GitHub (Jun 10, 2025).

Description of the bug

At startup, Jellyfin scans media mounts for drive space, which leads to large delays. The delay varies between 6 to 12 minutes. During this time, I can hear the drives actively working.

Reproduction steps

  1. Have multiple large media mounts
  2. Startup Jellyfin 10.11

What is the current bug behavior?

Delay in startup.

What is the expected correct behavior?

Option to disable scanning media mounts or some improvement in speed.

Jellyfin Server version

Master

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

10.11RC1

Environment

- OS:Ubuntu 24.04
- Linux Kernel:6.11.0-26-generic
- Virtualization: Docker
- Plugins: None
- Jellyfin Data Storage: 256GB SSD Ext4
- Media Storage: 20tb, 18tb,4 8tb All NTFS connected via DAS

Jellyfin logs

[+] Running 1/1
 ✔ Container JellyfinRC1  Created                                          0.0s 
Attaching to JellyfinRC1
JellyfinRC1  | [15:17:08] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
JellyfinRC1  | [15:29:51] [INF] [9] Jellyfin.Server.ServerSetupApp.SetupServer: Kestrel is listening on 0.0.0.0
JellyfinRC1  | info: Microsoft.Hosting.Lifetime[14]
JellyfinRC1  |       Now listening on: http://0.0.0.0:8096
JellyfinRC1  | info: Microsoft.Hosting.Lifetime[0]
JellyfinRC1  |       Application started. Press Ctrl+C to shut down.
JellyfinRC1  | info: Microsoft.Hosting.Lifetime[0]
JellyfinRC1  |       Hosting environment: Production
JellyfinRC1  | info: Microsoft.Hosting.Lifetime[0]
JellyfinRC1  |       Content root path: /
JellyfinRC1  | [15:29:51] [INF] [9] Main: Jellyfin version: 10.11.0
JellyfinRC1  | [15:29:51] [INF] [9] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_LOG_DIR, /config/log]"]
JellyfinRC1  | [15:29:51] [INF] [9] Main: Arguments: ["/jellyfin/jellyfin.dll"]
JellyfinRC1  | [15:29:51] [INF] [9] Main: Operating system: Debian GNU/Linux 12 (bookworm)
JellyfinRC1  | [15:29:51] [INF] [9] Main: Architecture: X64
JellyfinRC1  | [15:29:51] [INF] [9] Main: 64-Bit Process: True
JellyfinRC1  | [15:29:51] [INF] [9] Main: User Interactive: True
JellyfinRC1  | [15:29:51] [INF] [9] Main: Processor count: 6
JellyfinRC1  | [15:29:51] [INF] [9] Main: Program data path: /config
JellyfinRC1  | [15:29:51] [INF] [9] Main: Log directory path: /config/log
JellyfinRC1  | [15:29:51] [INF] [9] Main: Config directory path: /config/config
JellyfinRC1  | [15:29:51] [INF] [9] Main: Cache path: /cache
JellyfinRC1  | [15:29:51] [INF] [9] Main: Temp directory path: /tmp/jellyfin
JellyfinRC1  | [15:29:51] [INF] [9] Main: Web resources path: /jellyfin/jellyfin-web
JellyfinRC1  | [15:29:51] [INF] [9] Main: Application directory: /jellyfin/

FFmpeg logs


Client / Browser logs

No response

Relevant screenshots or videos

No response

Additional information

No response

Originally created by @theguymadmax on GitHub (Jun 10, 2025). ### Description of the bug At startup, Jellyfin scans media mounts for drive space, which leads to large delays. The delay varies between 6 to 12 minutes. During this time, I can hear the drives actively working. ### Reproduction steps 1. Have multiple large media mounts 2. Startup Jellyfin 10.11 ### What is the current _bug_ behavior? Delay in startup. ### What is the expected _correct_ behavior? Option to disable scanning media mounts or some improvement in speed. ### Jellyfin Server version Master ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number _No response_ ### Specify the build version 10.11RC1 ### Environment ```markdown - OS:Ubuntu 24.04 - Linux Kernel:6.11.0-26-generic - Virtualization: Docker - Plugins: None - Jellyfin Data Storage: 256GB SSD Ext4 - Media Storage: 20tb, 18tb,4 8tb All NTFS connected via DAS ``` ### Jellyfin logs ```shell [+] Running 1/1 ✔ Container JellyfinRC1 Created 0.0s Attaching to JellyfinRC1 JellyfinRC1 | [15:17:08] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache JellyfinRC1 | [15:29:51] [INF] [9] Jellyfin.Server.ServerSetupApp.SetupServer: Kestrel is listening on 0.0.0.0 JellyfinRC1 | info: Microsoft.Hosting.Lifetime[14] JellyfinRC1 | Now listening on: http://0.0.0.0:8096 JellyfinRC1 | info: Microsoft.Hosting.Lifetime[0] JellyfinRC1 | Application started. Press Ctrl+C to shut down. JellyfinRC1 | info: Microsoft.Hosting.Lifetime[0] JellyfinRC1 | Hosting environment: Production JellyfinRC1 | info: Microsoft.Hosting.Lifetime[0] JellyfinRC1 | Content root path: / JellyfinRC1 | [15:29:51] [INF] [9] Main: Jellyfin version: 10.11.0 JellyfinRC1 | [15:29:51] [INF] [9] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_LOG_DIR, /config/log]"] JellyfinRC1 | [15:29:51] [INF] [9] Main: Arguments: ["/jellyfin/jellyfin.dll"] JellyfinRC1 | [15:29:51] [INF] [9] Main: Operating system: Debian GNU/Linux 12 (bookworm) JellyfinRC1 | [15:29:51] [INF] [9] Main: Architecture: X64 JellyfinRC1 | [15:29:51] [INF] [9] Main: 64-Bit Process: True JellyfinRC1 | [15:29:51] [INF] [9] Main: User Interactive: True JellyfinRC1 | [15:29:51] [INF] [9] Main: Processor count: 6 JellyfinRC1 | [15:29:51] [INF] [9] Main: Program data path: /config JellyfinRC1 | [15:29:51] [INF] [9] Main: Log directory path: /config/log JellyfinRC1 | [15:29:51] [INF] [9] Main: Config directory path: /config/config JellyfinRC1 | [15:29:51] [INF] [9] Main: Cache path: /cache JellyfinRC1 | [15:29:51] [INF] [9] Main: Temp directory path: /tmp/jellyfin JellyfinRC1 | [15:29:51] [INF] [9] Main: Web resources path: /jellyfin/jellyfin-web JellyfinRC1 | [15:29:51] [INF] [9] Main: Application directory: /jellyfin/ ``` ### FFmpeg logs ```shell ``` ### Client / Browser logs _No response_ ### Relevant screenshots or videos _No response_ ### Additional information _No response_
OVERLORD added the bug label 2026-02-07 04:28:13 +03:00
Author
Owner

@enter-a-random-username commented on GitHub (Jun 10, 2025):

I had that in the beginning, but at the moment it takes a few seconds. Did a lot of cleanup and queries got a lot of optimizations,
Maybe i misunderstand the definition of large.

I run on optimistic and Jellyfin DB runs on NVMe and cache for DB on /tmp that is mounted to tmpfs.

Do you use a trigger on application start for scheduler tasks?

Image

@enter-a-random-username commented on GitHub (Jun 10, 2025): I had that in the beginning, but at the moment it takes a few seconds. Did a lot of cleanup and queries got a lot of optimizations, Maybe i misunderstand the definition of large. I run on optimistic and Jellyfin DB runs on NVMe and cache for DB on /tmp that is mounted to tmpfs. Do you use a trigger on application start for scheduler tasks? ![Image](https://github.com/user-attachments/assets/3ac1056c-7756-4a95-89f2-a7630c1093cc)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#7080