all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Openvpn and NetworkManager
@ 2017-12-23 23:28 Johannes Laute
  2017-12-24  9:02 ` ng0
  0 siblings, 1 reply; 7+ messages in thread
From: Johannes Laute @ 2017-12-23 23:28 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]

Hi,

I'm trying to get openvpn and the NetworkManager plugin to work together
but I am having some troubles.

I started with installing both packages, but the openvpn plugin specific
menu options did not show up in the connection menu.

I read the documentation and noticed the "vpn-plugins" option in the
network-manager service declaration, so I added the network-manager-openvpn
service like this:

(modify-services %desktop-services
         (network-manager-service-type config =>
                                       (network-manager-configuration
                                       (inherit config)
                                       (vpn-plugins (list
network-manager-openvpn)))))))

After that, it now shows up and I can import openvpn connections (I noticed
it added a NM_VPN_PLUGIN_DIR environment variable) but I cannot connect.
When I click connect simply nothing happens, and the following log is
emitted to /var/log/debug

Dec 23 23:09:49 localhost NetworkManager[345]: <info>  [1514070589.5044]
audit: op="connection-activate" uuid="36c09127-ffc0-4d46-9547-06e0ea214a15"
name="mullvad_de" pid=470 uid=1000 result="fail" reason="The VPN service
'org.freedesktop.NetworkManager.openvpn' was not installed.

I researched the error message and it seems common when people don't have
plugin installed (obviously), but I also found this:
https://github.com/NixOS/nixpkgs/issues/3539 which might be related.

I'm pretty new to guix and scheme so any help would be greatly appreciated

johannes

[-- Attachment #2: Type: text/html, Size: 1960 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Openvpn and NetworkManager
  2017-12-23 23:28 Openvpn and NetworkManager Johannes Laute
@ 2017-12-24  9:02 ` ng0
  2017-12-24 23:03   ` Johannes Laute
  0 siblings, 1 reply; 7+ messages in thread
From: ng0 @ 2017-12-24  9:02 UTC (permalink / raw)
  To: Johannes Laute; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 2273 bytes --]

Johannes Laute transcribed 4.2K bytes:
> Hi,
> 
> I'm trying to get openvpn and the NetworkManager plugin to work together
> but I am having some troubles.
> 
> I started with installing both packages, but the openvpn plugin specific
> menu options did not show up in the connection menu.
> 
> I read the documentation and noticed the "vpn-plugins" option in the
> network-manager service declaration, so I added the network-manager-openvpn
> service like this:
> 
> (modify-services %desktop-services
>          (network-manager-service-type config =>
>                                        (network-manager-configuration
>                                        (inherit config)
>                                        (vpn-plugins (list
> network-manager-openvpn)))))))
> 
> After that, it now shows up and I can import openvpn connections (I noticed
> it added a NM_VPN_PLUGIN_DIR environment variable) but I cannot connect.

Just to be sure: have you only noticed this variable or have you sourced
the new .guix-profile/etc/profile where it should be included?

> When I click connect simply nothing happens, and the following log is
> emitted to /var/log/debug
> 
> Dec 23 23:09:49 localhost NetworkManager[345]: <info>  [1514070589.5044]
> audit: op="connection-activate" uuid="36c09127-ffc0-4d46-9547-06e0ea214a15"
> name="mullvad_de" pid=470 uid=1000 result="fail" reason="The VPN service
> 'org.freedesktop.NetworkManager.openvpn' was not installed.

I have opened a bug about this a while ago (OpenVPN and the (not yet merged?)
VPNC plugins are affected. It's annoying prevents me from accessing my university
intranet via VPN for some things from home.
Maybe it was just an email so far, I can not find a bug ticket for this.

> I researched the error message and it seems common when people don't have
> plugin installed (obviously), but I also found this:
> https://github.com/NixOS/nixpkgs/issues/3539 which might be related.

Thanks for the additional issue, I didn't look into Nix so far.

> I'm pretty new to guix and scheme so any help would be greatly appreciated
> 
> johannes

-- 
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://c.n0.is/ng0_pubkeys/tree/keys
  WWW: https://n0.is

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Openvpn and NetworkManager
  2017-12-24  9:02 ` ng0
