Jellyfin issue with mounting points, Truenas Core

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
I should qualify this. Does it say that the files are owned by jellyfin user? What does it say in the fields? A screenshot would be helpful.

Here's an example of one of the entries from my jellyfin share:
Code:
-rw-r--r--  1 root  wheel   4.7M Nov  4  2012 SC4ep1_07_M 2.mp3


Here, the file is owned by the user root and the group wheel, but is readable by ALL users, so the Jellyfin process can still perfectly read it without any trouble.

I should also note that if you're changing the owner, then you need the uid of the jellyfin user both on the host AND the jail/VM to match. That means, the host needs to have a jellyfin user with uid of 868 AND the jail/VM also needs a jellyfin user with uid of 868.
I see the files like you have shown in the example. Owner is root group wheel. Both the host and jail users are set to 868 so it should work just as it works for my movies folder thus I really don't have any idea why it is not working.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I don't think you understand what I'm trying to say. I need you to perform that command on both the host and the jail and post the sample outputs here. BOTH of them need to match. You seem to be resistant to be helped and I don't really know why. It helps if we can actually see the current situation of what you have rather than just throwing guesses at the wall.
 
Last edited:

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
@Whattteva here you go:

The photo folder is named "slike" this is the one I would like that Jellyfin reads but instead show's it as if its empty.

This one is on the host:

Code:
root@truenas[/mnt/zrcalo/zrcalo2]# ll
total 108
drwx------+  8 root      wheel  uarch  8 Apr 22 20:09 ./
drwxr-xr-x   4 root      wheel  uarch  4 Jan 17 22:29 ../
drwx------+  5 root      wheel  uarch  5 May  6 08:27 dokumenti/
drwxrwx---+  7 root      wheel  uarch  7 May 14 18:51 media/
drwx------+  2 root      wheel  uarch  2 May  3 20:57 ostalo/
drwx------+ 34 www       wheel  uarch 36 May  6 08:23 programi/
drwxrwx---+ 15 jellyfin  wheel  uarch 16 May 15 20:30 slike/
drwx------+  3 921       921    uarch  3 May  3 20:57 zacasno/
root@truenas[/mnt/zrcalo/zrcalo2]# ll slike
total 132
drwxrwx---+  15 jellyfin  wheel     uarch   16 May 15 20:30 ./
drwx------+   8 root      wheel     uarch    8 Apr 22 20:09 ../
drwx------+   3 jellyfin  wheel     uarch    3 Jan 12 08:25 DCIM Jan Mi 5c/
drwx------+   4 jellyfin  wheel     uarch    4 Jan 12 08:55 DCIM mirjam LG/
drwx------+   6 jellyfin  wheel     uarch    6 Jan 12 09:18 Diasi/
drwx------+ 119 jellyfin  wheel     uarch  119 Jan 12 11:03 Jan in Družinica Kolar/
drwx------+   2 jellyfin  jellyfin  uarch    9 May 15 20:30 jellyfin/
drwx------+ 101 jellyfin  wheel     uarch  102 Jan 12 12:29 Mirjam/
drwx------+   4 jellyfin  wheel     uarch    5 Apr 28 07:48 nextcloud_slike/
-rwx------+   1 jellyfin  wheel     uarch 6815 Nov 13  2022 peter.twp_w*
drwx------+   7 jellyfin  wheel     uarch    9 Jan 12 12:44 Poročne slike/
drwx------+   2 jellyfin  wheel     uarch    4 Jan 12 08:15 Slike - prošnja/
drwx------+   4 jellyfin  wheel     uarch    4 Jan 12 17:13 Slike mobi/
drwx------+   2 jellyfin  wheel     uarch   24 Jan 12 12:53 Video Jan/
drwx------+   2 jellyfin  wheel     uarch    7 Jan 12 08:25 Video Mirjam/
drwx------+   2 jellyfin  wheel     uarch   17 Mar 18 13:15 Videokasete/
root@truenas[/mnt/zrcalo/zrcalo2]#


