Help with docker sabnzbd install/permissions

Currently reading
Help with docker sabnzbd install/permissions

yes they do already exist, have existed for quite some time, as other containers refer to them.
is this a recent change as surely it should be clever enough to check if they exist before trying to create them again.
Don't know the history of Sab internals, or what assumptions the devs had in this area; i'm just suggesting a possible cause of your error.
won't that then create issues with other containers that need them?
I've no idea; it depends what those other containers are & what they're expecting etc. You'll have to run this scenario for yourself.
Just rename the top level /usenet/ folder to, say, /xusenet/ temporarily while you try my suggestion; then just rename it back when you're done testing. Or even simpler, specify a non-existing new folder in the Sab dialogue, just as a test of my suggestion. Specify it as '/foo/bar' and see if this works...
 
just tried pointing it to a folder that doesn't yet exist - same error "cannot create directory"

clicking on the "browse" icon, i can't see anything outside of the root of the container
 
Are you absolutely sure that user with PUID 1026 has all nec read / write / exec permissions on the /volume1/data/downloads/ dir?
 
PUID 1026 definitely has r/w permissions, as i'm using the same PUID/PGID in another container that has r/w permissions to the same volume/folder.

in fact PUID 1026 is the only user on the NAS, which is the only user that has r/w to the volume.

it definitely feels like a user permission issue, but can't see why.
 
Agree it's almost def a permissions issue.

I'm running Sab on a Linux server rather than a Syno, so am using a docker compose file to configure my Sab rather than the Syno GUI. My compose file doesn't use the 'HOME' parameter that you have in your GUI...try temporarily deleting this param and see if this changes what's visible when you 'Browse' in the Sab folders dialogue.

Put the param back in after trying this.
 
the HOME parameter was there as part of the docker creation - it's also there on sabnzbd running on my pi.
removing it made no difference
-- post merged: --

as an example, here's another container that runs with with no issues, using the same volume mount point

1684238871396.png


that one has 101 as the PGID, but i tried that as well as 100 and it made no difference to the error message
 
Last edited by a moderator:
...different Group ID to your Sab container: 100 vs 101... (posted b4 yr edit)
-- post merged: --

You said this 2nd container has the same volume mount point as Sab container; this isn't clear in yr screengrab. The /config mount is implied there, but not the /downloads mount. I'm not doubting you; just trying to be systematic.
 
i didn't show the mount points in the image above, just the environment variables.

both this sab container and the container example above, have mount points pointing to the exact same location.
-- post merged: --

1684239456537.png


and

1684239474120.png
 
i didn't show the mount points in the image above, just the environment variables.

both this sab container and the container example above, have mount points pointing to the exact same location.
-- post merged: --

View attachment 12763

and

View attachment 12764

In your sabnzbd settings you have mapped existing data folder to /downloads mount path.
Therefore in sabnzbd settings you have to use also "/downloads" when pointing to folders e.g. /downloads/usenet/incomplete instead of /usenet/incomplete alone.
As it is now, sabnzbd tries to create a folder somewhere that cannot understand...

Assuming that your existong folder is /volumes1/data/downloads/usenet/incomplete then I would suggest to correct mappings as follows:

docker/sabnzbd --> /config
data/downloads/usenet --> /downloads
data/downloads/usenet/incomplete --> /incomplete-downloads

That should do the job but I believe you have to reset the container for the changes to take effect...
 
That should do the job but I believe you have to reset the container for the changes to take effect...

just tried as you suggested, but still the same error

so i changed the mount point for /downloads to data/downloads/usenet
reset the container, started it

loaded sabnnzbd
tried setting the "Completed Download Folder" to "/downloads/complete" - "Cannot create directory /downloads/complete"

1684242071922.png


1684242084622.png
 

it was actually created using parts of that guide (with the exception of the network part which isn't relevant)

i do notice that guide uses a mount path called /data/usenet, which isn't part of the official container notes, which says you should use /downloads (which is what i've used on the sabnzbd container running on my pi).

i'm pretty sure this is some sort of weird permissions issues, as i've had sabnzbd running on the NAS just fine before.
 
Personally I use the following compose and it works just fine (PID/GID needs to be changed, as well as optional port, and volumes) with no issues at all at any point

YAML:
version: "2.1"
services:
  sabnzbd:
    image: linuxserver/sabnzbd:latest
    container_name: sabnzbd
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Paris/Zagreb
    volumes:
      - /volume1/docker/sabnzbd:/config
      - /volume1/downloads/:/downloads #optional
      #- /path/to/incomplete/downloads:/incomplete-downloads #optional
    ports:
      - xxxx:8080
    restart: unless-stopped
 
The folder paths and mapping can be different if you follow exactly the guide, no problem about that.
I followed guides from there and everything is working as expected that's why I suggest to have a look if you need further help.
From what information you have already provided, you should be OK by now if no other permission issues exist.
 
Personally I use the following compose and it works just fine (PID/GID needs to be changed, as well as optional port, and volumes) with no issues at all at any point

essentially identical to how mine was created.
as i said, i don't believe this to be a docker/container issue, almost certainly a permissions issue, but what that issue is i don't know

the PUID and PGID i'm using is 100% correct (and the same as used by other containers with rw permissions to the same location)

From what information you have already provided, you should be OK by now if no other permission issues exist.

as above, has to be a permission issues, not a docker/container issue.
 
Last edited:
Have you tried to crate a new DSM account (and new UID) as well as new config folder and create the SAB using those parameters?

bizarrely that has solved it, which does confirm it must have been a permission issue.
not sure why though then the original user has more permissions than the restricted docker user i just created.

edit - actually no, it still gives the error if the folder already exists, but if you remove the existing folder and let it create it again, then it works. why it has an issue using a folder that already exists i have no idea, you'd think it would have the required logic to check if it exists first before trying to blindly create it again.
 
bizarrely that has solved it, which does confirm it must have been a permission issue.
not sure why though then the original user has more permissions than the restricted docker user i just created.

edit - actually no, it still gives the error if the folder already exists, but if you remove the existing folder and let it create it again, then it works. why it has an issue using a folder that already exists i have no idea, you'd think it would have the required logic to check if it exists first before trying to blindly create it again.
As per my initial replies. The wording in the error log does suggest that Sab is indeed trying to create the dirs specified in the 'Folders' tab, not just set them.

It's OS software; what you or I might consider logical / obvious is not necessarily what the devs do.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

  • Question
I finally got synocr running after some user error (beginner here!). Nice GUI for ocrmypdf. When synocr...
Replies
0
Views
1,982
This dude here has compiled open-vm-tools for DSM, so I know it's definitely possible. I once tried this...
Replies
0
Views
1,875
Seem to be ok with my TV Series and Movies as I previously had this all set up for Kodi. The only...
Replies
11
Views
13,938
If the image supports... Even so, it can't be authenticated with a LAN IP.
Replies
3
Views
1,193
Uptime on the DS1019+ (where docker runs) is 6 days, I updated DSM then, so docker would also have...
Replies
13
Views
6,135

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top