@ 2017-12-24 23:03   ` Johannes Laute
  2018-01-08 14:43     ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Johannes Laute @ 2017-12-24 23:03 UTC (permalink / raw)
  To: Johannes Laute, help-guix

[-- Attachment #1: Type: text/plain, Size: 2711 bytes --]

Thanks for the answer!

On 24 December 2017 at 09:02, ng0 <ng0@n0.is> wrote:

> Johannes Laute transcribed 4.2K bytes:
> > Hi,
> >
> > I'm trying to get openvpn and the NetworkManager plugin to work together
> > but I am having some troubles.
> >
> > I started with installing both packages, but the openvpn plugin specific
> > menu options did not show up in the connection menu.
> >
> > I read the documentation and noticed the "vpn-plugins" option in the
> > network-manager service declaration, so I added the
> network-manager-openvpn
> > service like this:
> >
> > (modify-services %desktop-services
> >          (network-manager-service-type config =>
> >                                        (network-manager-configuration
> >                                        (inherit config)
> >                                        (vpn-plugins (list
> > network-manager-openvpn)))))))
> >
> > After that, it now shows up and I can import openvpn connections (I
> noticed
> > it added a NM_VPN_PLUGIN_DIR environment variable) but I cannot connect.
>
> Just to be sure: have you only noticed this variable or have you sourced
> the new .guix-profile/etc/profile where it should be included?
>

Not 100% sure what you mean but the following is in the output of "env" :
NM_VPN_PLUGIN_DIR=/gnu/store/1k98ck98lirfw9974qvz84xikcsjc67f-network-manager-openvpn-1.8.0/lib/NetworkManager/VPN


>
> > When I click connect simply nothing happens, and the following log is
> > emitted to /var/log/debug
> >
> > Dec 23 23:09:49 localhost NetworkManager[345]: <info>  [1514070589.5044]
> > audit: op="connection-activate" uuid="36c09127-ffc0-4d46-9547-
> 06e0ea214a15"
> > name="mullvad_de" pid=470 uid=1000 result="fail" reason="The VPN service
> > 'org.freedesktop.NetworkManager.openvpn' was not installed.
>
> I have opened a bug about this a while ago (OpenVPN and the (not yet
> merged?)
> VPNC plugins are affected. It's annoying prevents me from accessing my
> university
> intranet via VPN for some things from home.
> Maybe it was just an email so far, I can not find a bug ticket for this.
>
>
If I can help by providing any more logs or something I'd happy to do that.


> > I researched the error message and it seems common when people don't have
> > plugin installed (obviously), but I also found this:
> > https://github.com/NixOS/nixpkgs/issues/3539 which might be related.
>
> Thanks for the additional issue, I didn't look into Nix so far.
>
> > I'm pretty new to guix and scheme so any help would be greatly
> appreciated
> >
> > johannes
>
> --
> GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
> GnuPG: https://c.n0.is/ng0_pubkeys/tree/keys
>   WWW: https://n0.is
>

Also, Happy Christmas!
Johannes

[-- Attachment #2: Type: text/html, Size: 4233 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Openvpn and NetworkManager
  2017-12-24 23:03   ` Johannes Laute
@ 2018-01-08 14:43     ` Ludovic Courtès
  2018-01-11 12:39       ` Johannes Laute
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2018-01-08 14:43 UTC (permalink / raw)
  To: Johannes Laute; +Cc: help-guix

Hello Johannes,

Johannes Laute <j.laute3@googlemail.com> skribis:

>> > I researched the error message and it seems common when people don't have
>> > plugin installed (obviously), but I also found this:
>> > https://github.com/NixOS/nixpkgs/issues/3539 which might be related.

A person there wrote:

> among other things I was missing the line users.extraGroups.networkmanager.members = ["root"];

Could you try “groupadd -r networkmanager && usermod -aG networkmanager root”
(these changes will be lost upon reboot) and run “nmtui” from there?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Openvpn and NetworkManager
  2018-01-08 14:43     ` Ludovic Courtès
@ 2018-01-11 12:39       ` Johannes Laute
  2018-01-12 11:26         ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Johannes Laute @ 2018-01-11 12:39 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]

