Business solution to host your own OpenVPN server with web management interface and bundled clients.
-
DaveTheRave
- OpenVpn Newbie
- Posts: 3
- Joined: Wed May 02, 2012 11:35 am
Post
by DaveTheRave » Wed May 02, 2012 11:47 am
Hi
I'm having an issue with the AS web service crashing after service start. I've tested on Ubuntu 10.04, 11.04, 11.10 and 12.04. Downloading openvpn-as-1.8.3-Ubuntu10.amd_64.deb and installing as normal using dpkg, install goes without error but the web service never responds. I've tried reconfiguring with different ports but the issue persists. I've used this exact method many times on this box and others and always worked fine until recently, anyone have a clue as to whats the cause?
Relevant section of log file is as follows:
Code: Select all
...
...
2012-05-02 07:29:06-0400 [-] WEB OUT: '2012-05-02 07:29:05-0400 [-] reactor class: twisted.internet.epollreactor.EPollReactor.'
2012-05-02 07:29:06-0400 [-] WEB OUT: '2012-05-02 07:29:06-0400 [-] pyovpn.web.webbase.MySiteBase starting on 943'
2012-05-02 07:29:06-0400 [-] WEB OUT: '2012-05-02 07:29:06-0400 [-] pyovpn.web.webbase.MySiteBase starting on 904'
2012-05-02 07:29:06-0400 [-] WEB OUT: '2012-05-02 07:29:06-0400 [-] pyovpn.web.webbase.MySiteBase starting on 905'
2012-05-02 07:29:06-0400 [-] WEB OUT: '2012-05-02 07:29:06-0400 [-] pyovpn.web.webbase.MySiteBase starting on 906'
2012-05-02 07:29:06-0400 [-] WEB OUT: '2012-05-02 07:29:06-0400 [-] twisted.web.server.Site starting on 907'
2012-05-02 07:29:06-0400 [-] WEB OUT: '2012-05-02 07:29:06-0400 [-] pyovpn.web.webbase.MySiteBase starting on 908'
2012-05-02 07:29:06-0400 [-] WEB OUT: '2012-05-02 07:29:06-0400 [-] pyovpn.web.webbase.MySiteBase starting on 909'
2012-05-02 07:29:06-0400 [-] WEB OUT: '2012-05-02 07:29:06-0400 [-] set uid/gid 1001/1001'
2012-05-02 07:29:06-0400 [-] WEB OUT: '2012-05-02 07:29:06-0400 [-] Web server running as UID 1001'
2012-05-02 07:29:06-0400 [-] LOG OUT: 'STARTED'
2012-05-02 07:29:06-0400 [-] License Info {'concurrent_connections': 2}
2012-05-02 07:29:06-0400 [-] <class 'pyovpn.omi.omiauth.OMIServerAuthFactory'> starting on "'/usr/local/openvpn_as/etc/sock/omisock-zaGQTNEES0fO'"
2012-05-02 07:29:06-0400 [-] OVPN 0 OUT: 'Wed May 2 07:29:06 2012 OpenVPN 2.1.8 x86_64-unknown-linux-gnu [SSL] [LZO2] [EPOLL] built on Jul 27 2011'
2012-05-02 07:29:06-0400 [-] OVPN 0 OUT: 'Wed May 2 07:29:06 2012 MANAGEMENT: client_uid=0'
2012-05-02 07:29:06-0400 [-] OVPN 0 OUT: 'Wed May 2 07:29:06 2012 MANAGEMENT: Connected to management server at /usr/local/openvpn_as/etc/sock/omisock-zaGQTNEES0fO'
2012-05-02 07:29:06-0400 [-] (Port None Closed)
2012-05-02 07:29:06-0400 [-] OVPN 0 OUT: 'Wed May 2 07:29:06 2012 MANAGEMENT: CMD 'state on''
2012-05-02 07:29:06-0400 [-] OVPN 0 OUT: 'Wed May 2 07:29:06 2012 MANAGEMENT: CMD 'echo on''
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:06-0400 [-] Server agent has died, web server shutting down'
2012-05-02 07:29:07-0400 [-] OVPN 0 OUT: 'Wed May 2 07:29:07 2012 MANAGEMENT: CMD 'bytecount 300''
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:07-0400 [-] (Port 909 Closed)'
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:07-0400 [-] (Port 908 Closed)'
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:07-0400 [-] (Port 907 Closed)'
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:07-0400 [-] (Port 906 Closed)'
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:07-0400 [-] (Port 905 Closed)'
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:07-0400 [-] (Port 904 Closed)'
2012-05-02 07:29:07-0400 [-] OVPN 0 OUT: 'Wed May 2 07:29:07 2012 MANAGEMENT: CMD 'env-filter 1''
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:07-0400 [-] (Port 943 Closed)'
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:07-0400 [-] Main loop terminated.'
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:07-0400 [-] Warning: No permission to delete pid file'
2012-05-02 07:29:07-0400 [-] WEB OUT: '2012-05-02 07:29:07-0400 [-] Server Shut Down.'
2012-05-02 07:29:07-0400 [-] OVPN 0 OUT: 'Wed May 2 07:29:07 2012 MANAGEMENT: CMD 'hold off''
...
...
Any help you guys could give me in solving this would be greatly appreciated.
Cheers
Dave
-
DaveTheRave
- OpenVpn Newbie
- Posts: 3
- Joined: Wed May 02, 2012 11:35 am
Post
by DaveTheRave » Thu May 03, 2012 12:31 pm
Another server, another OS (Debian Squeeze x64) same crash:
Code: Select all
2012-05-03 14:06:11+0200 [-] twisted.web.server.Site starting on "'/usr/local/openvpn_as/etc/sock/sagent'"
2012-05-03 14:06:11+0200 [-] twisted.web.server.Site starting on "'/usr/local/openvpn_as/etc/sock/sagent.localroot'"
2012-05-03 14:06:11+0200 [-] twisted.web.server.Site starting on "'/usr/local/openvpn_as/etc/sock/sagent.api'"
2012-05-03 14:06:12+0200 [-] PortShareOrigin: using shared dir: '/dev/shm/openvpn_as/pso'
2012-05-03 14:06:15+0200 [-] WEB OUT: 'WSERV admin+client+xmlrpc EXTERNAL IP'
2012-05-03 14:06:15+0200 [-] WEB OUT: 'WSERV admin+client 127.0.0.1 904'
2012-05-03 14:06:15+0200 [-] WEB OUT: 'WSERV admin 127.0.0.1 905'
2012-05-03 14:06:15+0200 [-] WEB OUT: 'WSERV client 127.0.0.1 906'
2012-05-03 14:06:15+0200 [-] WEB OUT: 'WSERV xmlrpc 127.0.0.1 907'
2012-05-03 14:06:15+0200 [-] WEB OUT: 'WSERV admin+client+xmlrpc 127.0.0.1 908'
2012-05-03 14:06:15+0200 [-] WEB OUT: 'WSERV client+xmlrpc 127.0.0.1 909'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] Log opened.'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] twistd 9.0.0 (/usr/local/openvpn_as/bin/python 2.6.6) starting up.'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] reactor class: twisted.internet.epollreactor.EPollReactor.'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] pyovpn.web.webbase.MySiteBase starting on 943'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] pyovpn.web.webbase.MySiteBase starting on 904'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] pyovpn.web.webbase.MySiteBase starting on 905'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] pyovpn.web.webbase.MySiteBase starting on 906'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] twisted.web.server.Site starting on 907'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] pyovpn.web.webbase.MySiteBase starting on 908'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] pyovpn.web.webbase.MySiteBase starting on 909'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] set uid/gid 1002/1002'
2012-05-03 14:06:15+0200 [-] WEB OUT: '2012-05-03 14:06:15+0200 [-] Web server running as UID 1002'
2012-05-03 14:06:15+0200 [-] LOG OUT: 'STARTED'
2012-05-03 14:06:16+0200 [-] License Info {'concurrent_connections': 2}
2012-05-03 14:06:16+0200 [-] <class 'pyovpn.omi.omiauth.OMIServerAuthFactory'> starting on "'/usr/local/openvpn_as/etc/sock/omisock-rfvpW2cErn37'"
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] Server agent has died, web server shutting down'
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] (Port 909 Closed)'
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] (Port 908 Closed)'
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] (Port 907 Closed)'
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] (Port 906 Closed)'
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] (Port 905 Closed)'
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] (Port 904 Closed)'
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] (Port 943 Closed)'
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] Main loop terminated.'
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] Warning: No permission to delete pid file'
2012-05-03 14:06:16+0200 [-] WEB OUT: '2012-05-03 14:06:16+0200 [-] Server Shut Down.'
2012-05-03 14:06:16+0200 [-] OVPN 0 OUT: 'Thu May 3 14:06:16 2012 OpenVPN 2.1.8 x86_64-unknown-linux-gnu [SSL] [LZO2] [EPOLL] built on Jul 27 2011'
2012-05-03 14:06:16+0200 [-] OVPN 0 OUT: 'Thu May 3 14:06:16 2012 MANAGEMENT: client_uid=0'
2012-05-03 14:06:16+0200 [-] (Port None Closed)
-
DaveTheRave
- OpenVpn Newbie
- Posts: 3
- Joined: Wed May 02, 2012 11:35 am
Post
by DaveTheRave » Fri May 11, 2012 1:48 pm
Only fair to update this incase others have similar issues.
I was at fault; using static kernel with grsec built in was causing the web service to crash. Reinstall of dynamic kernel (3.0.0-19) solved the problem.