Jellyfin Forum
Cannot view media in TrueNas Scale - 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: Cannot view media in TrueNas Scale (/t-cannot-view-media-in-truenas-scale)



Cannot view media in TrueNas Scale - Quint Davison - 2023-06-22

Hi All, hoping for some access help. Fairly new to Self Hosting. I have TrueNas Scale setup and installed Jellyfin via docker.
My main dataset is /mnt/data/General
I have gone through all the ACL on /General to ensure read write access, and applied recursively and to child datasets on all of them.
In the Docker container, I have mounted /mnt/data/general as /media
But I am having issues accessing certain folders. Somehow, Jellyfin can see some sub-folders and files of my music and images (but not all of them), but any folder i create, it cannot see the contents.
All of my dataset folders have been created via SMB.
Attached photos of log, ACL, and my mount in the container.
Thank you for any advice!


RE: Cannot view media in TrueNas Scale - Venson - 2023-06-23

Hey @Quint_Davison,

There should have been a warning when you tried to use an SMB shared folder in a Kuberneties app that exactly this might happen :-D.

When you create folders via SMB you create them with the owner as the same user that connects to your SMB service or with the default SMB user. You can fix this quick, by editing the jellyfin app and scrolling down to the mount definition, there should be a checkbox "Fix Permissions" for that mount, that will rewrite the permissions for that folder so that the app may see it.


RE: Cannot view media in TrueNas Scale - Quint Davison - 2023-06-23

@Venson Thanks so much for the reply. The warning you mentioned, I only get if the SMB share is active, but I've turned that off. That obviously doesn't change that an SMB User created the folder. I tried your suggestion and unfortunately no change. It did get my head turning, and in setup I changed the userid from the default app 568 to my smb user (3000), and now have access!

Is this an ok fix? What can I do differently? Is there a better way to create folders in a dataset on TrueNAS to about these permission issues?


RE: Cannot view media in TrueNas Scale - Venson - 2023-06-23

Yes your solution is not the "cleanest" one but its ok. I would prefer to work with groups instead.


Well you could go the other way around, there is an option in truenas scale kuberneties app volumes that changes all file permissions to a predefined group

[Image: h3iw4OG.png]


thats how i handle it. Group 999 is my "Docker" group and both my user aswell as the app user 568

[Image: iOFWhzb.png]

are members of it.

btw thats not a JF container, i run Jellyfin on another server that is also connected via an NFS share and i upload media to my TrueNas Scale NAS via SMB because i struggle with linux permissions myself :-D.