Hi Ludo',

A person there wrote:
>
> > among other things I was missing the line users.extraGroups.networkmanager.members
> = ["root"];
>
> Could you try “groupadd -r networkmanager && usermod -aG networkmanager
> root”
> (these changes will be lost upon reboot) and run “nmtui” from there?
>
>
This does not fix the problem, the problem persists also after "sudo herd
restart networking", the message is still "Could not activate the
connection: The VPN service 'org.freedesktop.NetworkManager.openvpn was not
installed'"

Querying /var/log for "vpn" returns many entries like this:

/messages:Jan 11 13:24:50 localhost NetworkManager[19464]: <info>
[1515673490.8272] audit: op="connection-activate" uuid="not sure if this is
sensitive information but i removed it anyways" name="mullvad_de-ber"
pid=19581 uid=0 result="fail" reason="The VPN service
'org.freedesktop.NetworkManager.openvpn'
was not installed."


I will investigate further later, but I am not sure where to start

Johannes

(sorry about sending it twice, i accidentally only replied to you)

[-- Attachment #2: Type: text/html, Size: 1613 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Openvpn and NetworkManager
  2018-01-11 12:39       ` Johannes Laute
@ 2018-01-12 11:26         ` Ludovic Courtès
  2018-01-12 17:54           ` Johannes Laute
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2018-01-12 11:26 UTC (permalink / raw)
  To: Johannes Laute; +Cc: help-guix

Hi Johannes,

Johannes Laute <j.laute3@googlemail.com> skribis:

> Querying /var/log for "vpn" returns many entries like this:
>
> /messages:Jan 11 13:24:50 localhost NetworkManager[19464]: <info>
> [1515673490.8272] audit: op="connection-activate" uuid="not sure if this is
> sensitive information but i removed it anyways" name="mullvad_de-ber"
> pid=19581 uid=0 result="fail" reason="The VPN service
> 'org.freedesktop.NetworkManager.openvpn'
> was not installed."

Could you see what operations triggers those warnings?  Is it when you
run ‘nmtui’ or similar?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Openvpn and NetworkManager
  2018-01-12 11:26         ` Ludovic Courtès
@ 2018-01-12 17:54           ` Johannes Laute
  0 siblings, 0 replies; 7+ messages in thread
From: Johannes Laute @ 2018-01-12 17:54 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 971 bytes --]

Yes, it happens when I try to activate the VPN connection in nmtui,  and
also when I try to activate the vpn connection via the gnome vpn ui.
Its puzzling me, since the plugin seems to be installed correctly as it
shows up in the gnome ui.

Johannes


On 12 Jan 2018 12:27 pm, "Ludovic Courtès" <ludo@gnu.org> wrote:

> Hi Johannes,
>
> Johannes Laute <j.laute3@googlemail.com> skribis:
>
> > Querying /var/log for "vpn" returns many entries like this:
> >
> > /messages:Jan 11 13:24:50 localhost NetworkManager[19464]: <info>
> > [1515673490.8272] audit: op="connection-activate" uuid="not sure if this
> is
> > sensitive information but i removed it anyways" name="mullvad_de-ber"
> > pid=19581 uid=0 result="fail" reason="The VPN service
> > 'org.freedesktop.NetworkManager.openvpn'
> > was not installed."
>
> Could you see what operations triggers those warnings?  Is it when you
> run ‘nmtui’ or similar?
>
> Thanks,
> Ludo’.
>

[-- Attachment #2: Type: text/html, Size: 1543 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-01-12 17:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-23 23:28 Openvpn and NetworkManager Johannes Laute
2017-12-24  9:02 ` ng0
2017-12-24 23:03   ` Johannes Laute
2018-01-08 14:43     ` Ludovic Courtès
2018-01-11 12:39       ` Johannes Laute
2018-01-12 11:26         ` Ludovic Courtès
2018-01-12 17:54           ` Johannes Laute

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.