• 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: jellyfin does not have permission to access the drive my movies are stored on?

    Pages (4): 1 2 3 4 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: jellyfin does not have permission to access the drive my movies are stored on?

    finalgirlfall
    Offline

    Junior Member

    Posts: 19
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    Country:United States
    #1
    2025-04-07, 07:59 PM (This post was last modified: 2025-04-07, 11:18 PM by finalgirlfall. Edited 1 time in total.)
    okay, so, um:

    my movie library is stored on /media/violet/pi1.0/, and my tv library is stored on /media/violet/pi2.0/. jellyfin is able to access my tv library just fine. the folder Movies is routed to is officially accurate--jellyfin just doesn't have access to the files! i've tried just about everything i can think of to give it access to the files, but it still doesn't, have access... i will list off what i've tried so far below.
    • i've tried running ls -l file.ext on various files in my movie drive, but i don't think i quite understand the output to be honest! i do know that i do not see "jellyfin" in most of the assorted outputs, either as a user or as a group, which is not ideal...
    • um, tried to use chmod &/ chown to retroactively(?) fix the permissions issues, but don't think either one really worked...
    • (specifically, chmod -R 750 /media/violet/pi1.0/ and chown -R violet:jellyfin /media/violet/pi1.0/)

    it is perhaps worth noting that the metadata for the Movies library is stored in a weird (and possibly invalid?) location as of ~february 21, 2025--i am not sure what caused this. according to jellyfin's Metadata Manager tab, Movies metadata is stored in /var/lib/jellyfin/metadataMovies, which is possibly related to this issue of jellyfin not being able to (see/find) my movie files... (for comparison, Shows metadata has been stored in /var/lib/jellyfin/root/default/Shows since february 21, 2025.)

    assorted info:
    • jellyfin version: 10.10.6
    • jellyfin install method: Debian repository
    • i am running jellyfin on a raspberry pi 3b+ that is running raspberry pi os 11 'bullseye'

    please let me know if you need more info!! i will do my best to respond quickly...!!
    Go to solution
    finalgirlfall
    Offline

    Junior Member

    Posts: 19
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    Country:United States
    #2
    2025-04-07, 11:19 PM
    i didn't realize the code blocks would display like that, agh! edited the post to remove them... um, so that's my problem. yeah.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2025-04-08, 01:31 PM
    Is this a network share or a locally attached hard drive. If a local hard drive, did you manually mount the drive with /etc/fstab or are they auto mounted? Are there ACLs on the directories?

    Code:
    ls -ld  /media/violet/pi1.0  /media/violet/pi2.0
    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]
    finalgirlfall
    Offline

    Junior Member

    Posts: 19
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    Country:United States
    #4
    2025-04-16, 03:08 AM
    (2025-04-08, 01:31 PM)TheDreadPirate Wrote: Is this a network share or a locally attached hard drive.  If a local hard drive, did you manually mount the drive with /etc/fstab or are they auto mounted?  Are there ACLs on the directories?

    Code:
    ls -ld  /media/violet/pi1.0  /media/violet/pi2.0

    hi, so sorry for the delay in reply. i thought i had email notifications turned on but i guess i don't... gotta figure that out.

    both of the drives are locally attached and manually mounted with /etc/fstab. i am, honestly kind of still new to linux? but i know i have done Some things to the drives involving setfacl... (< i am trying to ask for clarification. sorry ^^Winking-face

    output of ls -ld /media/violet/pi1.0 /media/violet/pi2.0 follows below:

    Code:
    drwxrwxrwx+ 1 jellyfin media 6300 Apr 14 06:34 /media/violet/pi1.0//
    drwxrwxr-x+ 1 plex    media  128 Apr  9 18:18 /media/violet/pi2.0//
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2025-04-16, 12:25 PM
    Do you know what file system these drives use? If they are ext4, or some other native Linux file system, we can just remove the ACL, which is indicated with the + at the end of the permissions.

    If they are NTFS formatted drives we would need to modify the ACL.

    Code:
    cat /proc/mounts | grep violet

    If they are ext4 formatted drives, the following command would remove the ACL and grant Jellyfin permission to read the drives.

    Code:
    sudo setfacl -b /media/violet/pi1.0/
    sudo setfacl -b /media/violet/pi2.0/

    If they are NTFS formatted drives, this command would change the ACL to allow Jellyfin.

    Code:
    sudo setfacl -m user:jellyfin:rwx,group:media:rwx /media/violet/pi1.0/
    sudo setfacl -m user:jellyfin:rwx,group:media:rwx /media/violet/pi2.0/
    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]
    finalgirlfall
    Offline

    Junior Member

    Posts: 19
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    Country:United States
    #6
    2025-04-17, 01:11 PM
    (2025-04-16, 12:25 PM)TheDreadPirate Wrote: Do you know what file system these drives use?  If they are ext4, or some other native Linux file system, we can just remove the ACL, which is indicated with the +  at the end of the permissions.

    If they are NTFS formatted drives we would need to modify the ACL.

    Code:
    cat /proc/mounts | grep violet

    If they are ext4 formatted drives, the following command would remove the ACL and grant Jellyfin permission to read the drives.

    Code:
    sudo setfacl -b /media/violet/pi1.0/
    sudo setfacl -b /media/violet/pi2.0/

    If they are NTFS formatted drives, this command would change the ACL to allow Jellyfin.

    Code:
    sudo setfacl -m user:jellyfin:rwx,group:media:rwx /media/violet/pi1.0/
    sudo setfacl -m user:jellyfin:rwx,group:media:rwx /media/violet/pi2.0/

    both drives are formatted as BTRFS. i ran the command you mentioned for ext4 and other native Linux file systems. my Movies library is...still empty. could the invalid filepath for the Movies metadata i mentioned in my original post have something to do with this? (and how would i edit where jellyfin stores the metadata for the Movies library?)

    for reference, i've attached a screenshot of the "Edit Metadata" popup for my Movies library.


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2025-04-17, 01:45 PM
    USUALLY, only the top level directory for the drive has an ACL. Can you check if the directories within pi1 and 2 also have ACL?
    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]
    finalgirlfall
    Offline

    Junior Member

    Posts: 19
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    Country:United States
    #8
    2025-04-20, 03:10 AM
    (2025-04-17, 01:45 PM)TheDreadPirate Wrote: USUALLY, only the top level directory for the drive has an ACL.  Can you check if the directories within pi1 and 2 also have ACL?


    ah, what command would i run to check that? ^^;
    KodiUser1138
    Offline

    Member

    Posts: 279
    Threads: 33
    Joined: 2023 Jun
    Reputation: 0
    Country:Canada
    #9
    2025-04-20, 06:14 AM
    I can't offer advice but I hope you get it sorted out. Just went through something similar on Windows and @TheDreadPirate is a great help!
    JF Wish List:
    IMDb Top250 metadata
    Collection content rules: Library-Title/Sorttitle/Tag/Director/Filename/Contains
    Collection organized by Library
    Collections scanned to editable XML
    Media info show added Collection
    Soundtrack auto link to movie by title/sort/Manual
    Read Music Album Sort
    1
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2025-04-20, 10:23 PM
    (2025-04-20, 03:10 AM)finalgirlfall Wrote:
    (2025-04-17, 01:45 PM)TheDreadPirate Wrote: USUALLY, only the top level directory for the drive has an ACL.  Can you check if the directories within pi1 and 2 also have ACL?


    ah, what command would i run to check that? ^^;

    Code:
    ls -l /media/violet/pi1.0/*
    ls -l /media/violet/pi2.0/*
    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]
    Pages (4): 1 2 3 4 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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