acess denied NAS share

Having issues with your DietPi installation, or, found a bug? Post it here.
majorkuso
Posts: 12
Joined: Thu May 07, 2020 5:42 pm

acess denied NAS share

Post by majorkuso »

I have added network shares for sonarr and raddarr using the drive manager, but get the following error when they try to import.

System.UnauthorizedAccessException: Access to the path is denied. ---> System.IO.IOException: Operation not permitted

the permissions are 777 on the destination

drwxrwxrwx 2 dietpi dietpi 0 May 6 15:37 Anime
drwxrwxrwx 2 dietpi dietpi 0 May 7 11:04 movies
drwxrwxrwx 2 dietpi dietpi 0 May 7 10:31 tvshows

sonarr and radarr groups are as follows
radarr : dietpi
sonarr : dietpi


not sure what is wrong.
how can i change the user from radarr or sonarr to something else, what about the password?
User avatar
Joulinar
Posts: 2032
Joined: Sat Nov 16, 2019 12:49 am

Re: acess denied NAS share

Post by Joulinar »

Hi,

pls can you try to create some dummy files to check file system permission

Code: Select all

sudo -u radarr touch /mnt/<YourFileSystem>/Anime/test.file
sudo -u sonarr touch /mnt/<YourFileSystem>/Anime/test.file
If permission are ok, files should be created as user radarr and sonarr.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
majorkuso
Posts: 12
Joined: Thu May 07, 2020 5:42 pm

Re: acess denied NAS share

Post by majorkuso »

thanks I will try that, I didn't know I could do it that way.
majorkuso
Posts: 12
Joined: Thu May 07, 2020 5:42 pm

Re: acess denied NAS share

Post by majorkuso »

here is the output after creating the file

root@torbox:~# ls -lah /mnt/Server/Anime/| grep test
-rwxrwxrwx 1 dietpi dietpi 0 May 8 18:06 test.file
-rwxrwxrwx 1 dietpi dietpi 0 May 8 18:08 test_radarr.file
-rwxrwxrwx 1 dietpi dietpi 0 May 8 18:08 test_sonarr.file
User avatar
Joulinar
Posts: 2032
Joined: Sat Nov 16, 2019 12:49 am

Re: acess denied NAS share

Post by Joulinar »

pls can you share the output from /etc/fstab?
NETWORK part would be enough. Pls remove user/password before posting

Code: Select all

cat /etc/fstab
is there any information to which folder access is denied?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
majorkuso
Posts: 12
Joined: Thu May 07, 2020 5:42 pm

Re: acess denied NAS share

Post by majorkuso »

//192.168.0.166/Anime /mnt/Server/Anime cifs username=xxx,password=x,iocharset=utf8,uid=dietpi,gid=dietpi,file_mode=0777,dir_mode=0777,vers=1.0,_netdev,nofail,x-systemd.automount
//192.168.0.166/tvshows /mnt/Server/tvshows cifs username=xxx,password=x,iocharset=utf8,uid=dietpi,gid=dietpi,file_mode=0777,dir_mode=0777,vers=1.0,_netdev,nofail,x-systemd.automount
//192.168.0.166/Movies /mnt/Server/movies cifs username=xxx,password=x,iocharset=utf8,uid=dietpi,gid=dietpi,file_mode=0777,dir_mode=0777,vers=1.0,_netdev,nofail,x-systemd.automount
majorkuso
Posts: 12
Joined: Thu May 07, 2020 5:42 pm

Re: acess denied NAS share

Post by majorkuso »

I should also note that when it tries to write a file it immediately deletes it after writing. I also note files starting with cifs such as cifs169d and it creates more.
majorkuso
Posts: 12
Joined: Thu May 07, 2020 5:42 pm

Re: acess denied NAS share

Post by majorkuso »

Any suggestions?
User avatar
Joulinar
Posts: 2032
Joined: Sat Nov 16, 2019 12:49 am

Re: acess denied NAS share

Post by Joulinar »

can you check on your NAS server if there are any log? Are you able to create files as user dietpi on the NAS share?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
majorkuso
Posts: 12
Joined: Thu May 07, 2020 5:42 pm

Re: acess denied NAS share

Post by majorkuso »

Logs unfortunately no as it is a Seagate black armor 400 nas. The sonarr,radarr, and dietpi,account created test files in different directories.
Post Reply