Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 619752

Summary: net-vpn/openvpn-2.4.2 does not start
Product: Gentoo Linux Reporter: lou <whitehatcheck>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description lou 2017-05-26 14:58:46 UTC
openvpn-2.4.2 does not start for me. 

[ebuild   R    ] net-vpn/openvpn-2.4.2::gentoo  USE="examples lzo pam plugins ssl -down-root -inotify -iproute2 (-libressl) -lz4 -mbedtls -pkcs11 (-polarssl) (-selinux) -static -systemd {-test}" 0 KiB

When trying to start...

/etc/init.d/openvpn start
 * Caching service dependencies ...                                                                                                   [ ok ]
 * Starting openvpn ...
 * start-stop-daemon: failed to start `/usr/sbin/openvpn'
 * Check your logs to see why startup failed                                                                                          [ !! ]
 * ERROR: openvpn failed to start

Nothing in my logs. Rolling back to openvpn-2.3.15, I can again start the service.



Reproducible: Always

Steps to Reproduce:
1.Upgrade to openvpn-2.4.2
2.Restart service
3.Service does not start
Actual Results:  
 * ERROR: openvpn failed to start

Nothing in logs indicating what is wrong.

Expected Results:  
Service should start
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2017-05-26 15:36:31 UTC
If you run openvpn by hand, what happens?

# /usr/sbin/openvpn --config /etc/openvpn/openvpn.conf
Comment 2 lou 2017-05-26 16:33:54 UTC
/usr/sbin/openvpn --config /etc/openvpn/openvpn.conf
Fri May 26 10:25:06 2017 us=442067 PLUGIN_INIT: could not load plugin shared object /usr/lib/openvpn/openvpn-plugin-auth-pam.so: /usr/lib/openvpn/openvpn-plugin-auth-pam.so: cannot open shared object file: No such file or directory
Fri May 26 10:25:06 2017 us=442395 Exiting due to fatal error

Looks like the location of openvpn-plugin-auth-pam.so was moved with this version. Thanks for getting me in the right direction. Had to update openvpn.conf to use

plugin /usr/lib/openvpn/plugins/openvpn-plugin-auth-pam.so ovpn

instead of 

plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so ovpn

Service starts now.

Thanks!
Comment 3 Jonas Stein gentoo-dev 2017-05-27 17:06:48 UTC
Nice, that it works now. Thank you for the report.