Community,
Twice now we have had openvpn go down on a CentOS 6.5 host. It looks like a potentially thorny problem to debug.
The problem seems to coincide with a scheduled CRL verification process.
Here is what that process and the subsequent crash look like (some [info] removed):
Jan 22 06:27:29 [vpnserver] openvpn[1532]: [User]/[Host]:55835 CRL CHECK OK: C=[...], ST=[...], L=[...], O=[...], OU=[...], CN=[...], emailAddress=[...]
Jan 22 06:27:29 [vpnserver] openvpn[1532]: [User]/[Host]:55835 VERIFY OK: depth=1, C=[...], ST=[...], L=[...], O=[...], OU=[...], CN=[...], emailAddress=[...]
Jan 22 06:27:29 [vpnserver] openvpn[1532]: [User]/[Host]:55835 CRL CHECK OK: C=[...], ST=[...], O=[...], OU=[...], CN=[...], emailAddress=[...]
Jan 22 06:27:29 [vpnserver] openvpn[1532]: [User]/[Host]:55835 VERIFY OK: depth=0, C=[...], ST=[...], O=[...], OU=[...], CN=[...], emailAddress=[...]
Jan 22 06:27:29 [vpnserver] abrt[23112]: File '/usr/sbin/openvpn' seems to be deleted
Jan 22 06:27:29 [vpnserver] abrtd: Directory 'ccpp-2014-01-22-06:27:29-1524' creation detected
Jan 22 06:27:29 [vpnserver] abrt[23112]: Saved core dump of pid 1524 (/usr/sbin/openvpn) to /var/spool/abrt/ccpp-2014-01-22-06:27:29-1524 (1691648 bytes)
Jan 22 06:27:30 [vpnserver] abrtd: Package 'openvpn' isn't signed with proper key
Jan 22 06:27:30 [vpnserver] abrtd: 'post-create' on '/var/spool/abrt/ccpp-2014-01-22-06:27:29-1524' exited with 1
Jan 22 06:27:30 [vpnserver] abrtd: Deleting problem directory '/var/spool/abrt/ccpp-2014-01-22-06:27:29-1524'
Sad that the core dump isn't preserved by abrtd...I might be able to figure out a way to retain it.
Oddly, attempts to restart openvpn after this also fail:
Jan 22 11:17:57 [vpnserver] openvpn[23748]: OpenVPN 2.3.2 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Sep 12 2013
Jan 22 11:17:57 [vpnserver] openvpn[23748]: PLUGIN_INIT: POST /usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so '[/usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so] [login]' intercepted=PLUGIN_AUTH_USER_PASS_VERIFY
Jan 22 11:17:58 [vpnserver] openvpn[23748]: Diffie-Hellman initialized with 2048 bit key
Jan 22 11:17:58 [vpnserver] openvpn[23748]: Socket Buffers: R=[124928->131072] S=[124928->131072]
Jan 22 11:17:58 [vpnserver] openvpn[23748]: TCP/UDP: Socket bind failed on local address [undef]: Address already in use
Jan 22 11:17:58 [vpnserver] openvpn[23748]: Exiting due to fatal error
And rebooting the server then has an issue as well: the shutdown hangs after "iptables: Unloading modules: " is displayed. I can reboot normally when openvpn doesn't have this issue.
After resetting the system, it reboots and everything works fine again.
For now I'm monitoring the port to detect the failure so I can bring it back up again quickly...but a way to resolve the problem would be very valuable.