Jellyfin Forum
(SOLVED)Library Scan Issue...?permissions issue? - 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 Issue...?permissions issue? (/t-solved-library-scan-issue-permissions-issue)

Pages: 1 2 3 4


(SOLVED)Library Scan Issue...?permissions issue? - LinuxNoob - 2024-08-03

Hey, admittedly new to the jellyfin side, especially from the linux side. I played around with the older windows version and I've now started setting it up on Ubuntu 22LTS system for the house. I've already begun ripping movies/ tv shows from disc for this and named the movies as such:
"Title (Year).mkv"

I changed the folder permissions from the gui side and applied to all subfolders and have the drive mounted by UUID under "/mnt"

I can set the folder when I'm creating the libraries, but it doesn't seem to scan or load any movies. I'm assuming this is a permissions issue, but wasn't really sure where to go from here.

Any help would be greatlyl appreciated, also I'm not running any additional plugins etc. just the stock system as packaged.


RE: Library Scan Issue...?permissions issue? - TheDreadPirate - 2024-08-03

Can you show me the permissions for EVERY step leading to a media file? I will use something from my library as an example.

The full path is this.

/media/library/Anime/Gunsmith Cats/Season 01/s01e01.mkv

To list the permissions for each step would look like this ON THE COMMAND LINE. The UI gets in the way.

Code:
ls -ld /media /media/library /media/library/Anime /media/library/Anime/"Gunsmith Cats" /media/library/Anime/"Gunsmith Cats"/"Season 01"
ls -l "/media/library/Anime/Gunsmith Cats/Season 01/s01e01.mkv"

The -d is used to only show the directory itself since we don't care about other objects in there.

Find a file you are having issues with and replicate what I did with that file and share the output.


RE: Library Scan Issue...?permissions issue? - LinuxNoob - 2024-08-03

I'm not sure I did this correctly, but here is what I got. It's just a test directory first before I move more files over. Right now it is not successfully scanning any files into my library.

*******************************************************
a-1@A-1:~$ ls -1d /mnt/fcecda31-252a-462e-8cee-804315612700/JellyFin
/mnt/fcecda31-252a-462e-8cee-804315612700/JellyFin
a-1@A-1:~$ ls -1 "/mnt/fcecda31-252a-462e-8cee-804315612700/JellyFin"
'Jellyfin Cache'
'Jellyfin Metadata'
'Man Of The House (2005).mkv'
*******************************************************

Also, thanks for the response.


RE: Library Scan Issue...?permissions issue? - TheDreadPirate - 2024-08-03

The options are a lower case L, not a 1. And you have to list out each directory, not as a single path. Notice how I did /media, then /media/library, etc.


RE: Library Scan Issue...?permissions issue? - LinuxNoob - 2024-08-03

a-1@A-1:~$ ls -ld /mnt/fcecda31-252a-462e-8cee-804315612700 /mnt/fcecda31-252a-462e-8cee-804315612700/JellyFin
drwxrwxrwx  19 a-1 a-1 4096 Aug  3 09:50 /mnt/fcecda31-252a-462e-8cee-804315612700
drwxrwxrwx+  4 a-1 a-1 4096 Aug  3 13:32 /mnt/fcecda31-252a-462e-8cee-804315612700/JellyFin


RE: Library Scan Issue...?permissions issue? - TheDreadPirate - 2024-08-04

This directory has an ACL.

/mnt/fcecda31-252a-462e-8cee-804315612700/JellyFin

Code:
sudo setfacl -b -R /mnt/fcecda31-252a-462e-8cee-804315612700/JellyFin



RE: Library Scan Issue...?permissions issue? - LinuxNoob - 2024-08-04

I ran that and starting a rescan of my libraries, no progress so far, but I have around 1tb, so maybe it'll take awhile?


RE: Library Scan Issue...?permissions issue? - TheDreadPirate - 2024-08-04

Can you share your full jellyfin log via pastebin?


RE: Library Scan Issue...?permissions issue? - LinuxNoob - 2024-08-04

https://pastebin.com/TFFeycxu

Would it be easier to create a new file directory and start from scratch?


RE: Library Scan Issue...?permissions issue? - TheDreadPirate - 2024-08-04

You added the entire file system to a library?!?!?!

Code:
[2024-08-02 18:03:00.915 -04:00] [ERR] Error in Directory watcher for: "/"

You need to remove that path for the library you created and the specific folders you created with your media.