Jellyfin Forum
Is 10.9.* media scanning broken? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Is 10.9.* media scanning broken? (/t-is-10-9-media-scanning-broken)



Is 10.9.* media scanning broken? - escapegoat - 2024-05-27

I upgraded from 10.8.* to 10.9.1, 10.9.2, and now 10.9.3. I never had issues in 10.8.*, but now Jellyfin wont populate files in the movie dashboard unless I run a scan disconnected from the internet. I even tried to manually identify movies and that doesn't work. I run it on an I7-8650U. The OS and application run on an SSD and I have ~600 movies running on an external hard drive.

Originally, I ran it on ubuntu 22.04.3 LTS. I tried to do a fresh install on 10.9.1 and none of the scanning would populate files in the movie dashboard.
I reinstalled the OS and jellyfin - same issue. 
I reinstalled to ubuntu 24.04 LTS and 10.9.2 - same issue.
However, I decided to run a scan disconnected from the internet and now I can see my files in the movie dashboard but they don't have meta data. Manually adding metadata also does not work and the file change detection does not work.

Generally speaking, is 10.9.* completely borked or is it just me?
I'm curious if other people are having similar issues.


RE: Is 10.9.* media scanning broken? - Fate - 2024-05-27

everything works fine for me...

Can you post your log files?


RE: Is 10.9.* media scanning broken? - escapegoat - 2024-05-27

(2024-05-27, 05:06 PM)Fate Wrote: everything works fine for me...

Can you post your log files?
Here is the errors that I'm getting. 
Seems like it's failing to communicate with IMDB because it's timing out.
Maybe IMDB is throttling these requests now?

