binhex / arch-rtorrentvpn

Docker build script for Arch Linux base with ruTorrent, rTorrent, autodl-irssi, Privoxy and OpenVPN
GNU General Public License v3.0
239 stars 36 forks source link

cat: /tmp/getdns: Permission denied #126

Closed Altycoder closed 4 years ago

Altycoder commented 4 years ago

Trying to run this via docker-compose on top of an up to date Arch host, here's the relevant section of my compose file:

  torrentserver:
    container_name: torrentserver
    image: binhex/arch-rtorrentvpn
    restart: always
    ports:
      - 9080:9080
      - 9443:9443
      - 8118:8118
    cap_add:
      - NET_ADMIN
    volumes:
      - /<redacted>:/config
      - /<redacted>:/data
      - /etc/localtime:/etc/localtime:ro
    environment:
      - VPN_ENABLED=yes 
      - VPN_USER=<redacted>
      - VPN_PASS=<redacted>
      - VPN_PROV=pia
      - STRICT_PORT_FORWARD=yes
      - ENABLE_PRIVOXY=yes
      - ENABLE_AUTODL_IRSSI=yes
      - ENABLE_RPC2=yes
      - ENABLE_RPC2_AUTH=yes
      - ENABLE_WEBUI_AUTH=yes
      - RPC2_USER=admin
      - RPC2_PASS=<redacted>
      - WEBUI_USER=admin
      - WEBUI_PASS=<redacted>
      - LAN_NETWORK=192.168.1.0/24
      - NAME_SERVERS=1.1.1.1,1.0.0.1,209.222.18.222,209.222.18.218
      - DEBUG=false
      - PHP_TZ=Europe/London
      - UMASK=777
      - PUID=1000
      - PGID=1000

And in the logs I get an infinite loop of:

2019-11-07 14:49:02,400 DEBG 'watchdog-script' stderr output:
cat: /tmp/getdns: Permission denied

I am using PIA France server - any help with this please?

Altycoder commented 4 years ago

Ha, seemed to have solved it by reverting the UMASK, PUID and PGID all to 0 (I would prefer UMASK to be 777 so that Kodi and Plex users can delete stuff so I will try that as well)

binhex commented 4 years ago

a umask of 777 = chmod 000, remember a umask is the opposite of chmod, if you want it to be rwx for owner, group and everyone then set it to 000

Altycoder commented 4 years ago

Ok, good point thanks