Package network-manager-openvpn-gnome missing?

Package network-manager-openvpn-gnome missing?

Postby evermore » Oct 22nd, '23, 20:24

Hi folks,

I'm currently using Mageia 9 with GNOME on my workstation and want to configure a VPN connection by importing an OpenVPN file (*.ovpn). As I couldn't import the file in the Mageia Control Center (MCC), I switched to NetworkManager as described in the wiki (and forum). In NetworkManager, I have the option to import the OpenVPN file but it does not work properly. The VPN gets added but in the "identity" tab there is an error: "Error: unable to load VPN connection editor" (as described here on Ask Ubuntu). The connection does not work either.

The same error is shown when I try to create a new OpenVPN connection manually or imported the file using
Code: Select all
nmcli connection import type openvpn file my-company.ovpn


I know this "bug" from Ubuntu and the resolution there is to install the package network-manager-openvpn-gnome (in addtion to network-manager-openvpn). Unfortunately, I cannot find such a package on Mageia. Is it missing or what can I do?

Best regards,
evermore
evermore
 
Posts: 5
Joined: Oct 22nd, '23, 11:52
Location: Mainz (Germany)

Re: Package network-manager-openvpn-gnome missing?

Postby doktor5000 » Oct 22nd, '23, 20:47

Just to be sure, you do have the package networkmanager-openvpn already installed ? Because the editor should be contained in that package as /usr/lib64/NetworkManager/libnm-vpn-plugin-openvpn-editor.so

It could also be the same issue as mentioned here, at least for GTK: https://bugs.mageia.org/show_bug.cgi?id=32264

Although for the import via nmcli you should probably report that: https://wiki.mageia.org/en/How_to_report_a_bug_properly
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Package network-manager-openvpn-gnome missing?

Postby evermore » Oct 22nd, '23, 21:09

Thanks for your reply and research. Yes, networkmanager-openvpn is installed. I also rebooted the machine twice and tried again.

Edit: I remember, that I had an issue where an application (chess game) was not in the PATH variable. Can that be an issue? This is in my PATH:
Code: Select all
echo $PATH

Code: Select all
/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib64/qt6/bin
evermore
 
Posts: 5
Joined: Oct 22nd, '23, 11:52
Location: Mainz (Germany)

Re: Package network-manager-openvpn-gnome missing?

Postby doktor5000 » Oct 22nd, '23, 22:32

No, PATH is only for executables, but this editor is a dynamic library, this would only be determined by LD_LIBRARY_PATH but there's no need to change that.

On a related note, I've tried to reproduce this and can't, the OpenVPN configuration is imported successfully:
Code: Select all
[doktor5000@Mageia9]─[22:30:04]─[~] LC_ALL=C nmcli con import type openvpn file ~/test.ovpn
Connection 'test' (eb007595-1ecf-476f-b8b2-d19a028dccd9) successfully added.

I can also edit that connection without issues under Plasma, nothing about missing connection editor.

Just for clarity, do you use the integrated network connection handler from GNOME or do you use the standalone nm-applet ?

This could also depend on whether you have CA certificates in your .ovpn config or not.
If you have the certificates embedded there you may need to split that up: https://github.com/dolanor/ovpnsplit/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Package network-manager-openvpn-gnome missing?

Postby evermore » Oct 23rd, '23, 19:24

I'm using the integrated GNOME user interface for managing the VPN connections:
gnome-vpn.png
gnome-vpn.png (52.86 KiB) Viewed 8354 times


This screenshot is from Mageia 8 and there importing the ovpn file works :o :) I'm going to compare the differences between the Mageia 8 and Mageia 9 installation now...
evermore
 
Posts: 5
Joined: Oct 22nd, '23, 11:52
Location: Mainz (Germany)

Re: Package network-manager-openvpn-gnome missing?

Postby doktor5000 » Oct 23rd, '23, 22:02

evermore wrote:I'm going to compare the differences between the Mageia 8 and Mageia 9 installation now...

As mentioned above, Mageia 9 is built against GTK4, so it could be the issue that the package simply needs a rebuild ...
I'll try to test this under GNOME with my .ovpn config as it's working with networkmanager alone already.

Also did you check this?
doktor5000 wrote:This could also depend on whether you have CA certificates in your .ovpn config or not.
If you have the certificates embedded there you may need to split that up: https://github.com/dolanor/ovpnsplit/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest