NZBGet permission denied when created folder movie

Hello,

I have an issue with Nzbget using linuxserver.io Nzbget docker. I have the following configuration in my docker-compose yaml file:

  nzbget:
image: "linuxserver/nzbget"
container_name: "nzbget"
volumes:
  - ${USERDIR}/docker/nzbget:/config
  - ${USERDIR}/Downloads:/downloads
  - ${USERDIR}/Downloads/incomplete:/incomplete-downloads
  - ${USERDIR}/docker/shared:/shared
ports:
  - "6789:6789"
restart: always
environment:
  - PUID=${PUID}
  - PGID=${PGID}
  - TZ=${TZ}

Where the environment variables are the following:

PUID=1000
PGID=113
TZ="Europe/Berlin"
USERDIR="/home/myuser"

When I run the docker cmd line, I can successfully create any folder. The PUID is the root ID, and the PGID is the docker group. When I run the id command on the server (not within the docker), I got the good numbers.

But when Nzbget downloads a file and tries to create a folder I got the following error message:

Could not create directory /downloads/completed/Movies/MYMOVIE/_unpack: could not create directory /downloads/completed/Movies/MYMOVIE: Permission denied

Any idea where this can come from? I have no idea what configuration is missing to have it working :confused:

Thanks for your help!
L

Check the permissions
ls -al /home/myuser/Downloads and
ls -al /home/myuser/Downloads/completed

Ah! I think that’s it:

root@collection:/home/v# ls -al /home/v/Downloads/
total 36188
drwxr-xr-x 9 v    docker     4096 Aug 20 05:44 .
drwxr-xr-x 9 v    v          4096 Aug 19 19:42 ..
drwxr-xr-x 7 root root       4096 Aug 20 05:55 completed
drwxr-xr-x 2 root root       4096 Aug 18 22:29 incomplete
drwxr-xr-x 3 v    docker     4096 Aug 20 19:58 intermediate
drwxr-xr-x 2 v    docker     4096 Aug 20 19:58 nzb
-rw-r--r-- 1 v    docker 37012490 Aug 20 19:58 nzbget.log
drwxr-xr-x 2 v    docker     4096 Aug 20 18:41 plex_tmp
drwxr-xr-x 2 v    docker     4096 Aug 20 19:58 queue
drwxr-xr-x 2 v    docker     4096 Aug 20 19:58 tmp
root@collection:/home/v# ls -al /home/v/Downloads/completed/
total 28
drwxr-xr-x 7 root root   4096 Aug 20 05:55 .
drwxr-xr-x 9 v    docker 4096 Aug 20 05:44 ..
drwxr-xr-x 2 root root   4096 Aug 20 05:54 Movies
drwxr-xr-x 2 root root   4096 Aug 20 05:55 Music
drwxr-xr-x 2 root root   4096 Aug 20 05:55 Series
drwxr-xr-x 2 root root   4096 Aug 20 05:55 Software
drwxr-xr-x 2 root root   4096 Aug 20 05:54 test

should be docker the group, and not root right?

do the following
sudo chown -R 1100:113 /home/myuser/Downloads

1 Like

Correct with the following, small typo :slight_smile:

sudo chown -R 1000:113 /home/myuser/Downloads

Thanks for the quick help!

:smile: np …

1 Like