Jellyfin Forum
SOLVED: Can't Find Sub-folder(s) - 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: Can't Find Sub-folder(s) (/t-solved-can-t-find-sub-folder-s)



Can't Find Sub-folder(s) - chaserix - 2024-12-29

I am setting up a homelab on a used laptop with Proxmox, and I have everything configured to make a good media server but I can't figure out this Jellyfin problem.

To preface, I am strictly using LXC's for all services (plus a VM to handle storage stuff). I have a Samba (SMB) storage set up following this guide: 
https://forum.proxmox.com/threads/tutorial-unprivileged-lxcs-mount-cifs-shares.101795/

I have all my services such as <apps we don't talk about - TDP>, etc. able to access and do their thing in this SMB share. It is in /mnt/media which has subdirectories:
.../movies - for movies
.../shows - for shows
.../downloads - download location for <apps we don't talk about - TDP>

I have set all of these LXC's SMB shares identically and have confirmed the files all have the same permissions. So, when I go to add the movie and show libraries in Jellyfin, it only let's me down to the /mnt/media level. I can't reach the /movies or /shows. I have no idea what is causing this, but here are the permissions assigned to both the Jellyfin LXC and a working <apps we don't talk about - TDP> LXC:
Code:
root@jellyfin:~# id root
uid=0(root) gid=0(root) groups=0(root),10000(lxc_shares)
root@jellyfin:~# ls -ld /mnt/media/movies
drwxrwx--- 2 root lxc_shares 0 Dec 29 11:55 /mnt/media/movies/
Code:
root@<apps we don't talk about - TDP>:~# id root
uid=0(root) gid=0(root) groups=0(root),10000(lxc_shares)
root@<apps we don't talk about - TDP>:~# ls -ld /mnt/media/movies/
drwxrwx--- 2 root lxc_shares 0 Dec 29 11:55 /mnt/media/movies/

As you can see, they have identical permissions, but Jellyfin refuses to access it. I have a movie already downloaded and handled by <apps we don't talk about - TDP> via <apps we don't talk about - TDP>, so I know its working. I can see this movie on the Jellyfin LXC but can't make a library to access it. Any help is appreciated, I'm brand new to Proxmox and homelab-ing so I apologize for any ignorance.

Thanks.


RE: Can't Find Sub-folder(s) - TheDreadPirate - 2024-12-29

How is Jellyfin installed in the LXC? I'm assuming via apt. What parameters did you use for the SMB share in the LXC?


RE: Can't Find Sub-folder(s) - chaserix - 2024-12-30

(2024-12-29, 10:24 PM)TheDreadPirate Wrote: How is Jellyfin installed in the LXC?  I'm assuming via apt.  What parameters did you use for the SMB share in the LXC?

I just used a Proxmox helper script (https://community-scripts.github.io/ProxmoxVE/scripts?id=jellyfin), I also tried manually setting it up with apt and have the same problem.

I'm a little confused by what you're asking when you say parameters for the SMB share. I have the SMB mounted in the Proxmox host with the following line in /etc/fstab:
Code:
//192.168.0.14/media /mnt/lxc_shares/nas_rwx cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=storage,pass=my_password 0 0

I then just mount it by editing the /etc/pve/lxc/<LXC_ID>.conf with the following line:
Code:
mp0: /mnt/lxc_shares/nas_rwx,mp=/mnt/media

I then just add the root user in each LXC to the lxc_shares group and it works for everything but Jellyfin. Sorry if this didn't answer your question, thank you for helping!


RE: Can't Find Sub-folder(s) - TheDreadPirate - 2024-12-30

(2024-12-30, 04:03 AM)chaserix Wrote:
Code:
//192.168.0.14/media /mnt/lxc_shares/nas_rwx cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=storage,pass=my_password 0 0

Try adding "noperm" to the end of the options.

Code:
//192.168.0.14/media /mnt/lxc_shares/nas_rwx cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=storage,pass=my_password,noperm 0 0



RE: Can't Find Sub-folder(s) - chaserix - 2024-12-30

(2024-12-30, 02:12 PM)TheDreadPirate Wrote:
(2024-12-30, 04:03 AM)chaserix Wrote:
Code:
//192.168.0.14/media /mnt/lxc_shares/nas_rwx cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=storage,pass=my_password 0 0

Try adding "noperm" to the end of the options.

Code:
//192.168.0.14/media /mnt/lxc_shares/nas_rwx cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=storage,pass=my_password,noperm 0 0

This worked! Thank you so much for your help!