Bug 1277693 - NetworkManager-openconnect fails
Summary: NetworkManager-openconnect fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 22
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1278265 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-03 20:37 UTC by Slava
Modified: 2015-11-17 18:23 UTC (History)
7 users (show)

Fixed In Version: NetworkManager-1.0.6-8.fc23 NetworkManager-1.0.6-8.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-08 06:50:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Slava 2015-11-03 20:37:00 UTC
Description of problem:

NetworkManager Openconnect fail establish vpn from web ui.


Nov  3 15:24:11 2z49tz1 NetworkManager[1189]: <info>  Starting VPN service 'openconnect'...
Nov  3 15:24:11 2z49tz1 NetworkManager[1189]: <info>  VPN service 'openconnect' started (org.freedesktop.NetworkManager.openconnect), PID 22016
Nov  3 15:24:11 2z49tz1 gnome-session: (gnome-shell:2163): Gjs-WARNING **: JS ERROR: TypeError: a._connection is null
Nov  3 15:24:11 2z49tz1 gnome-session: NMVPNSection<.setActiveConnections/<@resource:///org/gnome/shell/ui/status/network.js:1533
Nov  3 15:24:11 2z49tz1 gnome-session: NMVPNSection<.setActiveConnections@resource:///org/gnome/shell/ui/status/network.js:1532
Nov  3 15:24:11 2z49tz1 gnome-session: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Nov  3 15:24:11 2z49tz1 gnome-session: NMApplet<._syncVPNConnections@resource:///org/gnome/shell/ui/status/network.js:1821
Nov  3 15:24:11 2z49tz1 gnome-session: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Nov  3 15:24:11 2z49tz1 NetworkManager[1189]: <info>  VPN service 'openconnect' appeared; activating connections
Nov  3 15:24:11 2z49tz1 gnome-session: (gnome-shell:3552): GLib-CRITICAL **: g_source_remove: assertion 'tag > 0' failed
Nov  3 15:24:12 2z49tz1 pcscd: 99999999 winscard.c:263:SCardConnect() Reader E-Gate 0 0 Not Found
Nov  3 15:24:32 2z49tz1 NetworkManager[1189]: <info>  VPN service 'openconnect' disappeared
Nov  3 15:24:32 2z49tz1 NetworkManager[1189]: <warn>  error disconnecting VPN: The name org.freedesktop.NetworkManager.openconnect was not provided by any .service files




Version-Release number of selected component (if applicable):

[volga629@vm ~]$ rpm -qa | grep NetworkManager-openconnect
NetworkManager-openconnect-1.0.2-1.fc22.x86_64



How reproducible:

100% 
Always

Steps to Reproduce:
1. Define vpn profile in NetworkManager GUI.
2. Start connection, enter credentials.
3. Connection will stop after some period of time.

Actual results:

See description above

Expected results:

Establish vpn connection

Additional info:

None

Comment 1 David Woodhouse 2015-11-04 09:59:15 UTC
From a terminal as root, please run
/usr/libexec/nm-openconnect-service --debug --persist

Then try making the connection.

I suspect it'll work, and we'll be left none the wiser about why the normal invocation of the service failed. I am concerned by how fragile this is, and by the fact that we're adding *more* complexity to it... 

Tag...

Comment 2 Slava 2015-11-04 13:22:56 UTC
[volga629@2z49tz1 ~]$ sudo /usr/libexec/nm-openconnect-service --debug --persist
** Message: nm-openconnect-service (version 1.0.2) starting...

** (nm-openconnect-service:5545): WARNING **: property 'cookie-flags' unknown

** (nm-openconnect-service:5545): WARNING **: property 'certsigs-flags' unknown

** (nm-openconnect-service:5545): WARNING **: property 'lasthost-flags' unknown

** (nm-openconnect-service:5545): WARNING **: property 'autoconnect-flags' unknown

** (nm-openconnect-service:5545): WARNING **: property 'gateway-flags' unknown

** (nm-openconnect-service:5545): WARNING **: property 'gwcert-flags' unknown

** (nm-openconnect-service:5545): WARNING **: property 'xmlconfig-flags' unknown

** (nm-openconnect-service:5545): WARNING **: property 'xmlconfig' unknown

** (nm-openconnect-service:5545): WARNING **: property 'lasthost' unknown
connection
	id : "Conn-SSL" (s)
	uuid : "180f29fa-ab2d-4501-8b2a-20a937121465" (s)
	interface-name : NULL (sd)
	type : "vpn" (s)
	permissions : user:volga629: (s)
	autoconnect : FALSE (s)
	timestamp : 0 (sd)
	read-only : FALSE (sd)
	zone : "home" (s)
	master : NULL (sd)
	slave-type : NULL (sd)
	secondaries :  (sd)
	gateway-ping-timeout : 0 (sd)


vpn
	service-type : "org.freedesktop.NetworkManager.openconnect" (s)
	user-name : "volga629" (s)
	persistent : FALSE (sd)
	data : enable_csd_trojan=no,xmlconfig-flags=0,pem_passphrase_fsid=no,gwcert-flags=2,gateway-flags=2,autoconnect-flags=0,lasthost-flags=0,stoken_source=manual,certsigs-flags=0,cookie-flags=2,gateway=1.1.1.1:443,authtype=password (s)
	secrets : gateway=1.1.1.1:443,cookie=4 (s)


ipv6
	method : "auto" (s)
	dhcp-hostname : NULL (sd)
	dns :  (s)
	dns-search :  (sd)
	addresses :  (s)
	routes :  (s)
	route-metric : -1 (sd)
	ignore-auto-routes : FALSE (sd)
	ignore-auto-dns : FALSE (sd)
	never-default : FALSE (sd)
	may-fail : TRUE (sd)
	ip6-privacy : -1 (sd)


ipv4
	method : "auto" (s)
	dns :  (s)
	dns-search :  (sd)
	addresses :  (s)
	routes :  (s)
	route-metric : -1 (sd)
	ignore-auto-routes : FALSE (sd)
	ignore-auto-dns : FALSE (sd)
	dhcp-client-id : NULL (sd)
	dhcp-send-hostname : TRUE (sd)
	dhcp-hostname : NULL (sd)
	never-default : FALSE (sd)
	may-fail : TRUE (sd)



** (nm-openconnect-service:5545): WARNING **: Created tundev vpn0

** Message: openconnect started with pid 5637

