Jellyfin Forum
SOLVED: Libraries - 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: Libraries (/t-solved-libraries)



Libraries - soodoenim - 2024-05-01

I am on Jellyfin Version 10.8.13 running on Ubuntu 22.04.4 and am trying to add the directories contained within an external hard drive to the libraries on Jellyfin. I found this thread on Reddit which seems to describe a solution to the problem - https://www.reddit.com/r/jellyfin/comments/nzcv6f/grant_the_service_user_at_least_read_access/ - however, when I type in the path to the external drive (as described in the Reddit thread) I get this readout:

$ sudo setfacl -m user:jellyfin:rxw /media/littlebox/Big Box 2
setfacl: /media/littlebox/Big: No such file or directory
setfacl: Box: No such file or directory
setfacl: 2: No such file or directory

Regardless of whether the solution described in this Reddit thread is the solution for me, the problem I am attempting to solve is that even though I have set the drive permissions and local network share options in the same way as the other external drive that's already supplying content to Jellyfin, I cannot add the directories contained on this new drive to the content libraries on Jellyfin.


RE: Libraries - TheDreadPirate - 2024-05-01

You have to put the path in quotes or escape the spaces in the folder name.

sudo setfacl -m user:jellyfin:rxw "/media/littlebox/Big Box 2"

or

sudo setfacl -m user:jellyfin:rxw /media/littlebox/Big\ Box\ 2


RE: Libraries - soodoenim - 2024-05-01

(2024-05-01, 03:02 PM)TheDreadPirate Wrote: You have to put the path in quotes or escape the spaces in the folder name.

sudo setfacl -m user:jellyfin:rxw "/media/littlebox/Big Box 2"

or

sudo setfacl -m user:jellyfin:rxw /media/littlebox/Big\ Box\ 2

Thanks for this. I tried putting the directory path in quotes as you suggested, and it didn't give me the "No such file or directory" error message, so that seems to be a step in the right direction. However, I am still unable to add folders from that drive to my Jellyfin libraries. I've tried rebooting my system, and restarting Jellyfin. No luck.


RE: Libraries - TheDreadPirate - 2024-05-01

If it couldn't find the directory when you run the command then it didn't set the ACL. Ensure that it is actually there.

Code:
sudo cat /proc/mounts

Do you see big box 2 in the list?


RE: Libraries - soodoenim - 2024-05-01

(2024-05-01, 04:54 PM)TheDreadPirate Wrote: If it couldn't find the directory when you run the command then it didn't set the ACL.  Ensure that it is actually there.

Code:
sudo cat /proc/mounts

Do you see big box 2 in the list?

I see this:  /media/littlebox/Big\040Box\0402 ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0


RE: Libraries - TheDreadPirate - 2024-05-02

Ah. Its ext4. Good. I had assumed it was NTFS or something. We can just remove the ACL instead and use basic linux permissions.

Code:
sudo setfacl -b -R /media/littlebox
sudo chmod 755 /media/littlebox
sudo find "/media/littlebox/Big Box 2" -type d -exec chmod 755 {} \;
sudo find "/media/littlebox/Big Box 2" -type f -exec chmod 644 {} \;

This SHOULD set the permissions open enough for Jellyfin to read everything in Big Box 2.


RE: Libraries - soodoenim - 2024-05-02

(2024-05-02, 12:49 PM)TheDreadPirate Wrote: Ah.  Its ext4.  Good.  I had assumed it was NTFS or something.  We can just remove the ACL instead and use basic linux permissions.

Code:
sudo setfacl -b -R /media/littlebox
sudo chmod 755 /media/littlebox
sudo find "/media/littlebox/Big Box 2" -type d -exec chmod 755 {} \;
sudo find "/media/littlebox/Big Box 2" -type f -exec chmod 644 {} \;

This SHOULD set the permissions open enough for Jellyfin to read everything in Big Box 2.

That worked!