Jellyfin Forum
Very long scanning time for music - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: Very long scanning time for music (/t-very-long-scanning-time-for-music)



Very long scanning time for music - tom707 - 2025-08-15

Hey there,

I decided to use Jellyfin for music I bought. I already use it for movies and books.
Until I added my music, the manual (meaning clicking the button) libraries scans were quite fast - like it just took minutes if I added a new series, for instance.
Since I added my music, it takes many hours and is kind of stuck at 95%+. If I start a scan on one day, it's done the next day.
I started with just 30 songs or so, and this already took so long. At the moment, I have ~1500 songs, which have all been scanned once. However, the scan still takes like forever.
Also, the identification and loading of data for new songs takes forever too. I judge the end of a scan by looking at the progress bar in the GUI of my web player.

My research really didn't help: Like disabling LUFS scan didn't help, and I really would like to keep that.

I expect: Since I think gigabytes of videos should be harder to handle than music, I would expect the scan of music to be faster than the scan of my bigger movie library.
I like to buy a song every now and then so it would be nice to have shorter scans.

More details:
I use Jellyfin 10.10.7 (Server, Web, and Build version). Everything is installed via Docker on an Ubuntu Server.
I get metadata via MusicBrainz
Some logs:
[2025-08-15 13:26:45.155 +00:00] [INF] [148] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "tom". EnableAudioPlaybackTranscoding: True
[2025-08-15 13:27:17.964 +00:00] [INF] [109] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Web" "10.10.7" playing "Good Day". Stopped at "154270" ms
[2025-08-15 13:27:42.465 +00:00] [INF] [116] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/media/movies"
[2025-08-15 13:27:42.466 +00:00] [INF] [116] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/media/tvshows"
[2025-08-15 13:27:42.472 +00:00] [INF] [116] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/media/music"
[2025-08-15 13:27:42.472 +00:00] [INF] [116] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/media/books"
[2025-08-15 13:27:42.472 +00:00] [INF] [116] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[2025-08-15 13:27:43.287 +00:00] [ERR] [178] MediaBrowser.Providers.Music.AlbumMetadataService: Error in "MusicBrainz"
MetaBrainz.Common.HttpError: Not Found
For usage, please see: https://musicbrainz.org/development/mmd
---> MetaBrainz.Common.HttpError: HTTP 404 (NotFound) 'Not Found'
  at MetaBrainz.Common.HttpUtils.EnsureSuccessfulAsync(HttpResponseMessage response, CancellationToken cancellationToken)
  at MetaBrainz.MusicBrainz.Query.PerformRequestAsync(Uri uri, HttpMethod method, HttpContent body, CancellationToken cancellationToken, String format)
  --- End of inner exception stack trace ---
  at MetaBrainz.MusicBrainz.Query.PerformRequestAsync(Uri uri, HttpMethod method, HttpContent body, CancellationToken cancellationToken, String format)
  at MetaBrainz.MusicBrainz.Query.ApplyDelayAsync[T](Func2 request, CancellationToken cancellationToken)
  at MetaBrainz.MusicBrainz.Query.PerformRequestAsync[T](String entity, String id, IReadOnlyDictionary2 options, CancellationToken cancellationToken)
  at MetaBrainz.MusicBrainz.Query.LookupReleaseAsync(Guid mbid, Include inc, CancellationToken cancellationToken)
  at MediaBrowser.Providers.Plugins.MusicBrainz.MusicBrainzAlbumProvider.GetMetadata(AlbumInfo info, CancellationToken cancellationToken)
  at MediaBrowser.Providers.Manager.MetadataService2.ExecuteRemoteProviders(MetadataResult1 temp, String logName, Boolean replaceData, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)
