Jellyfin Forum
Library scan not working - 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 scan not working (/t-library-scan-not-working)

Pages: 1 2


Library scan not working - alike - 2024-10-27

Hello there. I cant update my library anymore. I get these messages in my jellyfin server log.
Server v10.10.0 I recently updated but had the same issue with last version. This all started suddenly after changes to things i dont know if related or not to how Jellyfin Server operate.

Code:
[2024-10-27 16:28:33.829 +01:00] [ERR] [33] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\ProgramData\Jellyfin\Server\root\default\Musikk - Flac'.
  at System.IO.Enumeration.FileSystemEnumerator`1.Init()
  at System.IO.DirectoryInfo.InternalEnumerateInfos(String


And then i checked the folder  C:\ProgramData\Jellyfin\ and gave my user read, write, executable and everything else manually.
Still get the same issue. My user had access through administrators group anyway so what i tested shouldnt have any say.

 
Code:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\ProgramData\Jellyfin\Server\root\default\Filmer'.
  at System.IO.Enumeration.FileSystemEnumerator`1.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 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, 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 MediaBrowser.Controller.Entities.Folder.RefreshChildMetadata(BaseItem child, MetadataRefreshOptions refreshOptions, Boolean recursive, IProgress`1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.<>c__DisplayClass69_0`1.<<RunTasks>b__1>d.MoveNext()
--- End of stack trace from previous location ---
  at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func`3 task, IList`1 children, IProgress`1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.UserRootFolder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, 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)
[2024-10-27 17:49:25.848 +01:00] [INF] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Failed after 0 minute(s) and 0 seconds

For me it seems to be a permission issue. Dunno why it started. The app is looking for config folders and files, and its there.
I also get error trying to add new stuff into the library.
[Image: 1ms49vs.png]


RE: Library scan not working - theguymadmax - 2024-10-27

Quote: This all started suddenly after changes to things i dont know if related or not to how Jellyfin Server operate.
What changes?
Quote:[Image: 1ms49vs.png]
"There was an error with adding the file path to Jellyfin. Please ensure that the file path is valid and that Jellyfin has access to the file path."

Situations like these usually involves editing the database.


RE: Library scan not working - dougsbrat - 2024-11-08

Same problem here
Tv shows and movies
Are not adding when places in folders
Some music play lists are empty and can’t add to them or delete play list

Been getting strange a week or so pre 10.10

Looked at every setting for problem

Only found
Audio normalization failed


RE: Library scan not working - TheDreadPirate - 2024-11-08

(2024-11-08, 01:45 PM)dougsbrat Wrote: Same problem here
Tv shows and movies
Are not adding when places in folders
Some music play lists are empty and can’t add to them or delete play list

Been getting strange a week or so pre 10.10

Looked at every setting for problem

Only found
Audio normalization failed

Can you share your logs via pastebin?


RE: Library scan not working - alike - 2024-11-11

[2024-11-11 14:55:26.681 +01:00] [INF] [1] Main: Jellyfin version: "10.10.0"
[2024-11-11 14:55:26.705 +01:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, C:\ProgramData\Jellyfin\log]"]
[2024-11-11 14:55:26.707 +01:00] [INF] [1] Main: Arguments: ["C:\Program Files\Jellyfin\Server\jellyfin.dll", "--datadir", "C:\ProgramData\Jellyfin"]
[2024-11-11 14:55:26.709 +01:00] [INF] [1] Main: Operating system: "Microsoft Windows 10.0.22631"
[2024-11-11 14:55:26.710 +01:00] [INF] [1] Main: Architecture: X64
[2024-11-11 14:55:26.711 +01:00] [INF] [1] Main: 64-Bit Process: True
[2024-11-11 14:55:26.712 +01:00] [INF] [1] Main: User Interactive: True
[2024-11-11 14:55:26.713 +01:00] [INF] [1] Main: Processor count: 16
[2024-11-11 14:55:26.714 +01:00] [INF] [1] Main: Program data path: "C:\ProgramData\Jellyfin"
[2024-11-11 14:55:26.715 +01:00] [INF] [1] Main: Log directory path: "C:\ProgramData\Jellyfin\log"
[2024-11-11 14:55:26.716 +01:00] [INF] [1] Main: Config directory path: "C:\ProgramData\Jellyfin\config"
[2024-11-11 14:55:26.717 +01:00] [INF] [1] Main: Cache path: "C:\ProgramData\Jellyfin\cache"
[2024-11-11 14:55:26.718 +01:00] [INF] [1] Main: Temp directory path: "C:\Users\maise\AppData\Local\Temp\jellyfin"
[2024-11-11 14:55:26.719 +01:00] [INF] [1] Main: Web resources path: "C:\Program Files\Jellyfin\Server\jellyfin-web"
[2024-11-11 14:55:26.720 +01:00] [INF] [1] Main: Application directory: "C:\Program Files\Jellyfin\Server\"
[2024-11-11 14:55:26.815 +01:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "C:\ProgramData\Jellyfin\Server\cache"

Where do i change these paths? From the GUI i could only change some of them.


RE: Library scan not working - TheDreadPirate - 2024-11-11

Those paths are set during the install process. You can't easily change them after install.


RE: Library scan not working - alike - 2024-11-18

I think i need to reinstall the server. Its just messed up now and i dont know how to fix it as it is.
How can i do that in a way to keep most or all of the setup i already have? I found this one, any experience using it? https://github.com/MMMZZZZ/Jellyfin-Migrator


RE: Library scan not working - TheDreadPirate - 2024-11-18

That migrator is for migrating a Windows install to a Docker install.

Backup C:\ProgramData\Jellyfin. That contains all your permanent data.


RE: Library scan not working - alike - 2024-11-20

Ok i did this. It looks like everything is inside C:\Users\xxxxx\AppData\Local\Jellyfin on the newer versions.
It looks like my database is messed up, since the dirs are moved. So it looks like i have to rebuild the whole database.
Another weird thing, now that i reinstalled and put the backup folders back into C:\Users\xxxx\AppData\Local\Jellyfin is that most of the plugins lack icons. And when i check in the log, they are not activated. But the plugins are moved to the folder it is looking for plugin, so i don't know what to do.


RE: Library scan not working - TheDreadPirate - 2024-11-20

The permanent files being in C:\Users means that Jellyfin was run without admin privileges, which is fine.

Can you share your logs via pastebin?