Jellyfin Forum
Can't connect to nas libraries - 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: Can't connect to nas libraries (/t-can-t-connect-to-nas-libraries)



Can't connect to nas libraries - true911 - 2024-11-09

I'm running LMDE linux on an N100 with jellyfin.  The system setup seems to work and can view my existing libraries, but I can't get permissions to write to them.  They are stored on a QNAP nas that is also running a linux-variant OS.  My nas library destinations are mounted to local /mnt directories on the jf box, then I selected those directories when I add my libraries in jf.  

I tried to attach the log below but not sure it succeeded (no confirmation after drag and drop).  But I can see pertinent entries that the server is trying to initiate a recording and then fails due to permissions:

[2024-11-08 19:23:43.935 -05:00] [INF] Writing file to: "/mnt/jfRecTV/WMAR-2 News at 7PM/WMAR-2 News at 7PM 2024_11_08_19_00_00.ts"
[2024-11-08 19:23:43.936 -05:00] [ERR] Error recording to "/mnt/jfRecTV/WMAR-2 News at 7PM/WMAR-2 News at 7PM 2024_11_08_19_00_00.ts"
System.UnauthorizedAccessException: Access to the path '/mnt/jfRecTV/WMAR-2 News at 7PM' is denied.
---> System.IO.IOException: Permission denied
  --- End of inner exception stack trace ---
  at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)

I have tried each of the following on both the LMDE mount point, as well as the actual destination on the nas using ssh:
chmod 777
add user jellyfin to other groups that have access
changed server username jellyfin to others with access

In all cases the file permissions continue to look like this:

drwxr-xr-x 2 dilbert root      0 Nov  6 20:30  Images
drwxr-xr-x 2 dilbert root      0 Nov  6 20:30  Imports
drwxr-xr-x 2 dilbert root      0 Nov  6 20:30 'Jimmy Kimmel Live (2003)'
drwxr-xr-x 2 dilbert root      0 Aug 13  2023 'Live TV'
drwxr-xr-x 2 dilbert root      0 Nov  6 20:32  Logs
drwxr-xr-x 2 dilbert root      0 Nov  6 20:32 'Meet the Press (1947)'
drwxr-xr-x 2 dilbert root      0 Nov  6 20:34 'NASCAR Cup Series'
drwxr-xr-x 2 dilbert root      0 Nov  6 20:34 'NCIS Origins (2024)'
drwxr-xr-x 2 dilbert root      0 Nov  6 20:35 'Nightline (1980)'
drwxr-xr-x 2 dilbert root      0 Nov  6 20:35  NOVA
drwxr-xr-x 2 dilbert root      0 Nov  6 20:35 'Saturday Night Live'
drwxr-xr-x 2 dilbert root      0 Nov  6 20:35 'Saturday Night Live (1975)'

server is v10.10.1
installation is via .deb (I think) utilizing a curl example on the jf web site

Thanks.




RE: Can't connect to nas libraries - TheDreadPirate - 2024-11-09

What protocol is the NAS using for the share? And what are the mount parameters in /etc/fstab?


RE: Can't connect to nas libraries - true911 - 2024-11-09

(2024-11-09, 02:01 AM)TheDreadPirate Wrote: What protocol is the NAS using for the share?  And what are the mount parameters in /etc/fstab?

I posted this on the Matrix chat and was advised to add "noperms" to the fstab line items, which fixed it.  Thanks for your quick response.


RE: Can't connect to nas libraries - TheDreadPirate - 2024-11-09

Whomp. Didn't read your username before posting here.