• 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 SOLVED: Library scan not loading all available media

     
    • 0 Vote(s) - 0 Average

    SOLVED: Library scan not loading all available media

    Library scans finding only about 1/5 of all media files after HDD change
    schotlekoff
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Bulgaria
    #1
    2023-12-24, 07:28 AM
    Hello,

    I was running out of space, so I decided to upgrade my storage. I changed my Seagate 8 TB external drive for Buffalo 2-bay enclosure with 2x6 TB HDDs installed. The enclosure is set to separate drives: one for movies and one for TV shows. After the upgrade, I deleted all old entries from the Jellyfin libraries, set the new source folders, and ran a fresh scan. Jellyfin found only about 1/5 of my media files. I ran a couple of more scans: same output, just some of the titles are different. I tried playing the files with VLC directly from the drive and there are no issues at all (both from a PC and a smart TV). On top of that, some of the movies are grouped in collections that they are not part of.

    p.s. The server is running on Ubuntu Server 22.04.
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2023-12-24, 07:03 PM
    What are the mount parameters for these external drives? And does the jellyfin user have sufficient permissions?
    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]
    schotlekoff
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Bulgaria
    #3
    2023-12-25, 09:51 PM
    Drives are formated in exfat, I set up automount in fstab as:
    # HDD"X"
    UUID="XXXX-XXXX" /media/"XXXX" exfat defaults,auto,umask=0000,uid=100"X",gid=100"X",rw 0 0

    Where uid and gid "X" are jellyfin user/group IDs.
    Folder permissions for each drive are set to all read/write/execute (a+rwx) using:

    sudo chmod -R 777 /media

    Movies are organized in A-Z subdirectories and TV series in title/season.
    There are cases that only 4 out of 20 episodes in a season(folder) are recognized, so I think this should not be permissions issue?!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2023-12-25, 10:55 PM (This post was last modified: 2023-12-25, 10:55 PM by TheDreadPirate.)
    Remove all the extra options for that mount. Should only need "defaults". Once you remount that volume, or reboot, make sure Jellyfin has permissions to the folder.
    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]
    schotlekoff
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Bulgaria
    #5
    2023-12-26, 06:42 AM
    I will try that. But this configuration is tested and proved working. My old external drive was configured the same way. As far as I remember, without the extra options I was getting read/write errors, because exfat do not support permissions like unix file systems.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2023-12-26, 11:25 PM
    Ooohhh. News to me (only used NTFS or EXT4). Then how does exfat do permissions? Because this sounds like a permissions issue.
    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]
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #7
    2023-12-26, 11:35 PM
    (2023-12-26, 11:25 PM)TheDreadPirate Wrote: Ooohhh.  News to me (only used NTFS or EXT4).  Then how does exfat do permissions?  Because this sounds like a permissions issue.

    exfat is basically 777 because it does not store permissions metadata, but you can force uid,gid from the mounting options https://manpages.ubuntu.com/manpages/tru...use.8.html
    schotlekoff
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Bulgaria
    #8
    2023-12-27, 02:29 PM
    (2023-12-26, 11:25 PM)TheDreadPirate Wrote: Ooohhh.  News to me (only used NTFS or EXT4).  Then how does exfat do permissions?  Because this sounds like a permissions issue.

    With mount options umask=0000 to force a+rwx permissions (777) and uid/gid to set ownership of files/directories to the jellyfin user. 

    I still don't know what cause the issue, but I found the solution - reinstalling jellyfin after previously completely removing everything linked to it. Brute-force solution, but it get the job done!
    « 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