This is in the jail:
Code:
root@jellyfin:/ # ll
drwxr-xr-x   2 root      wheel     2B Apr  7 06:06 mnt
drwxr-xr-x   2 root      wheel     2B Apr  7 06:06 net
dr-xr-xr-x   2 root      wheel     2B Apr  7 06:06 proc
drwxr-xr-x   2 root      wheel   150B Apr  7 06:21 rescue
drwxr-x---   2 root      wheel     9B May 16 19:16 root
drwxr-xr-x   2 root      wheel   151B Apr  7 06:26 sbin
drwxrwx---+ 15 jellyfin  wheel    16B May 15 20:30 slike
lrwxr-xr-x   1 root      wheel    11B May  4 09:41 sys -> usr/src/sys
drwxrwxrwt   6 root      wheel     8B May 16 03:42 tmp
drwxr-xr-x  14 root      wheel    14B Apr  7 06:39 usr
drwxr-xr-x  24 root      wheel    24B May 15 21:49 var
root@jellyfin:/ # ll /slike/
total 115
drwx------+   3 jellyfin  wheel     3 Jan 12 08:25 DCIM Jan Mi 5c/
drwx------+   4 jellyfin  wheel     4 Jan 12 08:55 DCIM mirjam LG/
drwx------+   6 jellyfin  wheel     6 Jan 12 09:18 Diasi/
drwx------+ 119 jellyfin  wheel   119 Jan 12 11:03 Jan in Družinica Kolar/
drwx------+   2 jellyfin  1004      9 May 15 20:30 jellyfin/
drwx------+ 101 jellyfin  wheel   102 Jan 12 12:29 Mirjam/
drwx------+   2 root      wheel     2 Apr 27 22:07 nextcloud_slike/
-rwx------+   1 jellyfin  wheel  6815 Nov 13  2022 peter.twp_w*
drwx------+   7 jellyfin  wheel     9 Jan 12 12:44 Poročne slike/
drwx------+   2 jellyfin  wheel     4 Jan 12 08:15 Slike - prošnja/
drwx------+   4 jellyfin  wheel     4 Jan 12 17:13 Slike mobi/
drwx------+   2 jellyfin  wheel    24 Jan 12 12:53 Video Jan/
drwx------+   2 jellyfin  wheel     7 Jan 12 08:25 Video Mirjam/
drwx------+   2 jellyfin  wheel    17 Mar 18 13:15 Videokasete/
#


Here are the id's to clarify this as well:
Code:
root@jellyfin:~ # ps aux
USER       PID %CPU %MEM     VSZ    RSS TT  STAT STARTED    TIME COMMAND
root     46802  4.4  0.1   14016   3900  1  SJ   19:39   0:00.01 -csh (csh)
root     46801  3.9  0.0   13680   3044  1  SJ   19:39   0:00.01 login [pam] (login)
root     25831  0.0  0.0   12868   2760  -  SsJ  21:49   0:00.14 /usr/sbin/syslogd -c -ss
root     25871  0.0  0.0   12908   2512  -  IsJ  21:49   0:00.22 /usr/sbin/cron -J 15 -s
jellyfin 25891  0.0  0.0   12816   2204  -  IsJ  21:49   0:00.00 daemon: /usr/local/jellyfin/jellyfin[25892] (daemon)
jellyfin 25892  0.0  8.2 3192432 499564  -  IJ   21:49   0:48.40 /usr/local/jellyfin/jellyfin --datadir /var/db/jellyfi
root     46805  0.0  0.1   13524   3076  1  R+J  19:39   0:00.00 ps aux
root@jellyfin:~ # id jellyfin
uid=868(jellyfin) gid=868(jellyfin) groups=868(jellyfin)


This are my mounting points for the jellyfin jail. Keep in mind that the first point is working fine the second one doens't want to work no matter waht I do with the permissions.
1684257958787.png

Any ideas now? I can set ownership of the slike folder back to root as it was and the problem still remains, belive me.
 
Last edited:

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
Forgot to mention that the slike folder is the photo folder I'm talking about.
 
Last edited:

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Forgot to mention that the slike forlder is the photo folder I'm talking about.
Can you run that same command id jellyfin on the host as well?
 

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
Can you run that same command id jellyfin on the host as well?
Yeah here you are.

Code:
root@truenas[/mnt/zrcalo/zrcalo2/slike]# id jellyfin
uid=868(jellyfin) gid=868(jellyfin) groups=868(jellyfin),545(builtin_users)
 
Last edited:

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Everything looks correct. It's curious that it's not working. By any chance, are you running ACL's?
 

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
Everything looks correct. It's curious that it's not working. By any chance, are younning ACL's?
Yes I'm running ACL's it on slike as well as on media. Both have a user 868 permission inside with modfy access, same settings one works and the other doesn't. I just can't seem to figure it out what is wrong.

Since I've installed Jellyfin "manually" inside a jail I've created I thought there might be something that I've missed, so I installed it as a plugin as well but it didn't solved the problem, still the same issue.

In searching of a clue I would like to ask if it's possible there might be a permission conflict with any other program/service that I use on my NAS? The only thing that uses folder slike beside Jellyfin is NexctCloud and SMB. But this still doesn't explain why is the media folder working just fine and the slike isn't even when I set them up exactly the same way with the same permissions on all levels, even the same services use both locations...?!
 
Last edited:

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
With this permission issues put aside I've looked into jellyfin a bit closer and if I declare my photo folder /slike/ it displays the following message if I click on the play all button when taking a look at the library

