Read/Write access denied with mounted drives?

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
finch_6
Posts: 30
Joined: Tue Sep 04, 2018 7:21 pm

Read/Write access denied with mounted drives?

Post by finch_6 »

Hi everyone,

New to the forums, hope you are all well!

I need some helps please...

Im running DietPi on a Raspberry Pi 3 B+. Running the latest image of DietPi (v6.14).
I have Sonarr, Transmission and Jackett installed. This is all connected to my network (obviously) and I have mounted a shared from a Western Digital MyCloud. This share has my Movies/Series folder and a Transmission folder.

This was all working perfectly until just the other day. What usually happens when the episode has finished downloading is the episode is moved from the Transmission folder to the Series folder (These are both on the same Share).

I can quite work out when it stopped working, but now I get this error:

Code: Select all

Couldn't import episode /mnt/samba/transmission/sonarr/[insert name here].mkv: Access to the path is denied.
I have posted on the Sonarr Forums and what I can gather is that Sonarr doesn't have permission to write/copy/move the downloaded file to the destination. As seen here by one of the replies:
Given

Code: Select all

System.UnauthorizedAccessException: Access to the path "/mnt/samba/Series/[series name]/[tvshow.nfo" is denied.
I’d say the issue is writing to the destination.

Now I'm wondering what has changed??? Like I say, this was working perfectly a few days/weeks ago. Has one of the latest DietPi updates changed permissions somewhere??

Please can someone help?

Thanks in advance everyone..
DietPi on a Raspberry Pi 3 B+ running:
- Sonarr
- Deluge
- Jackett
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: Read/Write access denied with mounted drives?

Post by WarHawk »

make sure permissions are set correctly

cd into that directory, then do a ls -lah and make sure the directories owners and groups are the same...the might have changed

If the did, then do a

Code: Select all

# chown -R user:group /directory
or course user:group should match the rest
User avatar
finch_6
Posts: 30
Joined: Tue Sep 04, 2018 7:21 pm

Re: Read/Write access denied with mounted drives?

Post by finch_6 »

Hi @WarHawk,

Thanks so much for taking the time to reply and explain.

Im not that great in the terminal. I was looking how to do this the other day, couldn't work it out. So thanks for explaining.

Unfortunately that doesn't seem to have worked... See screen shot below:
The attachment Screen Shot 2018-09-05 at 19.20.16.png is no longer available
Did I do the chown command correctly??
I noticed it has root permissions, that sounded correct to me?

I then tied a manual import of the episodes and I still have the same issue:
Share info
Share info


Anymore advice please @WarHawk??

Thanks again.
DietPi on a Raspberry Pi 3 B+ running:
- Sonarr
- Deluge
- Jackett
User avatar
finch_6
Posts: 30
Joined: Tue Sep 04, 2018 7:21 pm

Re: Read/Write access denied with mounted drives?

Post by finch_6 »

After playing around some more with this issue, I can see the permissions is the problem. However I cannot change them. I even installed Webmin and tried to use that to change the permissions (as my terminal work isnt great at all). I could still not change the permissions/owner in Webmin.

Something must have changed in the coding in one of the latest DietPi image updates???

I eventually got so frustrated with it that I formatted the SD and did a clean install of Sonarr, Transmission, Jacket and Webmin. Tried changing permissions/owners again in terminal, no joy. Tried again on Webmin, no joy. It seems its resisting the change...

I configured Sonarr with Jackett and Transmission, went to add my Series and got this error:
Screen Shot 2018-09-05 at 23.34.53.png
Now I can see the permissions is the problem here, BUT my real problem is I have no idea how to change this...

Please can someone help me with this??
DietPi on a Raspberry Pi 3 B+ running:
- Sonarr
- Deluge
- Jackett
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: Read/Write access denied with mounted drives?

Post by WarHawk »

change from root:root to sonarr:sonarr

To change permissions
chmod 777 (for read/write/execute) then folder

good explanation of chmod
https://ubuntuforums.org/showthread.php?t=1252905
User avatar
finch_6
Posts: 30
Joined: Tue Sep 04, 2018 7:21 pm

Re: Read/Write access denied with mounted drives?

Post by finch_6 »

Hi @WarHawk

Thanks again for taking the time to help.

I tried exactly what you said. Screenshot below shows the commands and then a "ls -lha /directory" so see if anything changed. Unfortunately, nothin did..?
Screen Shot 2018-09-06 at 08.18.12.png
It almost seems that I dont have the permissions to even attempt a permission or user:owner change...

Im really stuck here.. Did something change in one of the recent DietPi updates possibly???
DietPi on a Raspberry Pi 3 B+ running:
- Sonarr
- Deluge
- Jackett
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: Read/Write access denied with mounted drives?

Post by WarHawk »

Someone on the DEV team will have to answer that...all I know as sudo or root with the # you have the ability to do anything...so the

Code: Select all

chown -R sonarr:sonarr /mount/samba/Series
should work
SPI0
Posts: 9
Joined: Sun Jul 29, 2018 10:24 pm

Re: Read/Write access denied with mounted drives?

Post by SPI0 »

Hi,

same problem as in my thread.

Code: Select all

chown -R sonarr:sonarr /mount/xxx
doesn't work.
User avatar
finch_6
Posts: 30
Joined: Tue Sep 04, 2018 7:21 pm

Re: Read/Write access denied with mounted drives?

Post by finch_6 »

SPI0 wrote: Sat Sep 08, 2018 1:00 pm Hi,

same problem as in my thread.

Code: Select all

chown -R sonarr:sonarr /mount/xxx
doesn't work.
Yip, It is almost like the DietPi software is refusing to change the user/owner or the permissions. I have done it via terminal, via the DietPi explorer in "dietpi-launcher" and also in Webmin. They just cannot be changed.

I sat up the other night with a very experienced software developer and they were boggled by it too...


So please can this be escalated??? It seems the latest DietPi image, v6.14, is not working as it should??
DietPi on a Raspberry Pi 3 B+ running:
- Sonarr
- Deluge
- Jackett
User avatar
finch_6
Posts: 30
Joined: Tue Sep 04, 2018 7:21 pm

Re: Read/Write access denied with mounted drives?

Post by finch_6 »

WarHawk wrote: Thu Sep 06, 2018 11:15 am Someone on the DEV team will have to answer that...all I know as sudo or root with the # you have the ability to do anything...so the

Code: Select all

chown -R sonarr:sonarr /mount/samba/Series
should work
Hi @WarHawk,

Just giving you a heads up, as I say in my previous post, this doesn't work.. I have no idea whats going on?
DietPi on a Raspberry Pi 3 B+ running:
- Sonarr
- Deluge
- Jackett
Post Reply