Hi
I wanted to try out openvpn-as and I pulled the latest image from LinuxServer’s docker repo.
I used the following command to start it up.
sudo docker create --name=openvpn-as
–restart=always
-v /home/docker/openvpn-as/config:/config
-e INTERFACE=eth0
-e PGID=0 -e PUID=0
-e TZ=Europe/London
–net=host --privileged
linuxserver/openvpn-as
sudo docker start openvpn-as
While using it on Ubuntu 18, I get the error Connection refused on the web UI.
While using it on Centos 7, I get the error Connection Timed Out on the web UI.
When I went in for logs, I get the following error because of which server couldn’t start.
server init= (256, 'Failed to connect to bus: No such file or directory')
Error: Could not execute server start.
Hi
I used the sudoer user account, which is the only other account on my machine other than root with
uid : 1000
gid : 1000
as displayed by ‘id’ command.
Still, web interface shows connection timed out on the ip.
on 943 port, nothing shows up.
Hello
I disabled the firewall and tried again. Now, iptables isn’t working as well inside.
Interesting Observation I made was after going into the python scripts being called.
try:
if os.stat(’/etc/systemd/system/openvpnas.service’):
INIT = “systemctl start openvpnas”
except OSError:
INIT = “/etc/init.d/openvpnas start”
retv = commands.getstatusoutput( INIT )
if DEBUG: print “server init=”, retv
if retv[0] != 0:
print “Error: Could not execute server start.”
sys.exit(1)
I see this code, and found that it’s calling systemctl. I tried to call it but it threw me the following error
Failed to connect to bus: No such file or directory
Also, going to the except, there’s no openvpnas file in /etc/init.d
Linux VM 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
j0nnymoe@VM:~$ docker -v
Docker version 18.06.1-ce, build e68fc7a
j0nnymoe@VM:~$