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


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

Dread,
when you say mounting the drive with "defaults", do you mean remove the list of "nosuid,nodev,nofail,x-gvfs-show"
"nofail" should probably stay right? that would let the system boot if the drive fails, right?

Tepsys,
I tried the options you listed, but still not scanning on the library, just sits at 0.0% still. I even went the route of changing it to 777 permissions to give it access for everyone and still didn't seem to change it.

******************************************************************
This is what I have currently for my directory, albeit somewhat abbreviated for length.
******************************************************************
ls -l /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library
total 92
drwxrwxrwx 2 a-1 jellyfin 4096 Jul 2 17:37 'Anime Movies'
drwxrwxrwx 8 a-1 jellyfin 4096 Jul 5 16:09 'Anime Shows'
drwxrwxrwx 2 a-1 jellyfin 4096 Aug 2 18:55 'Classic Cartoons'
drwxrwxrwx 2 a-1 jellyfin 4096 Jun 15 08:47 Fitness
drwxrwxrwx 3 a-1 jellyfin 49152 Aug 5 20:19 Movies
drwxrwxrwx 28 a-1 jellyfin 4096 Jul 6 11:44 'TV Shows'
******************************************************************
ls -ld /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library
drwxrwxrwx 13 a-1 jellyfin 4096 Aug 4 18:21 /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library
******************************************************************
ls -ld /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies
drwxrwxrwx 3 a-1 jellyfin 49152 Aug 5 20:19 /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies
******************************************************************


RE: Library Scan Issue...?permissions issue? - tepsys - 2024-08-09

I don't use Ubuntu so maybe Jellyfin works with different ownership on Ubuntu (and if you have 777 permissions on everything, I really don't think this should matter) but I notice in your output the libraries are owned by user a-1 and group jellyfin
Code:
ls -l /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library
total 92
drwxrwxrwx 2 a-1 jellyfin 4096 Jul 2 17:37 'Anime Movies'
drwxrwxrwx 8 a-1 jellyfin 4096 Jul 5 16:09 'Anime Shows'
drwxrwxrwx 2 a-1 jellyfin 4096 Aug 2 18:55 'Classic Cartoons'
drwxrwxrwx 2 a-1 jellyfin 4096 Jun 15 08:47 Fitness
drwxrwxrwx 3 a-1 jellyfin 49152 Aug 5 20:19 Movies
drwxrwxrwx 28 a-1 jellyfin 4096 Jul 6 11:44 'TV Shows'

Just to double check, did you also try with root user and root group as owner?

Code:
sudo chown -R root:root /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library

It's easy enough to change back if needed.

Code:
sudo chown -R a-1:jellyfin /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library



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

Yeah, I tried root:root, but it didn't seem to change anything. I changed it to a-1:jellyfin after that to try it, I get this when I run the jellyfin group, so it appears that group has permissions to the files best I can tell. My movies haven't been moved into folders yet, but it is seeing the files. I moved a few into folders properly, but they aren't scanning either. I also tried setting a secondary folder on my main nmve/OS drive to see if it could access there, but it won't scan/add for those either.

groups jellyfin
jellyfin : jellyfin video render a-1

find /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library -group jellyfin
/media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library
/media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies
/media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies/Blade 2 (XXXX).mkv
/media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies/Love And Monsters (2020).mkv
/media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies/Dune (2021).mkv
/media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies/Cinderella 3: A Twist In Time (XXXX).mkv


RE: Library Scan Issue...?permissions issue? - tepsys - 2024-08-09

Hmm that's very strange. This should be working.

You said you are running Jellyfin on Ubuntu 22 LTS. Is this the server or desktop version of Ubuntu (shouldn't matter really, but I'd like to match your setup as closely as possible)? Can you link me to whatever guide you may have used to install Jellyfin? I want to spin up a ubuntu VM replicating your setup, so the more info about how you have everything installed, the better.


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

(2024-08-09, 02:59 AM)LinuxNoob Wrote: Dread,
when you say mounting the drive with "defaults", do you mean remove the list of "nosuid,nodev,nofail,x-gvfs-show"
"nofail" should probably stay right? that would let the system boot if the drive fails, right?

Tepsys,
I tried the options you listed, but still not scanning on the library, just sits at 0.0% still. I even went the route of changing it to 777 permissions to give it access for everyone and still didn't seem to change it.

