Bug 1164449

Summary: Unable to load VPN connection editor
Product: [Fedora] Fedora Reporter: Didier G <didierg-divers>
Component: NetworkManager-openvpnAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 21CC: cbm, choeger, claes.rosell, dcbw, fvzwieten, gonzo, huzaifas, keramidasceid, kkuehl, lkundrak, mail, psimerda, samuel-rhbugs, steve, thaller, tmlcoch
Target Milestone: ---Flags: mleitner: needinfo-
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: NetworkManager-openvpn-1.0.0-1.fc21.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-04 10:26:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Glade XML file resaved in Glade 3.18.3 none

Description Didier G 2014-11-15 14:42:24 UTC
Description of problem:

Trying to create a new OpenVPN connection, I get error message 

"Unable to load VPN connection editor"

(translated from message in frensh)



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

This problem occurs with this version installed by "yum update": 

NetworkManager-openvpn.x86_64 1:0.9.9.0-3.20141110gitda5fb9b.fc21
NetworkManager-openvpn-gnome.x86_64 1:0.9.9.0-3.20141110gitda5fb9b.fc21


After downgrade to previous version using "yum history undo" it works fine with this version: 

NetworkManager-openvpn-0.9.9.0-3.git20140128.fc21.x86_64
NetworkManager-openvpn-gnome-0.9.9.0-3.git20140128.fc21.x86_64



How reproducible:

Juste upgrade to new version using "yum update" 



Actual results:

"Unable to load VPN connection editor"

Comment 1 Chad Rodrigue 2014-11-15 19:36:08 UTC
Same here.  Can't do VPN editing or adding.  How can one adjust these things manually?

Comment 2 Chad Rodrigue 2014-11-17 17:16:21 UTC
In the way of logs, there are few.  If I run gnome-control-center from a command prompt, the following is thrown when I attempt to create or import an OpenVPN connection.

** (gnome-control-center:2216): WARNING **: Couldn't load builder file: (unknown)

Don't see any other relevant logging, if anyone can help me with that I'd be happy to provide it.

Comment 3 Claes Rosell 2014-11-21 12:46:01 UTC
I have the same problem.
If I run "nm-connection-editor" from a terminal I recieve the following output:

[crosell@localhost ~]$ nm-connection-editor 
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

** (nm-connection-editor:26451): WARNING **: Unsupported connection type 'generic'

** (nm-connection-editor:26451): WARNING **: Couldn't load builder file: Ogiltig egenskap: GtkGrid.n_rows  på rad 1625

** (nm-connection-editor:26451): WARNING **: Could not load VPN user interface for service 'org.freedesktop.NetworkManager.openvpn': could not load required resources from /usr/share/gnome-vpn-properties/openvpn/nm-openvpn-dialog.ui.

(nm-connection-editor:26451): Gtk-CRITICAL **: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(nm-connection-editor:26451): GLib-GObject-CRITICAL **: g_object_set_data: assertion 'G_IS_OBJECT (object)' failed

(nm-connection-editor:26451): Gtk-CRITICAL **: gtk_notebook_insert_page: assertion 'GTK_IS_WIDGET (child)' failed

(nm-connection-editor:26451): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTK_IS_WIDGET (widget)' failed

(nm-connection-editor:26451): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTK_IS_WIDGET (widget)' failed

(nm-connection-editor:26451): libnm-glib-CRITICAL **: nm_vpn_plugin_ui_widget_interface_update_connection: assertion 'NM_IS_VPN_PLUGIN_UI_WIDGET_INTERFACE (iface)' failed

** (nm-connection-editor:26451): WARNING **: Invalid setting VPN

(nm-connection-editor:26451): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTK_IS_WIDGET (widget)' failed

(nm-connection-editor:26451): libnm-glib-CRITICAL **: nm_vpn_plugin_ui_widget_interface_update_connection: assertion 'NM_IS_VPN_PLUGIN_UI_WIDGET_INTERFACE (iface)' failed

** (nm-connection-editor:26451): WARNING **: Invalid setting VPN

(nm-connection-editor:26451): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTK_IS_WIDGET (widget)' failed

(nm-connection-editor:26451): libnm-glib-CRITICAL **: nm_vpn_plugin_ui_widget_interface_update_connection: assertion 'NM_IS_VPN_PLUGIN_UI_WIDGET_INTERFACE (iface)' failed

** (nm-connection-editor:26451): WARNING **: Invalid setting VPN

(nm-connection-editor:26451): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTK_IS_WIDGET (widget)' failed

(nm-connection-editor:26451): libnm-glib-CRITICAL **: nm_vpn_plugin_ui_widget_interface_update_connection: assertion 'NM_IS_VPN_PLUGIN_UI_WIDGET_INTERFACE (iface)' failed

** (nm-connection-editor:26451): WARNING **: Invalid setting VPN

Comment 4 Claes Rosell 2014-11-22 08:06:17 UTC
Turns out that the Glade xml file is invalid. GtkGrid, unlike GtkTable, does not have the properties "n_rows" or "n_columns". Why this yields en fatal error I do not know. However, simply removing these 12 lines on 6 locations from the xml file seems to solve the problem. Also open the XML file in a later version of Glade and re-save it also solves the problem but generates more changes to the file.

There are still some layout issues with the OpenVPN dialog, caused by a very long label. But with this change the dialog works at-least.

Comment 5 Claes Rosell 2014-11-22 08:10:03 UTC
Created attachment 960091 [details]
Glade XML file resaved in Glade 3.18.3

To use this file instead: Replace the "nm-openvpn-dialog.ui" file in the "/usr/share/gnome-vpn-properties/openvpn/" folder.

Comment 6 kkuehl 2014-12-12 18:34:54 UTC
Claes Rosell's attachment seems to resolve the issue.

Comment 7 Simon Green 2014-12-24 02:21:55 UTC
(In reply to kkuehl from comment #6)
> Claes Rosell's attachment seems to resolve the issue.

Is there a reason this change hasn't been made, and a new package built?

Comment 8 Tomas Mlcoch 2015-02-13 10:22:30 UTC
I also hit the problem on F21

Comment 9 Fred van Zwieten 2015-02-14 16:20:27 UTC
I also hit this problem on F21

Comment 10 Fedora Update System 2015-02-23 14:44:20 UTC
NetworkManager-openvpn-1.0.0-1.fc21.1 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/NetworkManager-openvpn-1.0.0-1.fc21.1

Comment 11 Fedora Update System 2015-02-25 13:25:10 UTC
Package NetworkManager-openvpn-1.0.0-1.fc21.1:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing NetworkManager-openvpn-1.0.0-1.fc21.1'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-2476/NetworkManager-openvpn-1.0.0-1.fc21.1
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2015-03-04 10:26:23 UTC
NetworkManager-openvpn-1.0.0-1.fc21.1 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.