Code:
[2024-05-27 17:53:22.506 +00:00] [INF] Creating new access token for user 8d198d4d-abc3-408b-9d81-292d17aadce0
[2024-05-27 17:53:22.537 +00:00] [INF] WS "192.168.X.XXX" request
[2024-05-27 17:54:42.573 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-05-27 17:55:22.954 +00:00] [ERR] Provider "TheMovieDb" failed to retrieve search results
System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
---> System.TimeoutException: A task was canceled.
---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
  at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
  at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
  at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
  at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
  at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
  --- End of inner exception stack trace ---
  --- End of inner exception stack trace ---
  at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
  at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
  at TMDbLib.Rest.RestRequest.SendInternal(HttpMethod method, CancellationToken cancellationToken)
  at TMDbLib.Rest.RestRequest.Get[T](CancellationToken cancellationToken)
  at TMDbLib.Rest.RestRequestExtensions.GetOfT[T](RestRequest request, CancellationToken cancellationToken)
  at TMDbLib.Client.TMDbClient.GetConfigAsync()
  at MediaBrowser.Providers.Plugins.Tmdb.TmdbClientManager.EnsureClientConfigAsync()
  at MediaBrowser.Providers.Plugins.Tmdb.TmdbClientManager.FindByExternalIdAsync(String externalId, FindExternalSource source, String language, CancellationToken cancellationToken)
  at MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieProvider.GetSearchResults(MovieInfo searchInfo, CancellationToken cancellationToken)
  at MediaBrowser.Providers.Manager.ProviderManager.GetRemoteSearchResults[TItemType,TLookupType](RemoteSearchQuery`1 searchInfo, BaseItem referenceItem, CancellationToken cancellationToken)
[2024-05-27 17:55:26.916 +00:00] [INF] Setting provider id's to item a43ab2b6-6103-24b0-2bb9-83cc8ed442f7-"Kindergarten Cop": [("Imdb": "tt0099938")]
[2024-05-27 17:55:26.920 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/mediahdd/4k-Movies/Kindergarten Cop.mkv\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-05-27 17:57:06.987 +00:00] [ERR] Error processing request: "The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing". URL "POST" "/Items/RemoteSearch/Apply/a43ab2b6610324b02bb983cc8ed442f7".
[2024-05-27 17:57:30.573 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-05-27 17:58:54.573 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-05-27 17:59:30.572 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.



RE: Is 10.9.* media scanning broken? - TheDreadPirate - 2024-05-27

Do you have a pihole or some other DNS adblocker on your network?


RE: Is 10.9.* media scanning broken? - escapegoat - 2024-05-27

Ok - I solved the issue myself. I disabled IPv6 by editing /etc/sysctl.conf
Weird.


RE: Is 10.9.* media scanning broken? - isamudaison - 2024-05-28

It's certainly broken for me:

Code:
[2024-05-28 14:28:28.369 -07:00] [ERR] [37] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
System.TypeInitializationException: The type initializer for 'ICU4N.Text.Transliterator' threw an exception.
---> System.TypeInitializationException: The type initializer for 'ICU4N.Globalization.UCultureInfo' threw an exception.
---> System.Globalization.CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name')
en is an invalid culture identifier.
  at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
  at ICU4N.Globalization.UCultureInfo..cctor()
  --- End of inner exception stack trace ---
  at ICU4N.Globalization.UCultureInfo.get_CurrentCulture()
  at ICU4N.Impl.ICUResourceBundle.GetBundleInstance(String baseName, String localeID, Assembly root, OpenType openType)
  at ICU4N.Impl.ICUResourceBundle.GetBundleInstance(String baseName, String localeID, Assembly root, Boolean disableFallback)
  at ICU4N.Util.UResourceBundle.<>c__DisplayClass25_0.<GetRootType>b__0(String key)
  at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
  at ICU4N.Util.UResourceBundle.GetRootType(String baseName, Assembly root)
  at ICU4N.Util.UResourceBundle.InstantiateBundle(String baseName, String localeName, Assembly root, Boolean disableFallback)
  at ICU4N.Util.UResourceBundle.GetBundleInstance(String baseName, String localeName, Assembly root, Boolean disableFallback)
  at ICU4N.Util.UResourceBundle.GetBundleInstance(String baseName, String localeName, Assembly root)
  at ICU4N.Text.Transliterator..cctor()
  --- End of inner exception stack trace ---
  at ICU4N.Text.Transliterator.GetInstance(String id)
  at Jellyfin.Extensions.StringExtensions.<>c.<.cctor>b__8_0()
  at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
  at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
  at System.Lazy`1.CreateValue()
  at Jellyfin.Extensions.StringExtensions.Transliterated(String text)
  at MediaBrowser.Controller.Entities.BaseItem.ModifySortChunks(ReadOnlySpan`1 name)
  at MediaBrowser.Controller.Entities.BaseItem.CreateSortName()
  at MediaBrowser.Controller.Entities.BaseItem.get_SortName()
  at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItem(BaseItem item, BaseItem topParent, String userDataKey, SqliteCommand saveItemStatement)
  at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItemsInTransaction(SqliteConnection db, IEnumerable`1 tuples)
  at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItems(IReadOnlyList`1 items, CancellationToken cancellationToken)
  at Emby.Server.Implementations.Library.LibraryManager.CreateItems(IReadOnlyList`1 items, BaseItem parent, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.<>c__DisplayClass69_0`1.<<RunTasks>b__1>d.MoveNext()
--- End of stack trace from previous location ---
  at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func`3 task, IList`1 children, IProgress`1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.<>c__DisplayClass69_0`1.<<RunTasks>b__1>d.MoveNext()
--- End of stack trace from previous location ---
  at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func`3 task, IList`1 children, IProgress`1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.<>c__DisplayClass69_0`1.<<RunTasks>b__1>d.MoveNext()
--- End of stack trace from previous location ---
  at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func`3 task, IList`1 children, IProgress`1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.AggregateFolder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at Emby.Server.Implementations.Library.LibraryManager.PerformLibraryValidation(IProgress`1 progress, CancellationToken cancellationToken)
  at Emby.Server.Implementations.Library.LibraryManager.ValidateMediaLibraryInternal(IProgress`1 progress, CancellationToken cancellationToken)
  at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
[2024-05-28 14:28:28.385 -07:00] [INF] [37] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Failed after 0 minute(s) and 16 seconds



RE: Is 10.9.* media scanning broken? - TheDreadPirate - 2024-05-28

@isamudaison

Try the solution here.

https://forum.jellyfin.org/t-solved-library-scan-fails?pid=23657#pid23657


RE: Is 10.9.* media scanning broken? - isamudaison - 2024-05-28

(2024-05-28, 10:23 PM)TheDreadPirate Wrote: @isamudaison

Try the solution here.

https://forum.jellyfin.org/t-solved-library-scan-fails?pid=23657#pid23657

I actually just saw that... BTW this will happen if users (lazy ones like me) use Portainer to upgrade their docker containers Smiling-face

Working as expected after re-creating the container.

Thanks!