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?

  • brawndo@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    16 days ago

    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

    • Brickfrog@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      16 days ago

      Four spaces before the line you want to codify :)

      e.g.

      UUID=“your uuid” /mnt/external exfat defaults,uid=1000,gid=“your group id”,umask=002,nofail 0 0
      

      vs non-formatted

      UUID=“your uuid” /mnt/external exfat defaults,uid=1000,gid=“your group id”,umask=002,nofail 0 0

  • Brickfrog@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    16 days ago

    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.

  • Synestine@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    16 days ago

    What are the permissions on the directory itself, not the files? Is the directory owned by group ‘video’?

    • velummortis@velummortis-20bts1rt02:~$ ls -ld /media /media/velummortis /media/velummortis/d64ea996-98aa-4eef-8a93-0a2ba2246f0f
      drwxr-xr-x   3 root        root  4096 Oct 17 16:27 /media
      drwxr-x---+  3 root        root  4096 Dec 25 08:30 /media/velummortis
      drwxrwxr-x  34 velummortis video 4096 Dec 27 01:08 /media/velummortis/d64ea996-98aa-4eef-8a93-0a2ba2246f0f
      

      Here’s the permissions for the directory and parents - strangely enough Jellyfin can still see /media and /media/velummortis despite not owning them

      • Synestine@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        3
        ·
        15 days ago

        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/velummortis then Jellyfin should be able to see those files

      • Brickfrog@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        16 days ago

        Are 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:

          velummortis@velummortis-20bts1rt02:~$ ls -l /media/velummortis/d64ea996-98aa-4eef-8a93-0a2ba2246f0f/1-100
          total 94369612
          -rwxrwxr-x 1 velummortis video  976718800 Aug  7  2020 Jang.Hee.Bin.E001.mp4
          -rwxrwxr-x 1 velummortis video  926402249 Aug  7  2020 Jang.Hee.Bin.E002.mp4
          -rwxrwxr-x 1 velummortis video  970775362 Aug  7  2020 Jang.Hee.Bin.E003.mp4
          -rwxrwxr-x 1 velummortis video  963500405 Aug  7  2020 Jang.Hee.Bin.E004.mp4
          -rwxrwxr-x 1 velummortis video  975813578 Aug  7  2020 Jang.Hee.Bin.E005.mp4
          
          • Brickfrog@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            15 days ago

            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.

  • Maiq@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    17 days ago

    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/library I 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