• 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): « Previous 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
    #21
    2024-01-18, 06:27 PM
    Ok, reporting back:
    - Moving the files back did not help
    - I saw errors from ffmpeg with one Anime. I deleted the entire directory to make sure it doesn't fail due to some corrupt media
    - I deleted the Jellyfin deployment
    - I chown'ed all files to 568 and chmod'ed to 777

    Still getting stuck at 96% (after 40 minutes of scanning). I'm baffled. I'll reboot in debug mode and post another update soon.
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #22
    2024-01-18, 06:37 PM (This post was last modified: 2024-01-18, 06:37 PM by manicraft1001. Edited 1 time in total.)
    This is a debug log where I
    1. Changed the default log level to "Debug"
    2. Started Jellyfin
    3. Hit "Scan"

    https://1drv.ms/u/s!ApaEvpbrsNFbng7heqOK...0?e=go7iqS

    This is a completely fresh installation.
    All old directories were deleted.
    Media library is still the same.
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,169
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #23
    2024-01-18, 06:45 PM
    Which version of Truenas are you running? Core or Scale?

    If Scale, how are you installing Jellyfin?
    IX-Systems? TrueCharts? Or pulling Jellyfin directly from Docker hub?

    Why not use the built-in GUI to add permission for your datasets? Make sure to recursively change the permissions.
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #24
    2024-01-18, 06:52 PM
    As I stated previously, I run TrueNAS-SCALE-23.10.1.1.
    I use the TrueCharts deplyoment.
    Except the storage paths, no additional configuration.
    I'll try to set permissions via GUI recursively in a moment...
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,169
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #25
    2024-01-18, 07:25 PM (This post was last modified: 2024-01-18, 07:33 PM by Efficient_Good_5784. Edited 1 time in total.)
    Have you tried removing the Jellyfin user (or changing it to be run as root) to rule out a permissions issue?

    Try changing the user & group to both be 0 for root.

    I think Truecharts forces you to select a user/group, but if you pull the Jellyfin image straight from Docker hub using Scale's option to pull Docker images, it won't force you to select a user & group. If you don't specify a user/group here, it will also run Jellyfin as root.
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #26
    2024-01-18, 10:05 PM
    Can confirm user root doesn't change anything. Will do further testing tomorrow
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #27
    2024-01-18, 10:12 PM
    after all that there's few options left ...

    maybe piece it together a little at a time; move the last few files it scans in the log out of the library path?
    seems possible it's trying to scan a broken file

    less likely (but not completely impossible); a weird recursion issue where there's a symlink or mount causing it to loop the scan
    (yes i know this sounds ridiculous but i cannot completely rule it out without being at the pc)
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #28
    2024-01-18, 10:28 PM
    I just had a breakthrough.
    I didn't see your comment (don't receive any emails from this forum for some reason) though.
    I started moving the newest files from the Anime library into a temporary directory outside Jellyfin. Suddenly, the scan completed.
    I will try to narrow it down tomorrow by moving chunk by chunk back.
    When I finally figure out, which file it was, can I submit a bug report?
    It's totally expected to get errors with corrupted files, but there should be some indication, error or task completion, even if there is a problem with one specific file.
    In my opinion, this could be improved on.

    I'd like to thank everyone who helped investigating on this thread. Appreciate your time and help.

    I'll mark this as the solution but may post further updates when I finally find the culprit.

    Cheers 👋
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,169
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #29
    2024-01-18, 10:28 PM
    (2024-01-18, 10:12 PM)tmsrxzar Wrote: maybe piece it together a little at a time; move the last few files it scans in the log out of the library path?
    I second this, but in reverse.

    Make a new dataset/folder location and copy one or two shows/movies into it. Then make a new blank config location for Jellyfin.
    Set up Jellyfin to use the new blank config folder and the new small media location only.
    See if this new installation works. Basically, you'll be seeing if a brand-new Jellyfin install will scan to 100%.

    If this does work, then it's a process of elimination of which dataset/folder or file is causing the issue.

    I was also thinking it might be a plugin you have installed. The new Jellyfin install shouldn't have any plugin installed, but you could add them back one-by-one to see if this is also the issue.
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,169
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #30
    2024-01-18, 10:41 PM
    (2024-01-18, 10:28 PM)manicraft1001 Wrote: It's totally expected to get errors with corrupted files, but there should be some indication, error or task completion, even if there is a problem with one specific file.
    In my opinion, this could be improved on.
    If you open the logs for Jellyfin, you can actually see what's happening in real time.

    If you open them through Jellyfin's dashboard, just reload (F5) the page constantly to see the real-time updates.
    On Truenas Scale's GUI, the log view window should be updating in real-time for a bit.

    On the first set of logs you posted, I do remember seeing a mention of some path to an anime library. You edited out most of the path to a bunch of 'X' characters, but that could be the folder/file that's giving you issues.
    Pages (4): « Previous 1 2 3 4 Next »

    « 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