From mboxrd@z Thu Jan 1 00:00:00 1970 From: Divan Santana Subject: bug#37369: Getting network-manager-openconnect to work Date: Sat, 28 Sep 2019 16:16:40 +0200 Message-ID: <87ftkgtsjb.fsf__20709.2841084645$1569680244$gmane$org@santanas.co.za> References: <87sgp4pj7s.fsf@santanas.co.za> <20190910112120.ezqnrrfffhhjvc2d@pelzflorian.localdomain> <874l1ipnlr.fsf@gnu.org> <20190912053411.bscrrsv6flzy7lgu@pelzflorian.localdomain> <87y2yo5j40.fsf@gnu.org> <20190916160635.dzx2ikvzi3kagtrc@pelzflorian.localdomain> <20190927163735.c4cjjuh4r6i6de3c@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45960) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEDWz-0002je-0u for bug-guix@gnu.org; Sat, 28 Sep 2019 10:17:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEDWw-0004LO-Qq for bug-guix@gnu.org; Sat, 28 Sep 2019 10:17:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42190) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEDWw-0004LF-Nn for bug-guix@gnu.org; Sat, 28 Sep 2019 10:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEDWw-0008S0-Fb for bug-guix@gnu.org; Sat, 28 Sep 2019 10:17:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20190927163735.c4cjjuh4r6i6de3c@pelzflorian.localdomain> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: "pelzflorian (Florian Pelz)" Cc: 37369@debbugs.gnu.org, help-guix@gnu.org pelzflorian (Florian Pelz) writes: > Hello! > > There might be a workaround: > > NetworkManager stopped segfaulting for me after I =E2=80=9Cedited=E2=80= =9D the > openconnect VPN connection in nm-connection-editor without making any > changes to the connection. Apparently this fixed get_secrets_done_cb > being passed what GDB calls an =E2=80=9C=E2=80=9D as the= connection > and crashing in nm_connection_get_setting_by_name. I need to repeat > this nm-connection-editor editing after every reboot. > > Does editing the VPN connection in nm-connection-editor fix the > problem for you, Divan Santana? So firstly I can't edit the connection as my user, without sudo. Not sure if I need to be in some group to do that? I then edited something like so: ds@swift ~ $ sudo nm-connection-editor Password: (nm-connection-editor:1990): Gtk-WARNING **: 16:01:57.175: Could not find t= he icon 'pan-down-symbolic-ltr'. The 'hicolor' theme was not found either, perhaps you need to install it. You can get a copy from: http://icon-theme.freedesktop.org/releases (nm-connection-editor:1990): Gtk-WARNING **: 16:02:01.028: Could not load a= pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/check-symbolic.svg. This may indicate that pixbuf loaders or the mime database could not be fou= nd. GLib-GIO-Message: 16:02:08.131: Using the 'memory' GSettings backend. Your= settings will not be saved or shared with other applications. Once I edited the connection and tried to connect it still fails for me like this: ds@swift ~ $ sudo nmcli con up vpn-example --ask Error: openconnect failed: Could not find "openconnect" binary A password is required to connect to 'vpn-example'. Gateway (vpn.secrets.gateway): ^Cds@swift ~ $ On arch, with the same connection file, it works on CLI with above command. I then tried starting nm-applet and then running: ds@swift ~ $ sudo nmcli con up vpn-example It then brings up the GUI and shows me a certificate for remote gateway. Asks me to select my group and enter username and password. So it appears like it's working. It then fails to auth for some reason. Sep 28 16:07:16 localhost NetworkManager[506]: [1569679636.8722] vp= n-connection[0x1cae420,ed432bd4-9078-493d-a9c3-fb7ac4199917,"vpn-example",0= ]: VPN service disappeared Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0578] ma= nager: (tun0): new Tun device (/org/freedesktop/NetworkManager/Devices/10) Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0847] de= vice (tun0): state change: unmanaged -> unavailable (reason 'connection-ass= umed', sys-iface-state: 'external') Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0860] ke= yfile: add connection in-memory (3a679fd7-0450-43ef-8e48-63850b1f0798,"tun0= ") Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0871] de= vice (tun0): state change: unavailable -> disconnected (reason 'connection-= assumed', sys-iface-state: 'external') Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0878] de= vice (tun0): Activation: starting connection 'tun0' (3a679fd7-0450-43ef-8e4= 8-63850b1f0798) Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0882] de= vice (tun0): state change: disconnected -> prepare (reason 'none', sys-ifac= e-state: 'external') Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0886] de= vice (tun0): state change: prepare -> config (reason 'none', sys-iface-stat= e: 'external') Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0888] de= vice (tun0): state change: config -> ip-config (reason 'none', sys-iface-st= ate: 'external') Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0889] de= vice (tun0): state change: ip-config -> ip-check (reason 'none', sys-iface-= state: 'external') Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0891] de= vice (tun0): state change: ip-check -> secondaries (reason 'none', sys-ifac= e-state: 'external') Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.0893] de= vice (tun0): state change: secondaries -> activated (reason 'none', sys-ifa= ce-state: 'external') Sep 28 16:11:33 localhost nscd: 464 monitored file `/etc/resolv.conf` was w= ritten to Sep 28 16:11:33 localhost NetworkManager[506]: [1569679893.1084] de= vice (tun0): Activation: successful, device activated. Sep 28 16:11:34 localhost ntpd[507]: Listen normally on 11 tun0 10.7.246.16= 4:123 Sep 28 16:11:34 localhost ntpd[507]: Listen normally on 12 tun0 [fe80::60db= :5ddd:b445:60e9%11]:123 Sep 28 16:11:36 localhost nscd: 464 monitored file `/etc/resolv.conf` was m= oved into place, adding watch Sep 28 16:11:47 localhost NetworkManager[506]: [1569679907.3367] de= vice (tun0): state change: activated -> unmanaged (reason 'unmanaged', sys-= iface-state: 'removed') Sep 28 16:11:48 localhost ntpd[507]: Deleting interface #11 tun0, 10.7.246.= 164#123, interface stats: received=3D0, sent=3D0, dropped=3D0, active_time= =3D14 secs Sep 28 16:11:48 localhost ntpd[507]: Deleting interface #12 tun0, fe80::60d= b:5ddd:b445:60e9%11#123, interface stats: received=3D0, sent=3D0, dropped= =3D0, active_time=3D14 secs Sep 28 16:12:02 localhost NetworkManager[506]: [1569679922.9339] au= dit: op=3D"connection-activate" uuid=3D"ed432bd4-9078-493d-a9c3-fb7ac419991= 7" name=3D"vpn-example" pid=3D2986 uid=3D1000 result=3D"success" Sep 28 16:12:02 localhost NetworkManager[506]: [1569679922.9371] vp= n-connection[0x1cae220,ed432bd4-9078-493d-a9c3-fb7ac4199917,"vpn-example",0= ]: Started the VPN service, PID 2992 Sep 28 16:12:02 localhost NetworkManager[506]: [1569679922.9439] vp= n-connection[0x1cae220,ed432bd4-9078-493d-a9c3-fb7ac4199917,"vpn-example",0= ]: Saw the service appear; activating connection Sep 28 16:12:13 localhost ntpd[507]: Soliciting pool server 196.10.54.57 Sep 28 16:12:28 localhost NetworkManager[506]: [1569679948.1291] se= ttings-connection[0x1b091c0,ed432bd4-9078-493d-a9c3-fb7ac4199917]: write: s= uccessfully commited (keyfile: update /etc/NetworkManager/system-connection= s/vpn-example (ed432bd4-9078-493d-a9c3-fb7ac4199917,"vpn-example")) Sep 28 16:12:28 localhost NetworkManager[506]: [1569679948.1318] vp= n-connection[0x1cae220,ed432bd4-9078-493d-a9c3-fb7ac4199917,"vpn-example",0= ]: final secrets request failed to provide sufficient secrets Sep 28 16:12:28 localhost NetworkManager[506]: [1569679948.1343] vp= n-connection[0x1cae220,ed432bd4-9078-493d-a9c3-fb7ac4199917,"vpn-example",0= ]: VPN service disappeared Sep 28 16:12:46 localhost NetworkManager[506]: [1569679966.0102] er= ror requesting auth for org.freedesktop.NetworkManager.wifi.share.protected= : Authorization check failed: Failed to open file =E2=80=9C/proc/3076/statu= s=E2=80=9D: No such file or directory Sep 28 16:12:46 localhost NetworkManager[506]: [1569679966.0107] er= ror requesting auth for org.freedesktop.NetworkManager.wifi.share.open: Aut= horization check failed: Failed to open file =E2=80=9C/proc/3076/status=E2= =80=9D: No such file or directory Sep 28 16:12:46 localhost NetworkManager[506]: [1569679966.0110] er= ror requesting auth for org.freedesktop.NetworkManager.settings.modify.syst= em: Authorization check failed: Failed to open file =E2=80=9C/proc/3076/sta= tus=E2=80=9D: No such file or directory Sep 28 16:12:46 localhost NetworkManager[506]: [1569679966.0114] er= ror requesting auth for org.freedesktop.NetworkManager.settings.modify.own:= Authorization check failed: Failed to open file =E2=80=9C/proc/3076/status= =E2=80=9D: No such file or directory Sep 28 16:12:46 localhost NetworkManager[506]: [1569679966.0118] er= ror requesting auth for org.freedesktop.NetworkManager.settings.modify.host= name: Authorization check failed: Failed to open file =E2=80=9C/proc/3076/s= tatus=E2=80=9D: No such file or directory Sep 28 16:12:46 localhost NetworkManager[506]: [1569679966.0120] er= ror requesting auth for org.freedesktop.NetworkManager.settings.modify.glob= al-dns: Authorization check failed: Failed to open file =E2=80=9C/proc/3076= /status=E2=80=9D: No such file or directory Sep 28 16:12:46 localhost NetworkManager[506]: [1569679966.0124] er= ror requesting auth for org.freedesktop.NetworkManager.reload: Authorizatio= n check failed: Failed to open file =E2=80=9C/proc/3076/status=E2=80=9D: No= such file or directory Sep 28 16:12:46 localhost NetworkManager[506]: [1569679966.0127] er= ror requesting auth for org.freedesktop.NetworkManager.checkpoint-rollback:= Authorization check failed: Failed to open file =E2=80=9C/proc/3076/status= =E2=80=9D: No such file or directory Sep 28 16:12:46 localhost NetworkManager[506]: [1569679966.0130] er= ror requesting auth for org.freedesktop.NetworkManager.enable-disable-stati= stics: Authorization check failed: Failed to open file =E2=80=9C/proc/3076/= status=E2=80=9D: No such file or directory Sep 28 16:12:46 localhost NetworkManager[506]: [1569679966.0133] er= ror requesting auth for org.freedesktop.NetworkManager.enable-disable-conne= ctivity-check: Authorization check failed: Failed to open file =E2=80=9C/pr= oc/3076/status=E2=80=9D: No such file or directory