******************************************************************
This is what I have currently for my directory, albeit somewhat abbreviated for length.
******************************************************************
ls -l /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library
total 92
drwxrwxrwx  2 a-1 jellyfin  4096 Jul  2 17:37 'Anime Movies'
drwxrwxrwx  8 a-1 jellyfin  4096 Jul  5 16:09 'Anime Shows'
drwxrwxrwx  2 a-1 jellyfin  4096 Aug  2 18:55 'Classic Cartoons'
drwxrwxrwx  2 a-1 jellyfin  4096 Jun 15 08:47  Fitness
drwxrwxrwx  3 a-1 jellyfin 49152 Aug  5 20:19  Movies
drwxrwxrwx 28 a-1 jellyfin  4096 Jul  6 11:44 'TV Shows'
******************************************************************
ls -ld /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library
drwxrwxrwx 13 a-1 jellyfin 4096 Aug  4 18:21 /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library
******************************************************************
ls -ld /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies
drwxrwxrwx 3 a-1 jellyfin 49152 Aug  5 20:19 /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies
******************************************************************

You can keep nofail, but the rest should be removed and replaced with "defaults".


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

I think it was this one, didn't bookmark it, but it looks familiar. I didn't do the apache/nginx setup, just looking to host locally, so I'm not really interested in that for now at least. I'm also logging into the server over http, not https.

https://www.linuxbabe.com/ubuntu/install-jellyfin-media-server-ubuntu-20-04

server version is 10.9.8
ubuntu version is 22.04.4 LTS

***********************************************
I'm seeing this too in the log after login:

[2024-08-09 21:05:34.309 -04:00] [INF] Creating new access token for user 8c69f009-b61c-4475-85ae-587d76a932ea
[2024-08-09 21:05:34.311 -04:00] [INF] WS "192.168.1.17" closed
[2024-08-09 21:05:34.325 -04:00] [INF] WS "192.168.1.17" request
[2024-08-09 21:05:37.543 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."


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

(2024-08-10, 01:27 AM)LinuxNoob Wrote: https://www.linuxbabe.com/ubuntu/install-jellyfin-media-server-ubuntu-20-04

Wtf?  Having Linux beginners use ACLs over basic Linux permissions is nuts.  Beginners have trouble with basic Linux permissions, now you're throwing ACLs in the mix?

Also, why are they having users manually create add the repo?  We literally have an automation script for Debian/Ubuntu.

Anyway.

So where does your setup stand right now?  Are movies/shows getting scanned now?  Copy and paste this command and what is the output.

Code:
ls -ld /media /media/fcecda31-252a-462e-8cee-804315612700 /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies
ls -l /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies

(2024-08-10, 01:27 AM)LinuxNoob Wrote: ***********************************************
I'm seeing this too in the log after login:

[2024-08-09 21:05:34.309 -04:00] [INF] Creating new access token for user 8c69f009-b61c-4475-85ae-587d76a932ea
[2024-08-09 21:05:34.311 -04:00] [INF] WS "192.168.1.17" closed
[2024-08-09 21:05:34.325 -04:00] [INF] WS "192.168.1.17" request
[2024-08-09 21:05:37.543 -04:00] [INF] "CustomAuthentication" was not authenticated. Failure message: "Invalid token."

This message is pretty harmless on its own.  It can happen if you logged out or reinstalled the server and your browser is using a now invalid token.


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

No, still not able to get anything to scan. I'm kind of wondering if it isn't worth going scorched earth and starting the setup over. When I'm setting up the library for movies, I can see all the folders through to my movies, but they never scan into the library.
******************************************************************************************
a-1@A-1:~$ ls -ld /media /media/fcecda31-252a-462e-8cee-804315612700 /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies
drwxr-xr-x 4 root root 4 Aug 6 23:12 /media
drwxrwxrwx 19 a-1 a-1 4096 Aug 4 18:20 /media/fcecda31-252a-462e-8cee-804315612700
drwxrwxrwx 13 a-1 a-1 4096 Aug 4 18:21 /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library
drwxrwxrwx 4 a-1 a-1 49152 Aug 9 06:23 /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies
******************************************************************************************
a-1@A-1:~$ ls -l /media/fcecda31-252a-462e-8cee-804315612700/Jellyfin_Library/Movies
total 3437362524
drwxrwxrwx 2 a-1 a-1 4096 Aug 8 22:57 101
-rwxrwxrwx 1 a-1 a-1 3537725445 Jul 28 07:08 '13 Going on 30 (XXXX).mkv'
-rwxrwxrwx 1 a-1 a-1 4869382937 Jul 28 19:37 '17 Again (XXXX).mkv'
-rwxrwxrwx 1 a-1 a-1 5819632445 Jul 26 16:49 '27 Dresses (XXXX).mkv'
-rwxrwxrwx 1 a-1 a-1 13918585974 May 22 00:48 '300 (2006).mkv'
-rwxrwxrwx 1 a-1 a-1 4248115079 Apr 18 18:57 '30 Days Of Nights (2007).mkv'
(the rest is abbreviated for length, but there are a bunch more with the same permissions)
******************************************************************************************
a-1@A-1:~$ getent group a-1
a-1:x:1000:jellyfin
******************************************************************************************


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

Did you remount your drive to use just "defaults,nofail" for the mount options?


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

Yeah, didn't change anything, so I changed it back.