[2025-08-15 13:27:43.557 +00:00] [INF] [109] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Media Segment Scan" Completed after 0 minute(s) and 1 seconds
[2025-08-15 13:30:24.749 +00:00] [INF] [178] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2025-08-15 13:31:25.608 +00:00] [INF] [60] EditorsChoicePlugin.Api.EditorsChoiceActivityController: EditorsChoiceActivityController loaded.
[2025-08-15 13:31:28.679 +00:00] [INF] [60] Emby.Server.Implementations.ScheduledTasks.TaskManager: Attempting to cancel Scheduled Task "Scan Media Library"
[2025-08-15 13:31:28.682 +00:00] [INF] [53] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Cancelled after 3 minute(s) and 46 seconds
[2025-08-15 13:31:28.767 +00:00] [INF] [19] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/books"
[2025-08-15 13:31:28.768 +00:00] [INF] [60] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/movies"
[2025-08-15 13:31:28.770 +00:00] [INF] [109] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/music"
[2025-08-15 13:31:28.802 +00:00] [INF] [250] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/tvshows"
[2025-08-15 13:31:29.294 +00:00] [INF] [250] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/media/movies"
[2025-08-15 13:31:29.295 +00:00] [INF] [250] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/media/tvshows"
[2025-08-15 13:31:29.298 +00:00] [INF] [250] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/media/music"
[2025-08-15 13:31:29.299 +00:00] [INF] [250] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/media/books"
[2025-08-15 13:31:29.299 +00:00] [INF] [250] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[2025-08-15 13:31:29.389 +00:00] [INF] [21] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Audio", Name: "Welcome to Tally Hall", Path: "/media/music/Tally Hall/Marvin's Marvelous Mechanical Museum/03 - Tally Hall - Welcome to Tally Hall.flac", Id: fdeb0414-a129-d4cf-edce-753df3ccc40c
[2025-08-15 13:31:29.390 +00:00] [INF] [21] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Audio", Name: "Good Day", Path: "/media/music/Tally Hall/Marvin's Marvelous Mechanical Museum/01 - Tally Hall - Good Day.flac", Id: dadc6d30-407f-3dee-329d-439a118f8857
[2025-08-15 13:31:29.394 +00:00] [INF] [21] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Audio", Name: "Just Apathy", Path: "/media/music/Tally Hall/Marvin's Marvelous Mechanical Museum/08 - Tally Hall - Just Apathy.flac", Id: 1f88314a-aa2b-7f77-8b37-392970bdd6d2
[2025-08-15 13:31:29.396 +00:00] [INF] [21] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Audio", Name: "Greener", Path: "/media/music/Tally Hall/Marvin's Marvelous Mechanical Museum/02 - Tally Hall - Greener.flac", Id: d6ac814b-0815-d7fc-74c8-b9059a7e92ac
[2025-08-15 13:31:29.408 +00:00] [INF] [21] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Audio", Name: "Be Born", Path: "/media/music/Tally Hall/Marvin's Marvelous Mechanical Museum/06 - Tally Hall - Be Born.flac", Id: 9e337aa2-666a-abe0-2d24-1207e34d7466
[2025-08-15 13:31:29.738 +00:00] [INF] [259] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/media/music/Tally Hall/Marvin's Marvelous Mechanical Museum/08 Just Apathy.flac\" -threads 0 -v warning -print_format json -show_streams -show_format"
[2025-08-15 13:31:29.942 +00:00] [INF] [291] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/media/music/Tally Hall/Marvin's Marvelous Mechanical Museum/03 Welcome to Tally Hall.flac\" -threads 0 -v warning -print_format json -show_streams -show_format"
[2025-08-15 13:31:30.091 +00:00] [INF] [291] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/media/music/Tally Hall/Marvin's Marvelous Mechanical Museum/01 Good Day.flac\" -threads 0 -v warning -print_format json -show_streams -show_format"
[2025-08-15 13:31:30.256 +00:00] [INF] [291] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/media/music/Tally Hall/Marvin's Marvelous Mechanical Museum/02 Greener.flac\" -threads 0 -v warning -print_format json -show_streams -show_format"
[2025-08-15 13:31:30.449 +00:00] [INF] [291] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/media/music/Tally Hall/Marvin's Marvelous Mechanical Museum/06 Be Born.flac\" -threads 0 -v warning -print_format json -show_streams -show_format"
[2025-08-15 13:32:55.628 +00:00] [INF] [293] EditorsChoicePlugin.Api.EditorsChoiceActivityController: EditorsChoiceActivityController loaded.
[2025-08-15 13:33:15.843 +00:00] [INF] [128] EditorsChoicePlugin.Api.EditorsChoiceActivityController: EditorsChoiceActivityController loaded.
[2025-08-15 13:34:39.122 +00:00] [WRN] [232] Jellyfin.Server.Implementations.Events.Consumers.Session.PlaybackStartLogger: PlaybackStart reported with null media info.
[2025-08-15 13:34:48.748 +00:00] [INF] [75] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.

Thanks for your help! ^-^