![]() |
|
library is in an invalid state - 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: library is in an invalid state (/t-library-is-in-an-invalid-state) |
library is in an invalid state - wombat23 - 2025-11-03 Running jellyfin on Windows 10 Earlier this year I built a new NAS and migrated the data over to it. What was the X: drive is now V: I went library by library, added the V: path then removed the X: path. It worked fine for a while. However since updating to the latest 10.11 all my shows have duplicated. Even though when I edit a Library only the V: path is shown. Tonight I removed a channel to redo it and BOTH paths show up in the "Remove Medi Folder" popup I click OK. Then I shut down jellyfin and restarted it. When I added the path back in as a new library the error popup happened: "The library is in an invalid state and cannot be edited. You are possible encountering a bug: the path in the database is not the correct path in the system" Any help would be very appreciated! Both libraries were named the same if that helps? RE: library is in an invalid state - wombat23 - 2025-11-13 To add to this removing ghost path from libraries Bug So in a continuation of trying to get my server stable again Is there any easy way of removing all references of an outdated path for all the libraries? I migrated from X:\ to V:\ and even though the libraries only show the single path all my shows have been duplicated and are still showing the x:\ path Library scans have not fixed this and metadata editor would be days doing this manually :-( I have checked the libraries XML files under (windows) and it's correct in each with only a single entry for path: Jellyfin\Server\root\default\*Libraryname* <PathInfos> <MediaPathInfo> <Path>V:\tv_shows\*Libraryname*</Path> </MediaPathInfo> </PathInfos> ================ Error log applicable portions: [2025-11-12 22:59:20.303 -07:00] [INF] [49] Emby.Server.Implementations.Library.LibraryManager: Validating media library [2025-11-12 22:59:21.908 -07:00] [ERR] [49] Emby.Server.Implementations.Library.LibraryManager: Error in GetFilteredFileSystemEntries isPhysicalRoot: False IsVf: False System.IO.IOException: The network name cannot be found. : 'X:\TV Shows\American'. at System.IO.Enumeration.FileSystemEnumerator 1.Init()2.GetOrAdd[TArg](TKey key, Func3 valueFactory, TArg factoryArgument)1 collectionType, LibraryOptions libraryOptions)[2025-11-12 22:59:21.943 -07:00] [ERR] [49] Emby.Server.Implementations.Library.LibraryManager: Error in "PlaylistResolver" resolving "X:\TV Shows\American" System.IO.IOException: The network name cannot be found. : 'X:\TV Shows\American'. at System.IO.Enumeration.FileSystemEnumerator 1.Init()1.ResolvePath(ItemResolveArgs args)at Emby.Server.Implementations.Library.LibraryManager.Resolve(ItemResolveArgs args, IItemResolver resolver) [2025-11-12 22:59:22.091 -07:00] [INF] [36] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "V:\movies\Bluray's" -—all is successful for the new v:\ libraries—- [2025-11-12 22:59:22.112 -07:00] [INF] [49] Emby.Server.Implementations.IO.LibraryMonitor: Skipping realtime monitor for "X:\Movies\Bluray's" because the path does not exist —- same failures for all the old x:\ library paths —- Where is it still referencing these x:\ paths from ?! RE: library is in an invalid state - wombat23 - 2025-11-14 Also scan all libraries fails immediately because of those bad old X: paths that don't exist anymore: [2025-11-13 20:10:32.305 -07:00] [ERR] [30] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task System.IO.IOException: The network name cannot be found. : 'X:\TV Shows\American'. at System.IO.Enumeration.FileSystemEnumerator 1.Init()1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)at System.IO.Enumeration.FileSystemEnumerableFactory.UserEntries(String directory, String expression, EnumerationOptions options) at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntryPaths(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.IsAccessible(String path) at MediaBrowser.Controller.Entities.Folder.IsLibraryFolderAccessible(IDirectoryService directoryService, BaseItem item, Boolean checkCollection) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress 1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)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)1 progress, CancellationToken cancellationToken)at Emby.Server.Implementations.Library.LibraryManager.ValidateMediaLibraryInternal(IProgress 1 progress, CancellationToken cancellationToken)1 progress, CancellationToken cancellationToken)at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options) [2025-11-13 20:10:32.318 -07:00] [INF] [30] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Failed after 0 minute(s) and 2 seconds |