• 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 Library Scan Fails 10.9.0

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    Library Scan Fails 10.9.0

    10.9.0 Unstable - Library Scan Fails
    lechevaliernoir
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    Country:United States
    #1
    2024-03-28, 09:44 PM
    Build version: jellyfin-server_2024032505+deb12_amd64.deb
    Unstable, upgraded from 10.8.3

    I created a library, "Shows2", then went to the dashboard and removed it. After removing it, it still is displayed under "My Media" on the home page. Additionally, library scans are now failing with the log info listed below. I have been looking through the library.db to find where this is saved in order to remove reference to it, but am unable to find the pertinent information. Any ideas how I can remove these? 

    [2024-03-28 08:36:33.473 -09:00] [INF] Validating media library
    [2024-03-28 08:36:33.611 -09:00] [WRN] Library folder "/var/lib/jellyfin/data/playlists" is inaccessible or empty, skipping
    [2024-03-28 08:36:33.651 -09:00] [ERR] Error refreshing owned items for "/var/lib/jellyfin/root/default/Shows2"
    System.IO.DirectoryNotFoundException: Could not find a part of the path '/var/lib/jellyfin/root/default/Shows2'.
      at System.IO.Enumeration.FileSystemEnumerator1.Init()
      at System.IO.Enumeration.FileSystemEnumerable
    1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
      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 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.ConcurrentDictionary2.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 MediaBrowser.Controller.Entities.CollectionFolder.CreateResolveArgs(IDirectoryService directoryService, Boolean setPhysicalLocations)
      at MediaBrowser.Controller.Entities.CollectionFolder.GetFileSystemChildren(IDirectoryService directoryService)
      at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
    [2024-03-28 08:36:33.653 -09:00] [ERR] Error executing Scheduled Task
    System.IO.DirectoryNotFoundException: Could not find a part of the path '/var/lib/jellyfin/root/default/Shows2'.
      at System.IO.Enumeration.FileSystemEnumerator1.Init()
      at System.IO.Enumeration.FileSystemEnumerable
    1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
      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 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.ConcurrentDictionary2.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 MediaBrowser.Controller.Entities.CollectionFolder.CreateResolveArgs(IDirectoryService directoryService, Boolean setPhysicalLocations)
      at MediaBrowser.Controller.Entities.CollectionFolder.RequiresRefresh()
      at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-03-28, 10:29 PM
    Stop jellyfin and go to /var/lib/jellyfin/root/default/ and delete the "Shows2" folder in there.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    lechevaliernoir
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    Country:United States
    #3
    2024-03-28, 11:48 PM (This post was last modified: 2024-03-28, 11:51 PM by lechevaliernoir. Edited 1 time in total.)
    I actually did check that directory. After removing the library from Administration>Dashboard>Libraries, the folder has disappeared from /var/lib/jellyfin/root/default/ but still shows up under "My Media" on the homepage and as a folder under Administration>Metadata. That's why I started looking through database files and figured it was worth reporting.

    Edit: Also, I do appreciate your prompt review and reply!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-03-28, 11:59 PM
    AFAIK, /var/lib/jellyfin/root/default/ is where JF stores folders that represent libraries. If it didn't clean up the DB that is definitely a reportable issue.

    https://github.com/jellyfin/jellyfin/issues

    I don't see one that sounds like yours. Provide as much information and logs as you can.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    素兮若雪
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2023 Jul
    Reputation: 0
    Country:China
    #5
    2024-04-05, 06:23 AM
    (2024-03-28, 11:59 PM)TheDreadPirate Wrote: AFAIK, /var/lib/jellyfin/root/default/ is where JF stores folders that represent libraries.  If it didn't clean up the DB that is definitely a reportable issue.

    https://github.com/jellyfin/jellyfin/issues

    I don't see one that sounds like yours.  Provide as much information and logs as you can.

    I also encountered it on 10.9.0, and 100% triggered a bug, so I can no longer scan the repository. You can try renaming any media library. This bug is 100% triggered. Please prepare for testing as the database will be damaged and unable to scan media. Optimizing the database is invalid.
    The corresponding repository configuration file will not be created under the directory where media configuration is stored, such as/configure/root/default
    acn
    Offline

    Junior Member

    Posts: 3
    Threads: 0
    Joined: 2024 May
    Reputation: 0
    Country:Croatia
    #6
    2024-05-14, 10:38 AM
    Had the same problem after recent upgrade to 10.9.1 (linux host, official docker image).
    System.IO.DirectoryNotFoundException: Could not find a part of the path '/config/data/root/default/TV Shows'.
    I was able to solve it by updating a couple of rows in database library.db, as explained in this ticket:
    https://github.com/jellyfin/jellyfin/iss...1094171148
    Path /config/data/root/default/ is wrong and in should be /config/root/default/.
    In retrospect a couple of months ago did a migration from LSIO docker image to official. Their image uses exactly that path (/config/data/root/default/) for library definitions :-)
    It was working fine for a couple of months until official image got upgraded to 10.9.
    How did the old path get used in the database I'm not going to investigate but now all is working fine :-)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-05-14, 01:14 PM
    When you migrated from the LSIO to official image, did you start from scratch or did you use your existing /config directory? Because the two images do not use identical directory layouts, which would explain what you experienced.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    acn
    Offline

    Junior Member

    Posts: 3
    Threads: 0
    Joined: 2024 May
    Reputation: 0
    Country:Croatia
    #8
    2024-05-14, 06:51 PM (This post was last modified: 2024-05-14, 06:55 PM by acn. Edited 2 times in total.)
    Old LSIO container was purged and fresh pulled from JF repo. Moved/rsynced content from LSIO to the JF directory structure. Directories were correctly mapped in my docker-compose.yaml.
    This ticket gave me the idea, but I think it's not entirely accurate: https://github.com/jellyfin/jellyfin/issues/3717
    It was working fine for 2 months, pulled some minor upgrades to the container, new content was scanned to the library.
    I don't know how but it was working Grinning-face
    Upgrade to the 10.9.x was fine, only found out after a day or two that the library refresh is not working.
    Attached a screenshot from TypedBaseItems table in library.db with the wrong entries.


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2024-05-14, 07:05 PM
    I'm talking about the contents of /config, like your database and metadata. Were they purged? Or did you re-use those files?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    acn
    Offline

    Junior Member

    Posts: 3
    Threads: 0
    Joined: 2024 May
    Reputation: 0
    Country:Croatia
    #10
    2024-05-17, 01:41 PM
    Sorry if I wasn't clear. It was reused.
    I didn't want to have to rescan the whole library.
    Pages (2): 1 2 Next »

    « 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