Playback Error​

This client isn't compatible with the media and the server isn't sending a compatible media format.

If I type in (in the add library menu where you choose the folders) /slike/Diasi/ then it works for this folder. It displays my images. Looks like that Jellyfin has it's odd reasons not to display the folder tree at all in the add folder menu if there is anything that might not be compatible? This is kind of odd I think, a bug perhaps?
 
Last edited:

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
With this permission issues put asside I've looked into jellyfin a bit closer and if I declare my photo folder /slike/ it displays the following message if I click on the play all button when taking a look at the library



If I type in (in the add library menu where you choose the folders) /slike/Diasi/ then it works for this folder. It displays my images. Looks like that Jellyfin has it's odd reasons not to display the folder tree at all in the add folder menu if there is anyhtint that might not be compatible? This is kind of odd I think, a bug prehaps?
Anyone knows what can cause this issue. What files should I remove to make Jellyfin work? Or should I report a bug?
 
Last edited:

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Sorry, I do install Jellyfin manually in the jail, but that's where our similarities end. I don't use ACL's and I don't even allow write access to Jellyfin. It's purely read-only mode, which seems to work just fine since I believe it doesn't save the DB on the share and I don't need it to actually manage my media, just to read (watch). Best of luck to you. Hopefully someone with ACL's can help.
 

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
If this is a helpful community then I should draw a conclusion to my problem:

- There were/are no permission problems even with using ACL, everything works.
- Jellfin works fine when adding a folder to the library with a mount point to the main pool
- The problem is with Jellyfin. It doesn't show the folder tree in the add library menu for a folder for which it assumes it contains incompatible files. This also applies for a folder which contains only subfolders. I would say this is a bug.
- When manually typing in the correct subfolder to add media to the library it imports all files as expected. But typing in a dozen of subfolders manually is very impractical.

Thank you all for your help.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
- When manually typing in the correct subfolder to add media to the library it imports all files as expected. But typing in a dozen of subfolders manually is very impractical.
Huh, did you make sure you check the "recursive" option on Jellyfin?
 

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
This is what I always do to. If I would do that then it wouldn't read the slike subfolders.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Question:
is slike a folder or a dataset. If it's a dataset, are there other nested datasets underneath it?
 

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
Question:
is slike a folder or a dataset. If it's a dataset, are there other nested datasets underneath it?
slike is a dataset only one dataset is nested in it. I don't need the access to the nested dataset but only the folders inside the slike dataset.
 
Last edited:

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
slike is a dataset only one dataset is nested in it. I don't need the acces to the nested dataset but only the folders inside the slike dataset.
Bummer. I was going to say that nested datasets would need its own separate mapping for it to work, but that doesn't seem to be the case here.
 

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
Like I said earlier it's not a permission nor ACL issue it has something to do with Jellyifn having a bug or something.
But in any case I've solved the problem with just typing the path in manually. And since I'm not satisfied with how Jellyfin deals with photos I'll not use it for this purpose.
 
Last edited:

johnty

Cadet
Joined
May 23, 2023
Messages
3
Like I said earlier it's not a permission nor ACL issue it has something to do with Jellyifn having a bug or something.
But in any case I've solved the problem with just typing the path in manually. And since I'm not satisfied with how Jellyfin deals with photos I'll not use it for this purpose.
I am having a similar problem. I installed Jellyfin from the plugins of Truenas Core
I have created a user and group both with UID/GID 868 to match the jellyfin user in the jail.
I created a mount point from my nas pool to /mnt/JailPool/iocage/jails/jellyVid/root/mnt/media
I can access my media files and directories in the shell for the Jellyfin jail, when you go manage Jellyfin and add media libraru I can not access the /mnt/media contents. It is just blank.

Any ideas?
(be kind to me, i only installed truenas a couple days ago, i can access my files from my windows pc :) )
 

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
I am having a similar problem. I installed Jellyfin from the plugins of Truenas Core
I have created a user and group both with UID/GID 868 to match the jellyfin user in the jail.
I created a mount point from my nas pool to /mnt/JailPool/iocage/jails/jellyVid/root/mnt/media
I can access my media files and directories in the shell for the Jellyfin jail, when you go manage Jellyfin and add media libraru I can not access the /mnt/media contents. It is just blank.

Any ideas?
(be kind to me, i only installed truenas a couple days ago, i can access my files from my windows pc :) )
If there really are no ACL and permission issues then you should in the blank field where you add a folder to the library, type in manually the folder path to the media for example /mnt/media/(subfolder where there are actual media files in. It might not detect any media if it's just a folder containing only subfolders). If you don't get an error by just clicking add then Jellyfin reads the folders.

Have a nice day.
 
Top