• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Media Scanning & Identification library is in an invalid state

     
    • 0 Vote(s) - 0 Average

    library is in an invalid state

    library is in an invalid state
    wombat23
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Nov
    Reputation: 0
    Country:Canada
    #1
    2025-11-03, 03:25 AM
    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?

       
       
    wombat23
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Nov
    Reputation: 0
    Country:Canada
    #2
    3 hours ago (This post was last modified: 3 hours ago by wombat23. Edited 1 time in total.)
    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.FileSystemEnumerator1.Init()
      at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
      at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
      at System.IO.DirectoryInfo.EnumerateFileSystemInfos(String searchPattern, EnumerationOptions enumerationOptions)
      at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive)
      at MediaBrowser.Controller.Providers.DirectoryService.<>c.<GetFileSystemEntries>b__5_0(String p, IFileSystem fileSystem)
      at System.Collections.Concurrent.ConcurrentDictionary
    2.GetOrAdd[TArg](TKey key, Func3 valueFactory, TArg factoryArgument)
      at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path)
      at MediaBrowser.Controller.IO.FileData.GetFilteredFileSystemEntries(IDirectoryService directoryService, String path, IFileSystem fileSystem, IServerApplicationHost appHost, ILogger logger, ItemResolveArgs args, Int32 flattenFolderDepth, Boolean resolveShortcuts)
      at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, IDirectoryService directoryService, IItemResolver[] resolvers, Folder parent, Nullable
    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.FileSystemEnumerator1.Init()
      at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles(String directory, String expression, EnumerationOptions options)
      at System.IO.Directory.EnumerateFiles(String path, String searchPattern, EnumerationOptions enumerationOptions)
      at Emby.Server.Implementations.Library.Resolvers.PlaylistResolver.Resolve(ItemResolveArgs args)
      at MediaBrowser.Controller.Resolvers.ItemResolver
    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 ?!
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode