(repost from bug #1247682) Hi, same problem after upgrade to Xenial. Sometimes VPN connect succeeds, but most often it fails. Using openconnect from command line always works. Here are debug logs for both failed and successful and connection attempts: -------------------------FAILED ATTEMPT:BEGIN------------------------ Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.5877] active-connection[0x293b400]: set device "eno1" [0x28db5f0] Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.5877] device[0x28db5f0] (eno1): add_pending_action (1): 'activation::0x293b400' Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.5877] active-connection[0x293b400]: constructed (NMVpnConnection, version-id 10) Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.5878] auth: call[435]: CheckAuthorization(org.freedesktop.NetworkManager.network-control), subject=unix-process[pid=12623, uid=1000, start=23699935] Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.5885] auth: call[435]: CheckAuthorization succeeded: (is_authorized=1, is_challenge=0) Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.5889] active-connection[0x293b400]: set state activating (was unknown) Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.5889] active-connection[0x293b400]: check-master-ready: not signalling (state activating, no master) Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.5890] audit: op="connection-activate" uuid="ab76ecac-1eab-4b32-86c7-6524528c5f89" name="Testvpn.CISCO" pid=12623 uid=1000 result="success" Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.5969] vpn-connection[0x293b400,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: Started the VPN service, PID 2409 Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6027] vpn-connection[0x293b400,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: Saw the service appear; activating connection Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6028] vpn-connection[0x293b400,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: requesting VPN secrets pass #1 Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6031] Secrets requested for connection /org/freedesktop/NetworkManager/Settings/2 (Testvpn.CISCO/vpn) Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6032] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2a421b0) secrets requested flags 0x80000004 hints '(none)' Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6035] agent-manager: ([0x2a421b0/"Testvpn.CISCO"/"vpn"]) system settings secrets sufficient Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6038] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x28ec700) existing secrets returned Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6039] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x28ec700) secrets request completed Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6044] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x28ec700) new agent secrets processed Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6046] vpn-connection[0x293b400,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: asking service if additional secrets are required Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6065] vpn-connection[0x293b400,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: service indicated additional secrets required Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6066] vpn-connection[0x293b400,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: requesting VPN secrets pass #2 Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6069] Secrets requested for connection /org/freedesktop/NetworkManager/Settings/2 (Testvpn.CISCO/vpn) Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6069] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent allowed for secrets request [0x2a42090/"Testvpn.CISCO"/"vpn"] Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6069] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2a42090) secrets requested flags 0x4 hints '(none)' Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6071] agent-manager: ([0x2a42090/"Testvpn.CISCO"/"vpn"]) system settings secrets insufficient, asking agents Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6072] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent getting secrets for request [0x2a42090/"Testvpn.CISCO"/"vpn"] Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6073] agent-manager: ([0x2a42090/"Testvpn.CISCO"/"vpn"]) request has system secrets; checking agent :1.682 for MODIFY Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6073] auth: call[436]: CheckAuthorization(org.freedesktop.NetworkManager.settings.modify.own), subject=unix-process[pid=12623, uid=1000, start=23699935] Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6079] auth: call[436]: CheckAuthorization succeeded: (is_authorized=1, is_challenge=0) Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6079] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent [0x2a42090/"Testvpn.CISCO"/"vpn"] MODIFY check result YES Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6518] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent returned secrets for request [0x2a42090/"Testvpn.CISCO"/"vpn"] Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6522] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x7fde10003880) secrets returned from agent :1.682 Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6522] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x7fde10003880) secrets request completed Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6527] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x7fde10003880) new agent secrets processed Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6531] vpn-connection[0x293b400,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: asking service if additional secrets are required Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6552] vpn-connection[0x293b400,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: service indicated additional secrets required Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6552] vpn-connection[0x293b400,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: requesting VPN secrets pass #3 Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6555] Secrets requested for connection /org/freedesktop/NetworkManager/Settings/2 (Testvpn.CISCO/vpn) Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6555] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent allowed for secrets request [0x2a42000/"Testvpn.CISCO"/"vpn"] Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6555] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2a42000) secrets requested flags 0x5 hints '(none)' Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6557] agent-manager: ([0x2a42000/"Testvpn.CISCO"/"vpn"]) system settings secrets insufficient, asking agents Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6558] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent getting secrets for request [0x2a42000/"Testvpn.CISCO"/"vpn"] Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6558] agent-manager: ([0x2a42000/"Testvpn.CISCO"/"vpn"]) request has system secrets; checking agent :1.682 for MODIFY Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6558] auth: call[437]: CheckAuthorization(org.freedesktop.NetworkManager.settings.modify.own), subject=unix-process[pid=12623, uid=1000, start=23699935] Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6564] auth: call[437]: CheckAuthorization succeeded: (is_authorized=1, is_challenge=0) Jul 27 13:26:02 myubuntu NetworkManager[856]: [1469615162.6564] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent [0x2a42000/"Testvpn.CISCO"/"vpn"] MODIFY check result YES Jul 27 13:26:27 myubuntu NetworkManager[856]: [1469615187.6804] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent failed secrets request [0x2a42000/"Testvpn.CISCO"/"vpn"]: Timeout was reached Jul 27 13:26:27 myubuntu NetworkManager[856]: [1469615187.6805] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x293d400) secrets request error: No agents were available for this request. Jul 27 13:26:27 myubuntu NetworkManager[856]: [1469615187.6805] vpn-connection[0x293b400,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: Failed to request VPN secrets #3: No agents were available for this request. Jul 27 13:26:27 myubuntu NetworkManager[856]: [1469615187.6806] active-connection[0x293b400]: set state deactivated (was activating) Jul 27 13:26:27 myubuntu NetworkManager[856]: [1469615187.6807] active-connection[0x293b400]: check-master-ready: not signalling (state deactivated, no master) Jul 27 13:26:27 myubuntu NetworkManager[856]: [1469615187.6807] device[0x28db5f0] (eno1): remove_pending_action (0): 'activation::0x293b400' Jul 27 13:26:27 myubuntu NetworkManager[856]: [1469615187.6846] active-connection[0x293b400]: disposing -------------------------FAILED ATTEMPT:END-------------------------- -------------------------SUCCESSFUL ATTEMPT:BEGIN-------------------- Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4403] active-connection[0x293b5f0]: set device "eno1" [0x28db5f0] Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4404] device[0x28db5f0] (eno1): add_pending_action (1): 'activation::0x293b5f0' Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4405] active-connection[0x293b5f0]: constructed (NMVpnConnection, version-id 17) Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4407] auth: call[456]: CheckAuthorization(org.freedesktop.NetworkManager.network-control), subject=unix-process[pid=12623, uid=1000, start=23699935] Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4442] auth: call[456]: CheckAuthorization succeeded: (is_authorized=1, is_challenge=0) Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4457] active-connection[0x293b5f0]: set state activating (was unknown) Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4458] active-connection[0x293b5f0]: check-master-ready: not signalling (state activating, no master) Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4461] audit: op="connection-activate" uuid="ab76ecac-1eab-4b32-86c7-6524528c5f89" name="Testvpn.CISCO" pid=12623 uid=1000 result="success" Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4513] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: Saw the service appear; activating connection Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4517] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: requesting VPN secrets pass #1 Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4533] Secrets requested for connection /org/freedesktop/NetworkManager/Settings/2 (Testvpn.CISCO/vpn) Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4533] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2a42000) secrets requested flags 0x80000004 hints '(none)' Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4552] agent-manager: ([0x2a42000/"Testvpn.CISCO"/"vpn"]) system settings secrets sufficient Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4572] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x293d640) existing secrets returned Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4572] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x293d640) secrets request completed Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4605] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x293d640) new agent secrets processed Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4615] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: asking service if additional secrets are required Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4721] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: service indicated additional secrets required Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4722] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: requesting VPN secrets pass #2 Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4736] Secrets requested for connection /org/freedesktop/NetworkManager/Settings/2 (Testvpn.CISCO/vpn) Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4737] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent allowed for secrets request [0x2997060/"Testvpn.CISCO"/"vpn"] Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4738] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2997060) secrets requested flags 0x4 hints '(none)' Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4749] agent-manager: ([0x2997060/"Testvpn.CISCO"/"vpn"]) system settings secrets insufficient, asking agents Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4753] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent getting secrets for request [0x2997060/"Testvpn.CISCO"/"vpn"] Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4753] agent-manager: ([0x2997060/"Testvpn.CISCO"/"vpn"]) request has system secrets; checking agent :1.682 for MODIFY Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4754] auth: call[457]: CheckAuthorization(org.freedesktop.NetworkManager.settings.modify.own), subject=unix-process[pid=12623, uid=1000, start=23699935] Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4783] auth: call[457]: CheckAuthorization succeeded: (is_authorized=1, is_challenge=0) Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.4785] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent [0x2997060/"Testvpn.CISCO"/"vpn"] MODIFY check result YES Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5185] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent returned secrets for request [0x2997060/"Testvpn.CISCO"/"vpn"] Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5190] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2938980) secrets returned from agent :1.682 Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5190] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2938980) secrets request completed Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5199] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2938980) new agent secrets processed Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5205] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: asking service if additional secrets are required Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5238] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: service indicated additional secrets required Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5238] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: requesting VPN secrets pass #3 Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5241] Secrets requested for connection /org/freedesktop/NetworkManager/Settings/2 (Testvpn.CISCO/vpn) Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5242] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent allowed for secrets request [0x2a42510/"Testvpn.CISCO"/"vpn"] Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5242] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2a42510) secrets requested flags 0x5 hints '(none)' Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5244] agent-manager: ([0x2a42510/"Testvpn.CISCO"/"vpn"]) system settings secrets insufficient, asking agents Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5245] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent getting secrets for request [0x2a42510/"Testvpn.CISCO"/"vpn"] Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5245] agent-manager: ([0x2a42510/"Testvpn.CISCO"/"vpn"]) request has system secrets; checking agent :1.682 for MODIFY Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5245] auth: call[458]: CheckAuthorization(org.freedesktop.NetworkManager.settings.modify.own), subject=unix-process[pid=12623, uid=1000, start=23699935] Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5253] auth: call[458]: CheckAuthorization succeeded: (is_authorized=1, is_challenge=0) Jul 27 13:43:29 myubuntu NetworkManager[856]: [1469616209.5254] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent [0x2a42510/"Testvpn.CISCO"/"vpn"] MODIFY check result YES Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8492] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent returned secrets for request [0x2a42510/"Testvpn.CISCO"/"vpn"] Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8510] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2957980) secrets returned from agent :1.682 Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8512] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2957980) secrets request completed Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8538] settings-connection[0x28ad9f0,ab76ecac-1eab-4b32-86c7-6524528c5f89]: (vpn:0x2957980) saving new secrets to backing storage Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8619] keyfile: update /etc/NetworkManager/system-connections/VPN connection 1 (ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO") Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8644] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: asking service if additional secrets are required Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8721] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: service indicated no additional secrets required Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8743] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: Allowing interactive secrets as all agents have that capability Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8806] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: VPN connection: (ConnectInteractive) reply received Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8815] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: VPN connection: falling back to non-interactive connect Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8866] platform-linux: sysctl: reading '/sys/class/net/vpn0/tun_flags': '0x1801' (changed from '0x1001' on last read) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8867] platform: signal: link added: 82: vpn0 mtu 1500 arp 65534 tun* not-init addrgenmode eui64 driver tun Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8870] device[0x2a57e90] (vpn0): constructed (NMDeviceTun) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8870] device[0x2a57e90] (vpn0): start setup of NMDeviceTun, kernel ifindex 82 Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8871] platform-linux: error reading /sys/class/net/vpn0/phys_port_id: Failed to read from file '/sys/class/net/vpn0/phys_port_id': Operation not supported Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8872] device[0x2a57e90] (vpn0): unmanaged: flags set to [platform-init,external-down=0x810/0x810/unmanaged/unrealized, set-unmanaged [external-down=0x800]) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8873] device[0x2a57e90] (vpn0): unmanaged: flags set to [platform-init,external-down,!loopback=0x810/0x818/unmanaged/unrealized, set-managed [loopback=0x8]) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8873] device[0x2a57e90] (vpn0): unmanaged: flags set to [platform-init,external-down,!loopback,!user-settings=0x810/0x858/unmanaged/unrealized, set-managed [user-settings=0x40]) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8873] device[0x2a57e90] (vpn0): unmanaged: flags set to [platform-init,external-down,!sleeping,!loopback,!user-settings=0x810/0x859/unmanaged/unrealized, set-managed [sleeping=0x1]) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8884] manager: (vpn0): new Tun device (/org/freedesktop/NetworkManager/Devices/119) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8889] vpn-connection[0x293b5f0,ab76ecac-1eab-4b32-86c7-6524528c5f89,"Testvpn.CISCO",0]: VPN plugin: state changed: starting (3) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8895] device[0x2a57e90] (vpn0): set IP4Config instance (/org/freedesktop/NetworkManager/IP4Config/85) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8896] dns-mgr: (device_ip4_config_changed): queueing DNS updates (1) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8897] dns-mgr: (device_ip4_config_changed): DNS configuration did not change Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8897] dns-mgr: (device_ip4_config_changed): no DNS changes to commit (0) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8901] device[0x2a57e90] (vpn0): set IP6Config instance (/org/freedesktop/NetworkManager/IP6Config/120) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8902] dns-mgr: (device_ip6_config_changed): queueing DNS updates (1) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8902] dns-mgr: (device_ip6_config_changed): DNS configuration did not change Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8902] dns-mgr: (device_ip6_config_changed): no DNS changes to commit (0) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.8906] device[0x2a57e90] (vpn0): emit RECHECK_ASSUME signal Jul 27 13:43:46 myubuntu openconnect[6374]: Attempting to connect to server 111.222.333.444:443 Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.9011] platform-linux: UDEV event: action 'add' subsys 'net' device 'vpn0' (82); seqnum=4601 Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.9013] platform: signal: link changed: 82: vpn0 mtu 1500 arp 65534 tun* init addrgenmode eui64 driver tun Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.9013] device[0x2a57e90] (vpn0): queued link change for ifindex 82 Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.9014] devices added (path: /sys/devices/virtual/net/vpn0, iface: vpn0) Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.9014] device added (path: /sys/devices/virtual/net/vpn0, iface: vpn0): no ifupdown configuration found. Jul 27 13:43:46 myubuntu NetworkManager[856]: [1469616226.9015] device[0x2a57e90] (vpn0): unmanaged: flags set to [external-down,!sleeping,!loopback,!platform-init,!user-settings=0x800/0x859/manageable, set-managed [platform-init=0x10], reason managed) Jul 27 13:43:47 myubuntu openconnect[6374]: SSL negotiation with 111.222.333.444 Jul 27 13:43:47 myubuntu openconnect[6374]: Server certificate verify failed: signer not found Jul 27 13:43:47 myubuntu openconnect[6374]: Connected to HTTPS on 111.222.333.444 Jul 27 13:43:48 myubuntu openconnect[6374]: Got CONNECT response: HTTP/1.1 200 OK Jul 27 13:43:48 myubuntu openconnect[6374]: X-CSTP-Version: 1 Jul 27 13:43:48 myubuntu openconnect[6374]: X-CSTP-Address: 10.120.252.139 Jul 27 13:43:48 myubuntu openconnect[6374]: X-CSTP-Netmask: 255.255.255.0 Jul 27 13:43:48 myubuntu openconnect[6374]: X-CSTP-DNS: 10.120.3.10 Jul 27 13:43:48 myubuntu openconnect[6374]: X-CSTP-DNS: 10.102.3.10 -------------------------SUCCESSFUL ATTEMPT:END---------------------- To me, most suspicious message is "Jul 27 13:26:27 myubuntu NetworkManager[856]: [1469615187.6804] agent-manager: req[0x28f8ee0, :1.682/org.freedesktop.nm-applet/1000]: agent failed secrets request [0x2a42000/"Testvpn.CISCO"/"vpn"]: Timeout was reached Who are these agents for secrets? How can I debug them?