Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619752 - net-vpn/openvpn-2.4.2 does not start
Summary: net-vpn/openvpn-2.4.2 does not start
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-26 14:58 UTC by lou
Modified: 2017-05-27 17:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.