Jellyfin and Mounted Drive Permissions issue
from velummortis@lemmy.dbzer0.com to jellyfin@lemmy.ml on 27 Dec 06:27
https://lemmy.dbzer0.com/post/60402826
from velummortis@lemmy.dbzer0.com to jellyfin@lemmy.ml on 27 Dec 06:27
https://lemmy.dbzer0.com/post/60402826
Hi again, Running 10.11.5 on Debian Trixie kernel 6.12.57 and I can’t get Jellyfin to see my connected drive. Here’s the permissions for my drive:
velummortis@velummortis-20bts1rt02:~$ ls -l /media/velummortis/d64ea996-98aa-4eef-8a93-0a2ba2246f0f total 240 drwxrwxr-x 2 velummortis video 4096 Sep 28 02:52 1-100 drwxrwxr-x 2 velummortis video 4096 Sep 27 20:29 'Bi Chun Mu - Dance in the Sky' drwxrwxr-x 2 velummortis video 4096 Sep 27 16:46 Chor.Lau.Heung.1979.Complete.720p.WEB-DL.H.264.AAC-KMX drwxrwxr-x 2 velummortis video 4096 Sep 27 20:17 'Dance of Breaking Sky (1980)' drwxrwxr-x 2 velummortis video 4096 Sep 28 02:20 Dance.Of.Breaking.Sky.S01.1990.1080p.YT.WEB-DL.AAC.x264-RSG drwxrwxr-x 2 velummortis video 4096 Sep 28 04:28 Deep.Rooted.Tree.1983.S01.SD.WEB-DL.AAC.AVC drwxrwxr-x 2 velummortis video 16384 Sep 27 18:59 Empress.Myeongseong.S01.2001.1080p.YT.WEB-DL.AAC.x264-RSG drwxrwxr-x 2 velummortis video 4096 Sep 27 13:32 Hong.Guk.Young.2001.S01.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG drwxrwxr-x 2 velummortis video 4096 Sep 27 21:55 Jang.Hee.Bin.S01.1080p.WEB-DL.AAC2.0.H.264-Snowy drwxrwxr-x 2 velummortis video 12288 Sep 27 16:21 'King Gwanggaeto the Great' drwxrwxr-x 2 velummortis video 4096 Sep 29 01:00 Kings.woman.S01.NF.WEB-DL.1080p.H.264.AAC2.0 drwxrwxr-x 2 velummortis video 20480 Sep 28 01:25 Ladies.of.the.Palace.S01.1080p.WEB-DL.H264.AAC-AppleTor drwxrwxr-x 2 velummortis video 16384 Sep 27 13:17 lost+found drwxrwxr-x 2 velummortis video 4096 Sep 28 00:20 Namhan.Mountain.Castle.1986.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG drwxrwxr-x 2 velummortis video 12288 Sep 27 21:04 Queen.In.Hyeon.1988.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG drwxrwxr-x 2 velummortis video 36864 Sep 29 15:10 Story.of.a.Mermaid.S01.1080p.AMZN.WEB-DL.DDP2.0.H.264-MrHulk drwxrwxr-x 2 velummortis video 20480 Sep 28 03:10 'Tears of the Dragon - 1996 - 159 - 480p' drwxrwxr-x 2 velummortis video 4096 Sep 28 00:04 The.Imjin.War.1985.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG drwxrwxr-x 2 velummortis video 4096 Sep 28 01:43 The.King.of.Chudong.Palace.1983.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG drwxrwxr-x 2 velummortis video 12288 Sep 28 06:07 The.Memoirs.of.Lady.Hyegyeong.1988.S01.1080p.WAVVE.WEB-DL.AAC2.0.H.264-unco@AvistaZ drwxrwxr-x 2 velummortis video 4096 Sep 27 17:03 The.Royal.Road.S01.1991.480p.YT.WEB-DL.AAC.x264-RSG drwxrwxr-x 2 velummortis video 4096 Sep 27 17:17 The.Tale.of.Lady.Ok.2024 drwxrwxr-x 2 velummortis video 4096 Sep 28 02:16 The.Young.Warriors.S01.1080p.WEB-DL.AAC2.0.x264-Cezane drwxrwxr-x 2 velummortis video 4096 Sep 28 01:33 'Time of Dynasty (1990) [Complete] 1080p WEB-DL AVC AAC' drwxrwxr-x 2 velummortis video 4096 Sep 27 19:56 Tragic.Grass.1992.S01.1080i.SBS.WEB-DL.AAC.H.264-RSG drwxrwxr-x 3 velummortis video 4096 Dec 27 01:13 'Watched Series' drwxrwxr-x 2 velummortis video 4096 Sep 28 03:30 West.Palace.1995.S01.720p.WAVVE.WEB-DL.AAC.H.264-RSG drwxrwxr-x 2 velummortis video 4096 Sep 28 02:06 'Wind and Cloud (1982)' drwxrwxr-x 2 velummortis video 4096 Sep 28 00:12 Women.of.Legend.Hwang.Jin.Yi.1982.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG drwxrwxr-x 2 velummortis video 4096 Sep 27 22:28 Women.of.Legend.Jang.Hee.Bin.1981.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG drwxrwxr-x 2 velummortis video 4096 Sep 28 01:33 Women.of.Legend.Silver.Knife.1982.720p.iMBC.WEB-DL.AAC2.0.H.264-RSG drwxrwxr-x 2 velummortis video 4096 Sep 27 19:46 'Wu Ze Tian (1995) [Complete] 486p WEBRip AVC AAC'
video is the name of the group my username and jellyfin share drive access on. I have the group on 7 yet it won’t see my drive. Is there something I missed?
threaded - newest
How is Jellyfin setup? In Docker?
No, straight from apt
I had a hard time getting jellyfin to work on debian as well. I cant find the thread that helped me but I remember having to
sudo setfacl -R -m u:jellyfin:rx /path/to/libraryI looked this up from my bash history.I think I also had to chmod 0777 the media library as well.
I did find a link that shows a similar solution to the above from 2024. He does say that this solution is not optimal.
https://forum.jellyfin.org/t-path-not-found
Tried the first command, didn’t work - I’ll see what the forum post does
I hope it works for you! It is not ideal, the permissions being 0777 especially if you want to open the server to the net. Could be problematic!
I don’t know why its so hard to get working on debian.
Not even using 0777 worked, jellyfin still couldn’t see
Sorry that didn’t help. I know I fiddled around with it for a good two full days before I got it working.
Maybe it’s time to file a bug report on their git repo.
Also using Debian + Jellyfin normal install with basic permissions (in the future maybe I’ll try this with ACL permissions).
Starting out I tinkered with creating a specific user group for jellyfin but it never quite worked right… in the end I reset the jellyfin user/service back to defaults and set permissions on my media folders to 0775 so that the jellyfin service can read/execute (no write) as the world permission bit. Also made sure to set permissions recursively (chmod -R). For me it’s fine though keep in mind setting 5 for world does mean all users with access to your system can read and traverse through those media folders.
What are the permissions on the directory itself, not the files? Is the directory owned by group ‘video’?
Here’s the permissions for the directory and parents - strangely enough Jellyfin can still see
/mediaand/media/velummortisdespite not owning themAre the files within the folders the media folder also with permissions 775 (rwxrwxr-x)? The actual .mkv .mp4 or whatever files themselves should be the same permissions as the parent folder(s). Could be worth doing a chmod -R 0775 d64ea996-98aa-4eef-8a93-0a2ba2246f0f if you’re not sure.
You probably already tried this but just in case: In the Jellyfin admin pages, in Libraries, try removing that media library, then re-add the media library and when adding Folders paste in your entire media folder path/name: /media/velummortis/d64ea996-98aa-4eef-8a93-0a2ba2246f0f
The reason I mention that is that I did a quick test here with a bad permissioned folder, added the media folder, Jellyfin couldn’t see anything in it obviously. But even after I fixed the folder permissions Jellyfin still wasn’t seeing the media - I had to remove the library entirely and then re-add it to force Jellyfin to attempt to scan the folder with new 775 world permissions.
I haven’t been able to add the library in question yet, but I did do the recursive chmod.
Example of a filelist:
Feels like this should have already been resolved with standard Linux permissions, any user on your system should be able to read/traverse that folder and files with the r-x permission on world.
From your earlier comment one of the parent directories is listing with “+” permission so it sounds like you are using extra permissions outside of the standard Linux, probably ACL permissions. I haven’t worked with ACL permissions on Linux enough to offer much advice but what you may want to do is run something like getfacl d64ea996-98aa-4eef-8a93-0a2ba2246f0f as well as run it on one of your media files, that might give you some clues on what the ACL permissions look like.
Also - I’m assuming you already did this - but if you didn’t already make sure your jellyfin service is actually launching with the expected user and user group. Based on your setup you may want to be sure the “jellyfin” Linux user is added to the “video” user group, and then make sure that’s what is being referenced in jellyfin.service.conf (by default is usually in /etc/systemd/system/jellyfin.service.d). If you edit that file be sure to stop the jellyfin service first and then restart it after editing e.g. “systemctl stop jellyfin” and “systemctl start jellyfin”.
Only other thing I can think of is that maybe there’s something wrong with the way your system is mounting the drive and folder. Since you seem to be using the autogenerated UUID for the mounted folder name (d64ea996-98aa-4eef-8a93-0a2ba2246f0f) maybe it’s better to edit fstab yourself and set up your mount as something more permanent with a normal name, and also double-check the permissions everything is mounting as.
Yes, it can see them because their parent directories are readable, but it can’t see anything inside /media/velummortis because the Other permissions are empty. If you run
chmod 755 /media/velummortisthen Jellyfin should be able to see those filesThis was it! Thank you!
What worked for me was to mount with fstab by UUID and set the group ID to your video group.
UUID="your uuid” /mnt/external exfat defaults,uid=1000,gid="your group id”,umask=002,nofail 0 0
Four spaces before the line you want to codify :)
e.g.
vs non-formatted
UUID=“your uuid” /mnt/external exfat defaults,uid=1000,gid=“your group id”,umask=002,nofail 0 0
Okay update on this: I made a mistake in the fstab that made all the folders display at
/media/velummortis, and Jellyfin saw! But when I fixed fstab to go to the right path, it couldn’t see it all of a sudden…