Jellyfin Forum
SOLVED: Errors during library scan - 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: SOLVED: Errors during library scan (/t-solved-errors-during-library-scan)



Errors during library scan - He-who-is-tired - 2024-07-07

I'm having an issue trying to get my music folder to refresh properly.  I get the errors (below) when scanning.  I can provide further logs if needed, but I'm hoping that this might be enough to at least point me in a general direction.  This log was taken with debug enabled, and it is frustrating in that there seems to be no mention of any specific item that the calls are failing for. 

Any insight is greatly appreciated!

release 10.9.6
synology DS218+
docker instance: jellyfin/jellyfin


[2024-07-06 19:53:59.995 -04:00] [DBG] [46] MediaBrowser.Providers.Manager.ProviderManager: OnRefreshComplete cc7e13db3fa0bedeb99144e11664c3a4
[2024-07-06 19:53:59.996 -04:00] [DBG] [45] MediaBrowser.Providers.Manager.ProviderManager: OnRefreshProgress cc7e13db3fa0bedeb99144e11664c3a4 18.035242290748897
[2024-07-06 19:53:59.996 -04:00] [DBG] [46] Jellyfin.Plugin.Tvdb.Providers.TvdbMissingEpisodeProvider: Given input is not in ["Series", "Season", "Episode"]: "MediaBrowser.Controller.Entities.Folder"
[2024-07-06 19:53:59.997 -04:00] [DBG] [46] Jellyfin.Plugin.Tvdb.Providers.TvdbMissingEpisodeProvider: "Missing Episode Fetcher" not enabled for "music"
[2024-07-06 19:54:00.000 -04:00] [ERR] [46] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item
System.InvalidOperationException: The data is NULL at ordinal 1. This method can't be called on NULL values. Check using IsDBNull before calling.
  at Microsoft.Data.Sqlite.SqliteDataRecord.GetNull[T](Int32 ordinal)
  at Microsoft.Data.Sqlite.SqliteValueReader.GetBlob(Int32 ordinal)
  at Microsoft.Data.Sqlite.SqliteDataRecord.GetCachedBlob(Int32 ordinal)
  at Microsoft.Data.Sqlite.SqliteDataRecord.GetStream(Int32 ordinal)
  at Emby.Server.Implementations.Data.SqliteItemRepository.GetItem(SqliteDataReader reader, InternalItemsQuery query, Boolean enableProgramAttributes, Boolean hasEpisodeAttributes, Boolean hasServiceName, Boolean queryHasStartDate, Boolean hasTrailerTypes, Boolean hasArtistFields, Boolean hasSeriesFields, Boolean skipDeserialization)
  at Emby.Server.Implementations.Data.SqliteItemRepository.GetItemList(InternalItemsQuery query)
  at MediaBrowser.Controller.Entities.Folder.GetActualChildrenDictionary()
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress1 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_01.<<RunTasks>b__1>d.MoveNext()
--- End of stack trace from previous location ---
  at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func
3 task, IList1 children, IProgress1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress1 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_01.<<RunTasks>b__1>d.MoveNext()
--- End of stack trace from previous location ---
  at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func
3 task, IList1 children, IProgress1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress1 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_01.<<RunTasks>b__1>d.MoveNext()
--- End of stack trace from previous location ---
  at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func
3 task, IList1 children, IProgress1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress1 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.Providers.Manager.ProviderManager.RefreshCollectionFolderChildren(MetadataRefreshOptions options, CollectionFolder collectionFolder, CancellationToken cancellationToken)
  at MediaBrowser.Providers.Manager.ProviderManager.RefreshItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken)
  at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue()
[2024-07-06 19:54:07.116 -04:00] [DBG] [45] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[2024-07-06 19:54:13.416 -04:00] [DBG] [46] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "172.17.0.1" received message: InboundWebSocketMessage`1 { Data: null, MessageType: KeepAlive, ServerId: null }


RE: Errors during library scan - TheDreadPirate - 2024-07-07

Can you share your full jellyfin log via pastebin?


RE: Errors during library scan - He-who-is-tired - 2024-07-08

It has been a couple of days, sorry, holiday break and all. Also figuring out pastebin!

I had to break up my log into 2 entries which I hope are accessible here:
https://pastebin.com/u/He-who-is-tired/1/YsMSit0y


RE: Errors during library scan - theguymadmax - 2024-07-08

Stop Jellyfin, remove the entry below from your migrations.xml in the config folder and restart Jellyfin. Wait until the migration completes;
    <ValueTupleOfGuidString>
      <Item1>cf6fabc2-9fbe-4933-84a5-ffe52ef22a58</Item1>
      <Item2>FixAudioData</Item2>
    </ValueTupleOfGuidString>

Source


RE: Errors during library scan - He-who-is-tired - 2024-07-08

thank you, I will try that. Is there an indicator that migration has completed?


RE: Errors during library scan - He-who-is-tired - 2024-07-08

Aaand, that worked! Wow, thank you very much!