• 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 Jellyfin is trying to scan a folder that doesn't exist

     
    • 0 Vote(s) - 0 Average

    Jellyfin is trying to scan a folder that doesn't exist

    Swarfega
    Offline

    Junior Member

    Posts: 4
    Threads: 3
    Joined: 2024 Jun
    Reputation: 0
    #1
    Yesterday, 08:20 AM
    I use Jellyfin in a container which is configured to read my media from a NFS share from a Pi4. It all works but I looked at the possibility of using a CIFS share on my router so added the cifs share to Jellyfin.  It didn't do what I wanted to I scrapped that and returned to using the NFS share. It all works but I notice in the logs it still references the cifs share even though its not configured in my Music library.  
    The options.xml file only references one path and that's the correct NFS one.
    Any idea where it is finding this from?

    Code:
    [2025-05-09 00:25:20.319 +01:00] [ERR] [137] MediaBrowser.Controller.Entities.BaseItem: Error refreshing owned items for "/cifs_share/music/Alpha 9"
    System.IO.DirectoryNotFoundException: Could not find a part of the path '/cifs_share/music/Alpha 9'.
      at System.IO.Enumeration.FileSystemEnumerator`1.Init()
      at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
      at MediaBrowser.Controller.Providers.DirectoryService.<>c.<GetFileSystemEntries>b__5_0(String p, IFileSystem fileSystem)
      at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path)
      at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
    [2025-05-09 00:25:20.322 +01:00] [ERR] [137] MediaBrowser.Controller.Entities.BaseItem: Error refreshing owned items for "/cifs_share/music/Blugazer"
    System.IO.DirectoryNotFoundException: Could not find a part of the path '/cifs_share/music/Blugazer'.
      at System.IO.Enumeration.FileSystemEnumerator`1.Init()
      at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
      at MediaBrowser.Controller.Providers.DirectoryService.<>c.<GetFileSystemEntries>b__5_0(String p, IFileSystem fileSystem)
      at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path)
      at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
    etc etc
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 375
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #2
    Yesterday, 11:33 AM
    the "etc etc" part is kinda important to figure that out specificlly and more log before that also.

    Guessing you might have added that path before and its now in a library and JF tries to load previously existing media from it?
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    toytown
    Offline

    Member

    Posts: 77
    Threads: 2
    Joined: 2023 Jun
    Reputation: 3
    #3
    Yesterday, 02:14 PM
    This has happened to me on more than 1 occasion.  The solution i used (albeit probably not the best) was to simply remove all references to the path in the sqllite database.  Stop the container first to make sure Jellyfin isn't running, then if you have sqlite installed for your distro just run the following command (altering the paths to your personal requirements)

    Code:
    sqlite3 "/jellyFin/config/data/library.db" "DELETE from TypedBaseItems where path like '%pathToRemove%';" ".exit"
    « 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