Comment 3 Slava 2015-11-04 13:23:42 UTC
(In reply to Slava from comment #2)
> [volga629@2z49tz1 ~]$ sudo /usr/libexec/nm-openconnect-service --debug
> --persist
> ** Message: nm-openconnect-service (version 1.0.2) starting...
> 
> ** (nm-openconnect-service:5545): WARNING **: property 'cookie-flags' unknown
> 
> ** (nm-openconnect-service:5545): WARNING **: property 'certsigs-flags'
> unknown
> 
> ** (nm-openconnect-service:5545): WARNING **: property 'lasthost-flags'
> unknown
> 
> ** (nm-openconnect-service:5545): WARNING **: property 'autoconnect-flags'
> unknown
> 
> ** (nm-openconnect-service:5545): WARNING **: property 'gateway-flags'
> unknown
> 
> ** (nm-openconnect-service:5545): WARNING **: property 'gwcert-flags' unknown
> 
> ** (nm-openconnect-service:5545): WARNING **: property 'xmlconfig-flags'
> unknown
> 
> ** (nm-openconnect-service:5545): WARNING **: property 'xmlconfig' unknown
> 
> ** (nm-openconnect-service:5545): WARNING **: property 'lasthost' unknown
> connection
> 	id : "Conn-SSL" (s)
> 	uuid : "180f29fa-ab2d-4501-8b2a-20a937121465" (s)
> 	interface-name : NULL (sd)
> 	type : "vpn" (s)
> 	permissions : user:volga629: (s)
> 	autoconnect : FALSE (s)
> 	timestamp : 0 (sd)
> 	read-only : FALSE (sd)
> 	zone : "home" (s)
> 	master : NULL (sd)
> 	slave-type : NULL (sd)
> 	secondaries :  (sd)
> 	gateway-ping-timeout : 0 (sd)
> 
> 
> vpn
> 	service-type : "org.freedesktop.NetworkManager.openconnect" (s)
> 	user-name : "volga629" (s)
> 	persistent : FALSE (sd)
> 	data :
> enable_csd_trojan=no,xmlconfig-flags=0,pem_passphrase_fsid=no,gwcert-flags=2,
> gateway-flags=2,autoconnect-flags=0,lasthost-flags=0,stoken_source=manual,
> certsigs-flags=0,cookie-flags=2,gateway=1.1.1.1:443,authtype=password (s)
> 	secrets : gateway=1.1.1.1:443,cookie=4 (s)
> 
> 
> ipv6
> 	method : "auto" (s)
> 	dhcp-hostname : NULL (sd)
> 	dns :  (s)
> 	dns-search :  (sd)
> 	addresses :  (s)
> 	routes :  (s)
> 	route-metric : -1 (sd)
> 	ignore-auto-routes : FALSE (sd)
> 	ignore-auto-dns : FALSE (sd)
> 	never-default : FALSE (sd)
> 	may-fail : TRUE (sd)
> 	ip6-privacy : -1 (sd)
> 
> 
> ipv4
> 	method : "auto" (s)
> 	dns :  (s)
> 	dns-search :  (sd)
> 	addresses :  (s)
> 	routes :  (s)
> 	route-metric : -1 (sd)
> 	ignore-auto-routes : FALSE (sd)
> 	ignore-auto-dns : FALSE (sd)
> 	dhcp-client-id : NULL (sd)
> 	dhcp-send-hostname : TRUE (sd)
> 	dhcp-hostname : NULL (sd)
> 	never-default : FALSE (sd)
> 	may-fail : TRUE (sd)
> 
> 
> 
> ** (nm-openconnect-service:5545): WARNING **: Created tundev vpn0
> 
> ** Message: openconnect started with pid 5637

I tested for fedora 22 x86_64 and fedora 23 x86_64 result the same. From shell works, connects can browser the lan. From GUI both not working connection status just disappeared after 20 sec.

Comment 4 David Woodhouse 2015-11-04 13:54:50 UTC
Yes, I see this occasionally. For me it's undebuggable. I don't know where to start looking. I just stick with the workaround.

I appreciate this is not an ideal answer. Reassigning to NetworkManager itself, since the problem is with generic code (or with D-Bus activation, or something).

Comment 5 David Woodhouse 2015-11-05 09:43:19 UTC
*** Bug 1278265 has been marked as a duplicate of this bug. ***

Comment 6 David Woodhouse 2015-11-05 09:45:29 UTC
I've marked bug 1278265 as a duplicate of this, which I think it might be. Mike observed in that bug that it seems to be a timeout issue — if the authentication doesn't complete fast enough, then the service quits.

Comment 7 Jirka Klimes 2015-11-05 13:51:43 UTC
If this is the problem of short timeout (20 seconds), it is fixed upstream by
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=b1512221bc29f24b86d464dc5117439c366fd299

Comment 8 Fedora Update System 2015-11-05 16:27:47 UTC
NetworkManager-1.0.6-8.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-bbc8935459

Comment 9 Fedora Update System 2015-11-05 16:27:49 UTC
NetworkManager-1.0.6-8.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-38fc6652a8

Comment 10 Fedora Update System 2015-11-06 00:50:51 UTC
NetworkManager-1.0.6-8.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update NetworkManager'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-38fc6652a8

Comment 11 Fedora Update System 2015-11-06 02:34:08 UTC
NetworkManager-1.0.6-8.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update NetworkManager'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-bbc8935459

Comment 12 Fedora Update System 2015-11-08 06:50:22 UTC
NetworkManager-1.0.6-8.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2015-11-17 18:23:11 UTC
NetworkManager-1.0.6-8.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.