admin web gui will not start

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
herda05
OpenVpn Newbie
Posts: 3
Joined: Wed Sep 07, 2016 4:27 pm

admin web gui will not start

Post by herda05 » Wed Sep 07, 2016 4:31 pm

I configured the web admin to only listen on the eth0 address, but upon restart the web service fails to start. I ran sacli and recieved the following error message

Code: Select all

"process started and then immediately exited: 2016-09-07 07:04:24+0000 [-] twisted.internet.error.CannotListenError: Couldn't listen on 0.0.0.0:943: [Errno 98] Address already in use.
The output of netstat shows that nothing is listening on the port:

Code: Select all

openvpnas@openvpnas2:/etc$ sudo netstat -pntua
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2773/sshd
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      17363/openvpn-opens
tcp        0    332 10.0.1.48:22            63.224.252.123:62163    ESTABLISHED 2941/sshd: openvpna
tcp6       0      0 :::22                   :::*                    LISTEN      2773/sshd
udp        0      0 0.0.0.0:68              0.0.0.0:*                           2245/dhclient
udp        0      0 172.27.232.1:123        0.0.0.0:*                           2521/ntpd
udp        0      0 172.27.224.1:123        0.0.0.0:*                           2521/ntpd
udp        0      0 10.0.1.48:123           0.0.0.0:*                           2521/ntpd
udp        0      0 127.0.0.1:123           0.0.0.0:*                           2521/ntpd
udp        0      0 0.0.0.0:123             0.0.0.0:*                           2521/ntpd
udp        0      0 0.0.0.0:1194            0.0.0.0:*                           17387/openvpn-opens
udp6       0      0 fe80::bce1:b0ff:fe3:123 :::*                                2521/ntpd
udp6       0      0 fe80::9c:e9ff:feee::123 :::*                                2521/ntpd
udp6       0      0 ::1:123                 :::*                                2521/ntpd
udp6       0      0 :::123                  :::*                                2521/ntpd
Was wondering if someone knew what configuration file has the address for the web service to listen on?

thanks,
Dan H.

herda05
OpenVpn Newbie
Posts: 3
Joined: Wed Sep 07, 2016 4:27 pm

[SOLVED] admin web gui will not start

Post by herda05 » Wed Sep 07, 2016 7:08 pm

Well, I can say for sure that the changing the config.json had no effect on the error, or what appears to be the configuraiton. The web service appeared to still want to start on 0.0.0.0:943 and although I could find nothing conflicting, I couldn't locate where the setting was that the web service actually read. Maybe in the database somewhere?

So, I solved the problem by simply rerunning ovpn-init and specifying it through that dialogue. Now it works as desired. The Admin GUI is only accessible inside the network and the client is exposed externally.

I had to re-download my profile, but after 8 hours of banging my head against the wall, this was the better option.

Post Reply