• 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%

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #11
    2024-01-17, 07:18 PM
    Let's backup a bit. Can you describe your setup?

    TrueNAS Scale? On what hardware? Is there any other virtualization? Like TrueNAS is running as a VM in Proxmox?

    Jellyfin is running in a container on TrueNAS scale?

    Is the media storage local to TrueNAS?
    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]
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #12
    2024-01-17, 08:18 PM
    (2024-01-17, 05:47 PM)manicraft1001 Wrote: 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.
    Looking at the screenshot, I'm assuming those are the media directories for Jellyfin.
    Can you explain what the "u308946" group is and why is it paired with "apps" for the owner of each directory?

    Also, how are you setting permissions to 777? With Truenas, you need to switch to root in the shell to apply settings like that. The default admin account is missing some privileges in the name of security.

    Finally, as I stated before, make sure that all paths leading to the media libraries have at the very least read permissions. It doesn't matter if the directory you want Jellyfin to use is owned by Jellyfin if the Jellyfin user can't traverse through each directory leading up to it.
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #13
    2024-01-17, 08:50 PM
    TrueNAS is running directly bare metal. No virtualization. CPU is I3 12100, 64GB memory, xfs with 3 data disks, 1 cache and one log.

    Media storage is local. The user group that you see on the files is from the user who downloaded the files from my external backup server when I switched to TrueNas.

    admin has no permission to set file permissions, but I use sudo to set the permissions.

    To ensure that Jellyfin has permissions, I logged in to the container shell, navigated to my library directory and created a file with touch. Using rm, I can also delete the file.

    I'm glad for your help so far. Let's hope that we can figure it out together, as I really don't see what could be wrong. I want to reiterate that this setup has worked previously fine with the same permission setup. It's weird that it broke. I assume that something happened implicitly and broke it - although I don't remember any specific changes that could have done that.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #14
    2024-01-17, 08:52 PM
    Is the jellyfin database located on a ZFS volume?
    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
    #15
    2024-01-17, 09:24 PM
    Yes, both media and configuration is on the same volume.
    Since there were Jellyscrub errors in the log, I deactivated the plugin and restarted just to make sure. Still running into the same freeze at 96%.
    manicraft1001
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #16
    2024-01-17, 09:40 PM
    Another update: I and my friend looked at the logs. Although I don't know the specifics of the scheduler in Jellyfin, I suspect that I have a broken database.
    Jellyfin seems to be trying to access non existing files and directories. Remember: I moved them on the disk. If Jellyfin didn't pick this up correctly or only partially, this would explain the behaviour that we see?

    There's also a message about the Scheduler - seems like it cannot finish something. Instead of allocating your time to fix these conflicts manually, I'd suggest to delete the deployment, delete all configuration and start from scratch. Sure, I'd love to fix the problem, but I hate wasting time if it's just easier with a different way.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #17
    2024-01-17, 09:55 PM
    Do you have any collections that contained movies that you moved?
    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
    #18
    2024-01-17, 10:02 PM (This post was last modified: 2024-01-17, 10:03 PM by manicraft1001. Edited 1 time in total.)
    What do you mean with collections? Yes, I did move movies. Not all of them. I grouped them into an Anime Movie group and "normal" Movie group.

    Are you referring to a list of files (eg. to move them back?)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #19
    2024-01-17, 10:33 PM
    Collections are like playlists used to group movies together. Like a "Harry Potter" collection or "Star Wars" collection. Collections use the absolute file path so if you had a collection that looked at the old path it could cause issues with scan completion. But I might be mis-remembering something about how that behaves.

    Is the ZFS volume your database is on an SSD?
    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
    #20
    2024-01-18, 06:12 AM (This post was last modified: 2024-01-18, 06:13 AM by manicraft1001. Edited 1 time in total.)
    I did have music playlist. No collections. The Vdev does not have SSDs in the data pool, but two SSD as cache and log.
    Doubt that this should matter though for Jellyfin. Speeds should be sufficient.

    I'll try out two things evening (19:00 CEST+1) and see what happens:
    - Move back files to their previous location and recheck if media scan works again
    - Delete deployment and redeploy in TrueNAS
    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