• 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 SOLVED: Media scan stuck at 96%

    Pages (4): 1 2 3 4 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: Media scan stuck at 96%

    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #1
    2024-01-16, 03:26 PM (This post was last modified: 2024-01-16, 03:31 PM by manicraft1001. Edited 2 times in total.)
    Hello,
    I have been having problems with the media scan on my library.
    These problems are occuring after I moved files in the following order:
    - Uploaded movie to library A
    - Scanned library 
    - Moved movies from library A to B

    After this, the media library scan never completed since.
    When I start it manually (or it is being started automatically), it runs and finds new files. At 96% it just gets stuck forever and doesn't move.
    This is a huge problem because I cannot abort the scan - I have to restart the pod, scan and watch my content. Whenever I want to watch new files, I need to restart again.

    I use ZFS and have fast read & write - so huge data amounts shouldn't be a problem. I run using TrueNas and the media files are owned by the correct user. This setup has worked flawlessly before.

    I asked on Matrix, but didn't receive any further troubleshooting steps that I could take.

    I did look through the log and saw this. Not sure how this is related.

    Emby.Server.Implementations.ScheduledTasks.TaskManager: Error
    System.InvalidOperationException: Cannot update refresh progress of item 'Folder' (9474e2b32824af15d414264da77cee3a) because a refresh for this item is not running



    Running Jellyfin 10.8.13. Plugins: Ani-Sync, AniDB (disabled), AudioDB, Cover Art (disabled), Jellyscrub, Musicbrainz, OMDb, SkinManager, Studio Image, TMDb, TMDb trailers, Webhooks.
    Go to solution
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #2
    2024-01-16, 03:34 PM
    may or may not be helpful but if i were in your situation i would probably just delete the library entry and rebuild to save the hassle

    a complete log posted to a paste site might aid people trying to help you though
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #3
    2024-01-16, 09:38 PM
    (2024-01-16, 03:34 PM)tmsrxzar Wrote: may or may not be helpful but if i were in your situation i would probably just delete the library entry and rebuild to save the hassle

    a complete log posted to a paste site might aid people trying to help you though

    Hi, thanks for the reply. I deleted the libraries (only in Jellyfin, not on the filesystem) and waited for it to fully update.
    As soon as all libraries were gone, I re-added my main library again.
    It started scanning (quite fast) but then got stuck again at 96%.
    Here's the log of my Jellyfin instance: https://file.io/VDLUnJmDPxu7
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-01-16, 09:57 PM
    The log was deleted at that link.
    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]
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #5
    2024-01-16, 10:04 PM (This post was last modified: 2024-01-16, 10:05 PM by manicraft1001. Edited 1 time in total.)
    My bad, not sure why / how it was deleted. Uploaded same file to OneDrive: https://1drv.ms/u/s!ApaEvpbrsNFbnguwempf...S?e=bvx5ku .
    I had to upload externally, because it exceeds the limit of the forum.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-01-16, 10:34 PM
    How big is your library and do you have chapter image extraction enabled? It looks like it is just taking a while. No obvious reason why from the log. I just see the ffprobe messages on and on.
    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]
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #7
    2024-01-17, 08:08 AM
    Since my first reply here (9 hours), it hasn't moved from 96%.
    Main library is about 11K files, 2.7TB.
    Chapter image extraction is disabled on the new library.
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #8
    2024-01-17, 12:48 PM
    Just had to make a full system restart due to OS update. Still the same issue where it gets stuck at 96%
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #9
    2024-01-17, 02:38 PM
    From what I could see in the logs, it looks like a permissions issue.

    I looked through it and saw things like Jellyscrub failing to make the BIF files, the screen grabber failing to get access to a library, and so on.

    Are you running Jellyfin with Truenas Scale? You stated that you moved video files around and rescanned. Make sure that the user you set Jellyfin to run as has access to those locations and files.
    Make sure that the Jellyfin user also has access to all folder/datasets that lead into the video files themselves.

    You can also choose to set Jellyfin to run as root (making the user and group both set to 0) to make it have access to all folders on the server.

    Also as a note since you have Jellyscrub installed, keep in mind that the process of creating these BIF files will be slow depending on your CPU and how you configured Jellyscrub (HWA enabled or not for it).
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #10
    2024-01-17, 05:47 PM (This post was last modified: 2024-01-17, 05:49 PM by manicraft1001.)
    (2024-01-17, 02:38 PM)Efficient_Good_5784 Wrote: From what I could see in the logs, it looks like a permissions issue.

    I looked through it and saw things like Jellyscrub failing to make the BIF files, the screen grabber failing to get access to a library, and so on.

    Are you running Jellyfin with Truenas Scale? You stated that you moved video files around and rescanned. Make sure that the user you set Jellyfin to run as has access to those locations and files.
    Make sure that the Jellyfin user also has access to all folder/datasets that lead into the video files themselves.

    You can also choose to set Jellyfin to run as root (making the user and group both set to 0) to make it have access to all folders on the server.

    Also as a note since you have Jellyscrub installed, keep in mind that the process of creating these BIF files will be slow depending on your CPU and how you configured Jellyscrub (HWA enabled or not for it).

    Thanks for the reply. Container is run using user "apps" (ID 568 for both user and group).
    Owner of the files on the file system is 568. To verify that permissions on the media files shouldn't be a problem, I set the permissions to 777 recursively.
    Still the same result with that.

       
       

    To add to my previous message, I use hardware acceleration for playback and Jellyscrub.
    I use my integrated graphics for that, because that is fast enough for me and I don't want the additional power consumption.
    Additionally, I double checked that read-only is deactivated for the host path in TrueNAS.
    Pages (4): 1 2 3 4 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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