Hi. I keep getting an error No OpenVPN config file located in /config/openvpn/ but they are there. I'm running on Ubuntu 18.04 running Docker CE 19.03.12. I installed with these options:
docker run -d \
--cap-add=NET_ADMIN \
-p 8112:8112 \
-p 8118:8118 \
-p 58846:58846 \
-p 58946:58946 \
--name=delugevpn \
-v /apps/docker/deluge/data:/data \
-v /apps/docker/deluge/config:/config \
-v /etc/localtime:/etc/localtime:ro \
-e VPN_ENABLED=yes \
-e VPN_USER=<my_user> \
-e VPN_PASS=<my_pass> \
-e VPN_PROV=pia \
-e STRICT_PORT_FORWARD=yes \
-e ENABLE_PRIVOXY=yes \
-e LAN_NETWORK=192.168.1.0/24 \
-e NAME_SERVERS=209.222.18.222,84.200.69.80,37.235.1.174,1.1.1.1,209.222.18.218,37.235.1.177,84.200.70.40,1.0.0.1 \
-e DELUGE_DAEMON_LOG_LEVEL=info \
-e DELUGE_WEB_LOG_LEVEL=info \
-e ADDITIONAL_PORTS=1234 \
-e DEBUG=false \
-e UMASK=000 \
-e PUID=0 \
-e PGID=0 \
binhex/arch-delugevpn
When I start the container I get:
2020-07-15 21:44:00.972750 [info] System information Linux 91cc90260a59 5.4.44-2-pve #1 SMP PVE 5.4.44-2 (Wed, 01 Jul 2020 16:37:57 +0200) x86_64 GNU/Linux
2020-07-15 21:44:01.016926 [info] OS_ARCH defined as 'x86-64'
2020-07-15 21:44:01.050212 [info] PUID defined as '0'
2020-07-15 21:44:01.084879 [info] PGID defined as '0'
2020-07-15 21:44:01.119972 [info] UMASK defined as '000'
2020-07-15 21:44:01.153461 [info] Permissions already set for volume mappings
2020-07-15 21:44:01.189918 [info] DELUGE_DAEMON_LOG_LEVEL defined as 'info'
2020-07-15 21:44:01.221706 [info] DELUGE_WEB_LOG_LEVEL defined as 'info'
2020-07-15 21:44:01.253360 [info] VPN_ENABLED defined as 'yes'
2020-07-15 21:44:01.288049 [crit] No OpenVPN config file located in /config/openvpn/ (ovpn extension), please download from your VPN provider and then restart this container, exiting...
The /config/openvpn folder did not exist so I started the container again, per the instructions, to try to get it to auto create but it didn't. So I manually created it and loaded the crt, pem and ovpn files from PIA in there.
tom@vpnserver:~$ ls -al /config/openvpn
total 23
drwxrwxrwx 2 root root 5 Jul 15 21:23 .
drwxrwxrwx 3 root root 3 Jul 15 21:03 ..
-rwxrwxr-x 1 tom tom 3157 Jul 15 21:23 'US West.ovpn'
-rwxrwxrwx 1 root root 2025 Jul 15 21:14 ca.rsa.2048.crt
-rwxrwxrwx 1 root root 869 Jul 15 21:14 crl.rsa.2048.pem
I tried changing the name of the ovpn file to remove spaces but that didn't make any difference so I changed it back to the PIA name. I set the whole folder structure to 777 to rule out permissions.