• 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 General Questions Cleanup after deleted library

     
    • 0 Vote(s) - 0 Average

    Cleanup after deleted library

    ajp_anton
    Offline

    Junior Member

    Posts: 7
    Threads: 3
    Joined: 2024 Jun
    Reputation: 0
    Country:Finland
    #3
    2025-02-03, 02:29 PM
    (2025-02-03, 02:10 PM)TheDreadPirate Wrote: There are scheduled jobs that will clean most of that up.  Optimize Database, cache cleanup, etc.

    What OS is Jellyfin running on?  If Linux, is it installed directly in Linux or are you using Docker?
    I'm using Docker (on Linux).

    I tried running those manually now, and the metadata directory was almost cleared. Some lyrics files are still there left by the lrclib plugin, but I'm not sure if that's the responsibility of the plugin and not something you can control.

    The database still contains everything though. And going to Home, My Media still shows everything I had. The Dashboard's Libraries is empty, as that's where I deleted the library.

    Manually running Scan Media Library fails. Logs has the following:
    Code:
    [2025-02-03 14:19:04.876 +00:00] [ERR] [51] MediaBrowser.Controller.Entities.BaseItem: Error refreshing owned items for "/config/root/default/LibraryName"
    System.IO.DirectoryNotFoundException: Could not find a part of the path '/config/root/default/LibraryName'.
      at System.IO.Enumeration.FileSystemEnumerator`1.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 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, Func`3 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)
    [2025-02-03 14:19:04.877 +00:00] [ERR] [51] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
    System.IO.DirectoryNotFoundException: Could not find a part of the path '/config/root/default/LibraryName'.
      at System.IO.Enumeration.FileSystemEnumerator`1.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 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, Func`3 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 cancellationToken)
      at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
      at Emby.Server.Implementations.Library.LibraryManager.ValidateTopLibraryFolders(CancellationToken cancellationToken, Boolean removeRoot)
      at Emby.Server.Implementations.Library.LibraryManager.PerformLibraryValidation(IProgress`1 progress, CancellationToken cancellationToken)
      at Emby.Server.Implementations.Library.LibraryManager.ValidateMediaLibraryInternal(IProgress`1 progress, CancellationToken cancellationToken)
      at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
    [2025-02-03 14:19:04.878 +00:00] [INF] [51] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Failed after 0 minute(s) and 0 seconds
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Cleanup after deleted library - by ajp_anton - 2025-02-03, 01:59 PM
    RE: Cleanup after deleted library - by TheDreadPirate - 2025-02-03, 02:10 PM
    RE: Cleanup after deleted library - by ajp_anton - 2025-02-03, 02:29 PM
    RE: Cleanup after deleted library - by TheDreadPirate - 2025-02-03, 02:48 PM
    RE: Cleanup after deleted library - by TheDreadPirate - 2025-02-03, 10:47 PM
    RE: Cleanup after deleted library - by ajp_anton - 2025-02-04, 07:15 AM
    RE: Cleanup after deleted library - by TheDreadPirate - 2025-02-04, 01:51 PM

    • 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