Problem with permissions when running/creating NZBGet container (newbie)

  • Hello!
    I've just upgraded from a raspberry pi 3 to a 4, and from omv 3 (or maybe 4) to 5. On my last setup I had Docker working with some containers, but I cannot get it to work now, using the same settings as before.
    So, I installed Docker and Portainer from the OMV-Extras GUI, then I pasted the docker-compose section from https://hub.docker.com/r/linuxserver/nzbget/ under Add stack in Portainer and replaced PUID, PGID with the values returned by id docker (uid=1001(docker) gid=100(users) groups=100(users),992(docker)).
    The volumes I set as - /sharedfolders/Docker:/config and - /sharedfolders/Downloads:/downloads.
    Lastly I pressed Deploy stack.
    The log for nzbget reads:
    "
    [s6-init] making user provided files available at /var/run/s6/etc...exited 0.



    [s6-init] ensuring user provided files have correct perms...exited 0.



    [fix-attrs.d] applying ownership & permissions fixes...



    [fix-attrs.d] done.



    [cont-init.d] executing container initialization scripts...



    [cont-init.d] 01-envfile: executing...



    [cont-init.d] 01-envfile: exited 0.



    [cont-init.d] 10-adduser: executing...





    -------------------------------------



    _ ()



    | | ___ _ __



    | | / __| | | / \



    | | \__ \ | | | () |



    |_| |___/ |_| \__/







    Brought to you by linuxserver.io



    We gratefully accept donations at:



    https://www.linuxserver.io/donate/



    -------------------------------------



    GID/UID



    -------------------------------------





    User uid: 1001



    User gid: 100



    -------------------------------------





    [cont-init.d] 10-adduser: exited 0.



    [cont-init.d] 30-config: executing...



    [cont-init.d] 30-config: exited 0.



    [cont-init.d] 99-custom-files: executing...



    [custom-init] no custom files found exiting...



    [cont-init.d] 99-custom-files: exited 0.



    [cont-init.d] done.



    [services.d] starting services



    [services.d] done.



    [INFO] nzbget 21.0 server-mode
    "


    Sorry, couldn't figure out how to make that look better...
    Anyone with the patience to tell me where and how to look for where I did bad?

  • Stop using a /sharedfolders path in anything having to do with dockers. Use the absolute fully qualified filesystem path instead.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Also, I've made sure that the user "docker" (that I created for this) has full access to and is the owner of both folders and subfolders.

    How did you determine this?


    Post ls -al results.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Here it is:


    root@raspberrypi:/srv/dev-disk-by-label-Hubbn/Docker# ls -al
    total 2408
    drwxrwx--x+ 3 docker users 4096 Jan 8 18:13 .
    drwxrwxrwx 13 root root 4096 Oct 3 22:17 ..
    -rw-rw----+ 1 docker users 307 Jan 8 15:05 config.xml
    drwxrwx--x+ 2 docker users 4096 Jan 8 15:05 logs
    -rw-r-----+ 1 docker users 32768 Jan 8 18:13 logs.db
    -rw-r-----+ 1 docker users 299008 Jan 8 16:58 nzbdrone.db
    -rw-r-----+ 1 docker users 32768 Jan 8 18:38 nzbdrone.db-shm
    -rw-r-----+ 1 docker users 1998232 Jan 8 18:37 nzbdrone.db-wal
    -rw-rw----+ 1 docker users 3 Jan 8 15:05 nzbdrone.pid
    -rw-r-----+ 1 docker users 66898 Jan 8 14:34 nzbget.conf

  • And by "made sure" I mean that I went to shared folders in the gui, and then used "Privileges" to put a check mark in the box for Read/Write for the user Docker, and "ACL" to check the Read/Write box for docker both in user and system accounts and set owner to docker under extra options and applied permissions to files and subfolders.

  • You need to determine the permissions of the directories pointed to by /config and /downloads. Post ls -al results.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • /config points to /srv/dev-disk-by-label-Hubbn/Docker. Output of ls -al in that folder is in post number 6 above.


    /downloads points to /srv/dev-disk-by-label-Hubbn/Downloads. Output of ls -al in that folder follows here:


    root@raspberrypi:/srv/dev-disk-by-label-Hubbn/Downloads# ls -al
    total 1770908
    drwxrwsrwx+ 9 docker users 4096 Jan 8 19:34 .
    drwxrwxrwx 14 root root 4096 Jan 8 19:24 ..
    drwxrwsrwx+ 3 docker users 12288 Jul 11 2017 SAB
    drwxrwsrwx+ 3 docker users 4096 May 13 2018 docker
    drwxrwsrwx+ 3 docker users 4096 May 10 2018 home
    drwxrwsrwx+ 28 docker users 4096 Dec 2 23:12 intermediate
    drwxrwsrwx+ 2 docker users 32768 Dec 30 20:02 nzb
    -rwxrwxrwx+ 1 docker users 1812847329 Jan 8 19:25 nzbget.log
    drwxrwsrwx+ 2 docker users 266240 Dec 30 20:02 queue
    drwxrwsrwx+ 2 docker users 4096 Dec 2 22:59 tmp


    Please tell me if I'm using ls -al command incorrectly!


    I just realized I used both of these folders in the old installation, I'll just try once with clean newly created folders.

  • I'm not interested in the permissions of the files IN the folders. I am interested in the permissions ON the folders themselves.


    You need to be one directory above the folder of interest when you run ls -al.


    So.......


    cd /srv/dev-disk-by-label-Hubbn


    ls -al

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Oh, sorry, my bad!


    Here it is:


    root@raspberrypi:/srv/dev-disk-by-label-Hubbn# ls -al
    total 74484
    drwxrwxrwx 15 root root 4096 Jan 8 19:38 .
    drwxr-xr-x 7 root root 4096 Dec 17 20:38 ..
    drwxrwsrw-+ 46 root users 12288 Feb 7 2017 Barnfilm
    drwx------ 4 root root 4096 Apr 25 2016 'Bilder som ingen någonsin kommer orka rensa i'
    -rw-rw-rw- 1 root root 15724454 Oct 9 2016 CPbackup
    drwxrwx--x+ 3 docker users 4096 Jan 8 19:13 Docker
    drwxrwsr-x+ 2 docker users 4096 Jan 8 19:41 Docker2
    drwxrwsrwx+ 9 docker users 4096 Jan 8 19:34 Downloads
    drwxrwsr-x+ 9 root users 4096 Sep 18 2017 Emulation
    drwxrws---+ 229 root users 16384 Jun 16 2018 Musik
    drwxrws---+ 3 root users 4096 Oct 14 2016 Musikfilm
    drwxrwsr-x+ 5 docker users 4096 Jan 8 19:25 NZBGet
    drwx--S--- 6 root users 4096 Dec 22 2011 Noter
    -rw-rw-rw- 1 root root 2467657 Jul 9 2016 SABbackup
    drwxrws---+ 11 root users 4096 Jan 8 19:34 Safe
    drwxrwsrw-+ 27 root users 4096 Nov 16 18:42 TV
    -rw------- 1 root root 57921087 Jul 12 2013 'Video 2013-07-09 12 30 12.mov'
    -rw------- 1 root root 9216 Dec 27 19:22 aquota.group
    -rw------- 1 root root 7168 Dec 27 19:22 aquota.user
    drwx------ 2 root root 16384 Apr 26 2016 lost+found

  • The permissions on the two folders of interest look OK. So exactly what isn't working?


    In the NZBGet web interface, Settings | Paths what is in the MainDir box?

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Oh, no, I'm too stupid...
    I was trying to access the web interface at the wrong ip-adress, and when that didn't work I checked the logs and thought that the first line ([s6-init] making user provided files available at /var/run/s6/etc...exited 0.) was the last line and an error message about permissions.
    Anyway, it's been working all this time, and I'm very grateful for the time you wasted on me!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!