Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559682 - net-misc/networkmanager-openvpn-1.0.6 breaks openvpn connection: 'User 'nm-openvpn' not found, check NM_OPENVPN_USER.'.
Summary: net-misc/networkmanager-openvpn-1.0.6 breaks openvpn connection: 'User 'nm-op...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Steev Klimaszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-05 15:58 UTC by Markos Chandras (RETIRED)
Modified: 2015-09-05 19:41 UTC (History)
2 users (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 Markos Chandras (RETIRED) gentoo-dev 2015-09-05 15:58:32 UTC
~# systemctl status Networkmanager

Sep 05 16:54:05 helix NetworkManager[468]: <info>  VPN service 'openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 5166
Sep 05 16:54:05 helix NetworkManager[468]: <info>  VPN service 'openvpn' appeared; activating connections
Sep 05 16:54:05 helix NetworkManager[468]: <info>  VPN plugin state changed: starting (3)
Sep 05 16:54:05 helix NetworkManager[468]: <info>  VPN connection 'Foobar' (Connect) reply received.
Sep 05 16:54:05 helix NetworkManager[468]: <warn>  VPN connection 'Foobar' failed to connect: 'User 'nm-openvpn' not found, check NM_OPENVPN_USER.'.
Sep 05 16:54:05 helix NetworkManager[468]: <warn>  error disconnecting VPN: Could not process the request because no VPN connection was active.
Sep 05 16:54:25 helix NetworkManager[468]: <info>  VPN service 'openvpn' disappeared

1.0.2 works fine

Various reports on inet as well

https://bbs.archlinux.org/viewtopic.php?id=201647
https://bugs.archlinux.org/task/46124
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2015-09-05 16:00:27 UTC
Solution posted on archlinux works fine

groupadd -r nm-openvpn
useradd -r -g nm-openvpn -d / -s /sbin/nologin -c "Default user for running openvpn spawned by NetworkManager" nm-openvpn
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2015-09-05 16:19:06 UTC
Well, i guess that's a bug in the networkmanager-openvpn package instead of networkmanager itself.
Comment 3 Pacho Ramos gentoo-dev 2015-09-05 17:52:10 UTC
Does running in ebuild:
enewgroup nm-openvpn
enewuser -1 nm-openvpn nm-openvpn

or do we need to use other options for the helpers? (if you find the invocations that work for you, feel dree to go ahead and commit with a new revision)

Thanks
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2015-09-05 19:24:07 UTC
by the looks of the eclass, seems like:

enewuser nm-openvpn -1 -1 -1 nm-openvpn

would probably work