FreeNAS 11: NFS permission hell on Ubuntu VM

Status
Not open for further replies.

btimbermont

Cadet
Joined
Jun 29, 2017
Messages
2
Hi

I have searched and searched, but cannot find what is causing the problems I'm seeing, so I hope anybody here can be of any help.

So, my setup is a FreeNAS 11 rig, and I'running a Ubuntu server VM. I want to access some of my datasets within the Ubuntu VM, but it doesn't seem to work. On FreeNAS I have the folders /mnt/wd_red_6x3/Downloads and /mnt/wd_red_6x3/Video, and I want to mount them on the Ubuntu VM.

Permissions on FN are:
Code:
drwxrwxr-x   7 sonarr   gezin	   9B Jun 30 11:00 Downloads		 
drwxrwxr-x+  9 sonarr   gezin	  11B Mar 19 14:48 Video

And the UID/GID of this user are:
Code:
% id sonarr
uid=989(sonarr) gid=1001(gezin) groups=1001(gezin),65533(nogroup)

On the ubuntu VM, I have the user also named sonarr:
Code:
root@ubuntuVM:~# id sonarr
uid=989(sonarr) gid=1001(gezin) groups=1001(gezin),65533(nogroup_fn) 

And when i mount the nfs shares,everything seems to be fine when I look via the terminal:
Code:
sonarr@ubuntuVM:~$ ll /media/																									 
total 765																														 
drwxr-xr-x   7 root   root  4096 Jun 29 18:57 ./																					
drwxr-xr-x  23 root   root  4096 Jun 28 20:00 ../
drwxrwxr-x  10 sonarr gezin   23 Jun 30 11:34 downloads/																				
drwxrwxr-x 383 sonarr gezin  906 Jun 29 19:06 video/


I can browse these folders no problem, and use cat to see the content of files. I can touch to make new files, and the app sonarr, running under the user sonarr, can also make folders in the video fodler no problem. But when the sonarr app tries to move a file from the downlaods folder to the video folder, it gets an error:
Code:
17-6-30 12:18:13.2|Warn|ImportApprovedEpisodes|Couldn't import episode /media/downloads/Through.the.Wormhole.S05E07.Is.Gravity.an.Illusion.REPACK.720p.HDTV.x264-DHD[rarbg]/Through.the.Wormhole.S05E07.Is.Gravity.an.Illusion.REPACK.720p.HDTV.x264-DHD.mkv

[v2.0.0.4753] System.UnauthorizedAccessException: Access to the path is denied.
  at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00140] in <8f2c484307284b51944a1a13a14c0266>:0
  at NzbDrone.Common.Disk.DiskProviderBase.MoveFile (System.String source, System.String destination, System.Boolean overwrite) [0x000e3] in <d1810f3a0e9846e3acb4cd1cb9652384>:0
  at NzbDrone.Common.Disk.DiskTransferService.TryMoveFileTransactional (System.String sourcePath, System.String targetPath, System.Int64 originalSize, NzbDrone.Common.Disk.DiskTransferVerificationMode verificationMode) [0x0008f] in <d1810f3a0e9846e3acb4cd1cb9652384>:0
  at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, NzbDrone.Common.Disk.TransferMode mode, System.Boolean overwrite, NzbDrone.Common.Disk.DiskTransferVerificationMode verificationMode) [0x003c2] in <d1810f3a0e9846e3acb4cd1cb9652384>:0
  at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, NzbDrone.Common.Disk.TransferMode mode, System.Boolean overwrite, System.Boolean verified) [0x0000e] in <d1810f3a0e9846e3acb4cd1cb9652384>:0
  at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Tv.Series series, System.Collections.Generic.List`1[T] episodes, System.String destinationFilePath, NzbDrone.Common.Disk.TransferMode mode) [0x0012c] in <e875ff1e5e15495891c97fce19751838>:0
  at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x0006c] in <e875ff1e5e15495891c97fce19751838>:0
  at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, System.Boolean copyOnly) [0x00144] in <e875ff1e5e15495891c97fce19751838>:0
  at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import (System.Collections.Generic.List`1[T] decisions, System.Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.MediaFiles.EpisodeImport.ImportMode importMode) [0x00277] in <e875ff1e5e15495891c97fce19751838>:0


How is it possible that the sonarr user can't access this file, while I can when using cat under su sonarr?

At first, i though this might be a bug in sonarr, but the very same problem appears with couchpotato.

I have recursively set the permissions to 775 on the side of FreeNAS for all files and folders. My fstab on ubuntu VM looks like this:

Code:
192.168.1.3:/mnt/wd_red_6x3/Downloads/finished /media/downloads/ nfs auto 0 0



Does anybody see what I am missing here?

Thanks in advance!
 
Last edited by a moderator:
Status
Not open for further replies.
Top