• 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 Jellyfin fails to completely scan my media library

     
    • 0 Vote(s) - 0 Average

    Jellyfin fails to completely scan my media library

    Jellyfin fails to completely scan my media library
    ZYKerman
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    Country:China
    #1
    2024-12-25, 04:49 PM (This post was last modified: 2024-12-25, 04:54 PM by ZYKerman. Edited 2 times in total.)
    HINT: I have also submitted this as an issue in Github. You can see more detailed logs and screenshots there:https://github.com/jellyfin/jellyfin/issues/13278

    I'm experiencing an issue where my Jellyfin server fails to completely scan my media library. After I hit the "scan all libraries" button, it produces isolated episodes but the whole season does not appear in my anime library. It also fails to recognize some of the anime in my media folder - neither complete season nor isolated episodes appear. Note that all these files are maintained automatically by Sonarr, so they are neatly named and organized and Jellyfin absolutely should have recognized them.
    When I dived further, I found that Jellyfin automatically cancelled the scanning process shortly after it was started, amd that the scans will eventually stop at 86.6% with a log output
    Code:
    [2024-12-25 04:25:07.333 +08:00] [INF] Removing virtual season null in series "某科学的超电磁炮"
    [2024-12-25 04:25:07.333 +08:00] [INF] Removing item, Type: "Season", Name: "未知季", Path: "", Id: 060dfd34-9fc0-8f37-59e1-cee853308251
    After stopping at this point for a moment, the whole scanning process is terminated. It seems that Jellyfin is trying to delete a phantom season but it is stuck, and that the rest of the library is not scanned at all. Meanwhile, another interesting fact is that SOMETIMES the scanning process stops after an error:
    Code:
    [2024-12-25 04:07:16.997 +08:00] [ERR] Error executing Scheduled Task
    System.Threading.SemaphoreFullException: Adding the specified count to the semaphore would cause it to exceed its maximum count.
      at System.Threading.SemaphoreSlim.Release(Int32 releaseCount)
      at MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String url, ImageType type, Nullable`1 imageIndex, CancellationToken cancellationToken)
      at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, Boolean removeOnFailure)
      at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
      at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason)
      at Emby.Server.Implementations.Library.LibraryManager.SavePeopleMetadataAsync(IEnumerable`1 people, CancellationToken cancellationToken)
      at Emby.Server.Implementations.Library.LibraryManager.UpdatePeopleAsync(BaseItem item, List`1 people, CancellationToken cancellationToken)
      at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken)
      at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
      at MediaBrowser.Providers.TV.SeriesMetadataService.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
      at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
      at MediaBrowser.Controller.Entities.Folder.RefreshAllMetadataForContainer(IMetadataContainer container, MetadataRefreshOptions refreshOptions, IProgress`1 progress, 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.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.AggregateFolder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
      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-12-25 04:07:16.998 +08:00] [INF] "扫描媒体库" Failed after 1 minute(s) and 40 seconds
    Through my observation, I believe that this error ONLY appears when the scanning process is the FIRST scan after the server is (re)started and the following ones do not report any error. The following ones will get stuck, and then exit, with incompletely scanned libraries, but no error in the log file. I know that poor accessibility to metadata providers such as TMDB here in China can be a cause of incomplete scans, but I have already disabled all means of scraping metadata (because the metadata is maintained by Sonarr) so this is definitely not the reason. I don't know why this error appears randomly, and I'm not sure whether it is related to the incomplete scan or not, but something must have gone wrong in my Jellyfin database.
    Has anyone else encountered this problem? Are there any known fixes or troubleshooting steps I can try to resolve this issue?
    Thank you for your assistance.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-12-26, 07:12 PM
    Can you share your full log via pastebin? Or privatebin.

    And how is Jellyfin installed?
    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]
    ZYKerman
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    Country:China
    #3
    2024-12-27, 09:48 AM (This post was last modified: 2024-12-27, 09:52 AM by ZYKerman. Edited 1 time in total.)
    I'm not sure about how "full" the log should be...... I'm pasting the Jellyfin log of the day before yesterday here.
    https://1drv.ms/u/c/859d8299703406b0/EcX...Q?e=nOeUTF
    (This exceeds the limit of 512KB of Pastebin so I'm sharing via OneDrive.)
    Please tell me which part of the log is needed and I'll give you that.

    As for the installation, I installed the binary file package via the official repository on Ubuntu.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-12-27, 09:33 PM (This post was last modified: 2024-12-27, 09:33 PM by TheDreadPirate.)
    Enable IPv6 in the Jellyfin settings, restart Jellyfin, scan again.
    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]
    ZYKerman
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    Country:China
    #5
    2024-12-28, 09:33 AM
    Many thanks for your answer.
    I eventually solved the problem by deleting all the existing .nfo files. I guess that I enabled this in Sonarr the other day and it became the reason why Jellyfin failed to scan the media.
       
    This option also produces .nfo files, and I guess that these .nfo files are not supported by Jellyfin and thus the scan process was stuck.
    « 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