Jellyfin Forum
SOLVED: Library scan not loading all available media - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: Library scan not loading all available media (/t-solved-library-scan-not-loading-all-available-media)



Library scan not loading all available media - schotlekoff - 2023-12-24

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.


RE: Library scan not loading all available media - TheDreadPirate - 2023-12-24

What are the mount parameters for these external drives? And does the jellyfin user have sufficient permissions?


RE: Library scan not loading all available media - schotlekoff - 2023-12-25

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?!


RE: Library scan not loading all available media - TheDreadPirate - 2023-12-25

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.


RE: Library scan not loading all available media - schotlekoff - 2023-12-26

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.


RE: Library scan not loading all available media - TheDreadPirate - 2023-12-26

Ooohhh. News to me (only used NTFS or EXT4). Then how does exfat do permissions? Because this sounds like a permissions issue.


RE: Library scan not loading all available media - tmsrxzar - 2023-12-26

(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/trusty/man8/mount.exfat-fuse.8.html


RE: Library scan not loading all available media - schotlekoff - 2023-12-27

(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!