mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
slow startup jellyfin container #6614
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 @fwmarcel on GitHub (Dec 27, 2024).
This issue respects the following points:
Description of the bug
after setting up my server and adding a few libraries, my jellyfin server takes over 12 minutes to start. see log. unfortunately i have no idea why this takes so long. neither the cpu nor memory is at the limit.
Reproduction steps
set up jellyfin. restart docker container
What is the current bug behavior?
What is the expected correct behavior?
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
10.10.3
Specify the build version
10.10.3
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response
@trinvh commented on GitHub (Jan 12, 2025):
Same issue, container unhealthy after many attempts which resulted in "curl: (7) Failed to connect to localhost port 8096 after 2 ms: Couldn't connect to server"
@felix920506 commented on GitHub (Jan 12, 2025):
What CPU are you using?
Is the Jellyfin database on HDDs or SSDs? Is it on a network share?
@fwmarcel commented on GitHub (Jan 12, 2025):
im using a Intel Celeron N5095 CPU. The Database is saved on a SSD. And its not a network share, its local.
@felix920506 commented on GitHub (Jan 12, 2025):
How big is the database file?
@fwmarcel commented on GitHub (Jan 12, 2025):
the library.db is 222MB big. or do you mean the size of jellyfin.db file?
@felix920506 commented on GitHub (Jan 12, 2025):
Can you enable debug logging and post the logs?
@fwmarcel commented on GitHub (Jan 12, 2025):
debug log was already enabled in the provided logs
@jellyfin-bot commented on GitHub (May 13, 2025):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@fwmarcel commented on GitHub (May 13, 2025):
the issue still exists
@tws101 commented on GitHub (May 20, 2025):
I am having a slow startup as well.... 10.10.7
On container rebuild and startup it takes 15 minutes to launch...
This is APPEARS 100% related to a large library example 50K in media files
Installation so on fast SSD for the jellyfin: Config, DB, and Container
Media Library is mounted Read Only from HDD (nfo files managed by other applications)
Docker Compose File
version: "3.8" services: jellyfin: container_name: jellyfin image: lscr.io/linuxserver/jellyfin:${JELLYFIN_VERSION} hostname: jellyfin restart: unless-stopped runtime: nvidia environment: - PUID=1000 - PGID=4000 - TZ=${TZ} - NVIDIA_VISIBLE_DEVICES=${NVIDIA_QUADRO2} volumes: - ${JELLYFIN_CONFIG}:/config - ${JELLYFIN_MEDIA}:/data/media:ro tmpfs: - /tmptranscode:uid=1000,gid=4000,mode=1777,size=25g networks: proxy: ipv4_address: 172.24.1.100 expose: - 8096 labels: - traefik.enable=true - traefik.http.routers.jellyfin.entrypoints=websecure - traefik.http.routers.jellyfin.rule=Host(`${JELLYFIN_DN}`) - traefik.http.routers.jellyfin.tls=true - traefik.http.services.jellyfin.loadbalancer.server.port=8096 cpus: 8 mem_limit: 32g jellyfin-jfa-go: container_name: jellyfin-jfa-go image: hrfee/jfa-go:${JFA_VERSION} hostname: jellyfin-jfa-go restart: unless-stopped environment: - TZ=${TZ} - JFA_SECRET=${JFA_SECRET} - JFA_SERVER_NAME=jfa-go volumes: - ${JFA_CONFIG}:/data - ${JELLYFIN_CONFIG}:/jf:ro networks: proxy: null expose: - 8056 labels: - traefik.enable=true - traefik.http.routers.jfa-go.entrypoints=websecure - traefik.http.routers.jfa-go.rule=Host(`${JFA_DN}`) - traefik.http.routers.jfa-go.tls=true - traefik.http.services.jfa-go.loadbalancer.server.port=8056 cpus: 1 mem_limit: 2g networks: proxy: name: proxy external: trueMy log has a stall right here
[2025-05-20 09:08:56.989 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
This is THE STALL POINT wait 15 minutes here***
[2025-05-20 09:22:56.737 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb Box Sets" "11.0.0.0"
**That plugin can be disabled and it does not matter the slow startup still occurs there
If I remove my large library's startup is fast....
Is there anyway to disable library scan at startup to try and see if that will resolve it?
@forcigross commented on GitHub (May 24, 2025):
same problem here
@Nackophilz commented on GitHub (Jun 4, 2025):
same here on unraid , took like 7 minute to boot up, have a very large library too
@felix920506 commented on GitHub (Jun 5, 2025):
How big is the library.db and how big is the Jellyfin.db files
@Nackophilz commented on GitHub (Jun 5, 2025):
Jellyfin db : 2,3mb
Library.db : 246,4mb
All on nvme * (Except video files of course)
@tws101 commented on GitHub (Jun 6, 2025):
Jellyfin DB 22.4 Megs
Library DB 1.63 Gigs
Both DB are on SSD
@crobibero commented on GitHub (Jun 6, 2025):
We have made significant improvements to the startup time for Jellyfin 10.11, so any investigation is on hold until the next release.
@jellyfin-bot commented on GitHub (Oct 5, 2025):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@fwmarcel commented on GitHub (Oct 5, 2025):
waiting for the next release
@JPVenson commented on GitHub (Oct 10, 2025):
10.11-RC8 starts for me with an empty DB in around 20sec and with my media library fully loaded in 40sec i consider this bug fixed in 10.11 with several performance fixes.
@darthShadow commented on GitHub (Oct 10, 2025):
FWIW, I believe this was because of the initial
VACUUMin the pre 10.11 releases: https://github.com/jellyfin/jellyfin/blob/v10.10.7/Emby.Server.Implementations/Data/BaseSqliteRepository.cs#L89