Setup Becoming Messy!

Hello All,

I hope you are all staying safe,

I’ve made a complete pickle of my Plex setup. I have a Plex Server (Optiplex) that speaks to my Synology and I also have a Raspberry PI with DietPi installed.

The issue I have is, I’ve just started to dive into the realms of usenet, and I’ve come across an issue in SABNzb:

‘Error Cannot Change Permissions of /mnt/Barry/Downloads’

Barry (Baz The Nas) is my synology drive, now. I don’t know if this means the permissions from Synology or from the mount drive within DietPi? I don’t really understand the issue or what I need to do, I have very limited Linux knowledge but I’m really eager to learn.

Could someone point me in the right direction? I appreciate all your help,

Thank you.

Hi,

I guess SABNzb did not have sufficient right to access /mnt/Barry/. Can you have a look to the permissions

ls -la /mnt/Barry/
ls -la /mnt/Barry/Downloads

Hello Joulinar.

Can I just say, thank you so much for replying. I know this may be a daunting question that’s asked a lot. I’ve spent a lot of my day not working and actually researching!! eek!

/mnt/Barry permissions:

drwxrwx— 2 dietpi dietpi 0 Nov 8 16:04 .
drwxr-xr-x 7 root root 4096 Nov 8 09:54 …
-rwxrwx— 1 dietpi dietpi 0 Sep 19 2019 1
drwxrwx— 2 dietpi dietpi 0 Nov 19 15:23 Barry
-rwxrwx— 1 dietpi dietpi 7912 Oct 3 2019 .bash_history
-rwxrwx— 1 dietpi dietpi 113876 Sep 22 2019 basic-install.sh
drwxrwx— 2 dietpi dietpi 0 Sep 19 2019 Config
drwxrwx— 2 dietpi dietpi 0 Nov 19 09:11 downloads
drwxrwx— 2 dietpi dietpi 0 Nov 6 16:49 meh
drwxrwx— 2 dietpi dietpi 0 Nov 18 09:01 Movie-Downloads
drwxrwx— 2 dietpi dietpi 0 Sep 18 2019 .nano
drwxrwx— 2 dietpi dietpi 0 Nov 5 19:00 Plex
drwxrwx— 2 dietpi dietpi 0 Sep 18 2019 plexupdate
drwxrwx— 2 dietpi dietpi 0 Nov 1 09:10 preroll
drwxrwx— 2 dietpi dietpi 0 Nov 19 08:47 Processed
drwxrwx— 2 dietpi dietpi 0 Nov 8 17:24 ‘#recycle
-rwxrwx— 1 dietpi dietpi 0 Sep 18 2019 .wget-hsts

At the moment I’m trying to set it to go from movie-Downloads (inside is a processed folder that has ‘Incomplete’ and ‘Completed’)

ok everything belongs to user dietpi. That’s fine as you mounted the drive via samba. Let’s check how user sabnzbd looks like

groups sabnzbd

Thank you so much Joulinar.


root@DietPi:~# groups sabnzbd
sabnzbd : sabnzbd dietpi

In sabnzbd I’m trying to use

incomplete: /mnt/Barry/Movie-Downloads/New folder/New folder
Complete: /mnt/Barry/Movie-Downloads/New folder

I have however moved these about.

Thanks Again

Not sure if this helps at all. It shows the size of my drive, I think the permission issue is writing from one folder to the next?

hmm that’s looks pretty fine. Usually sabnzbd user should be able to write to the samba mount. Let’s try

sudo -u sabnzbd touch /mnt/Barry/Movie-Downloads/demo.file

If all goes well the demo.file should be created now

ls -la /mnt/Barry/Movie-Downloads/

Btw you are telling something about /mnt/Barry/Movie-Downloads/ now. While the original issue below was pointing to /mnt/Barry/Downloads. How does this fit together?

'Error Cannot Change Permissions of /mnt/Barry/Downloads'

Hello,

Sorry to confuse you, that’s just me trying to move folders to see if its some sort of folder issue.

You wouldn’t believe I work in I.T…

Okay, so I was able to create a demo.file, do you need this?

I also have the following:

drwxrwx— 2 dietpi dietpi 0 Nov 19 19:34 .
drwxrwx— 2 dietpi dietpi 0 Nov 8 16:04 …
-rwxrwx— 1 dietpi dietpi 0 Nov 19 19:34 demo.file
drwxrwx— 2 dietpi dietpi 0 Nov 19 19:28 ‘New folder’

The weird thing is:

It’s going to /mnt/Barry/Downloads which is correct, then post processing to mnt/Barry/Tv Shows. Yet it’s still throwing up the error?

demo.file was just for testing purposes and can be deleted.

Usually sabnzbd has correct permissions and can write to your Synology. Post-processing is that done in sabnzbd or do you use any other software like sonarr / radarr? Btw did you specified somewhere on post-processing to change file system permissions? Because this will not have any effect (or is failing) as all files and directories on your samba share will have 770 permission by default. And you are not able to change this as samba did not support unix file system permissions.

Hello Joulinar,

The Post-Processing is done from Sonarr (unless I’m downloading Manually) I’ve not touched the permissions, It’s currently set to 777.

The more I’m looking into this issue the more I feel like it’s not actually a dietpi issue but a Synology problem.

No this has nothing to do with your synology. This is more the challenge of SAMBA. Because SAMBA did not support any unix file system permissions. Whatever Sonarr is trying to do (change permissions) will not work. Anyway you could check if Sonarr user belong to dietpi group as well. I guess yes.

groups sonarr

Oh okay, apologies I’m not great with all this.

I’ve run the command:

sonarr : sonarr dietpi

no problem, nobody was born as IT expert. :wink:

OK sonarr is port of DietPi group as well. That’s OK

I guess you would need to disable feature in Sonarr to change permissions. If you have enabled Advanced settings in Sonarr, it should be somewhere on Settings > Media Management.

Thank you haha :slight_smile:

That’s now working! I’ve not had an error since doing some adjustments.

Thank you so much Joulinar!

ok perfect. good that your system is now working fine :slight_smile: