linuxmint / cinnamon-control-center

A collection of configuration plugins used in cinnamon-settings
GNU General Public License v2.0
62 stars 66 forks source link

Error: unable to load VPN connection editor #319

Open krzykorzeniewski opened 1 year ago

krzykorzeniewski commented 1 year ago

Distribution

Mint 21.2

Package version

Cinnamon 5.8.4

Graphics hardware in use

NVIDIA Geforce RTX 3060Ti LHR

Frequency

Always

Bug description

When trying to establish VPN connection using Secure Socket Tunneling Protocol (SSTP) the following error message shows up in the "Add VPN" window: "Error: unable to load VPN connection editor". Basically when trying to establish connection using this protocol there is no option to fill Gateway, Username, password fields etc.

Steps to reproduce

  1. Install sstp-client: sudo apt install sstp-client, then use sudo apt install network-manager-sstp and reset the network manager: sudo systemctl restart NetworkManager
  2. Go to Network, Add VPN, select Secure Socket Tunneling Protocol (SSTP)

Screenshot from 2023-11-11 11-36-33

Expected behavior

Instead of the error message being shown, there should be option to fill in neccessary information such as Gateway or User Name

Additional information

No response

claudiux commented 1 year ago

@k0rz3ni3wsky Once you've created your connection, use nm-connection-editor to edit it more precisely. @leigh123linux Maybe add a direct access to nm-connection-editor from c-c-c?

leigh123linux commented 1 year ago

@claudiux I think the issue is bigger than that, other network plugins fail in a similar way.

claudiux commented 1 year ago

@leigh123linux We're not going to rewrite the NetworkManager code, are we?

leigh123linux commented 1 year ago

@leigh123linux We're not going to rewrite the NetworkManager code, are we? We should consider rebasing the network code in the c-c-c network panel.

claudiux commented 1 year ago

@leigh123linux You're right. In particular, the different types of VPN are poorly managed. Anything else?

ghisvail commented 3 months ago

Same issue when setting up an OpenConnect VPN connection on Mint 22

dkosovic commented 3 months ago

With cinnamon-control-center 6.4.0 and commit https://github.com/linuxmint/cinnamon-control-center/commit/b44d9ecd67eaa7a55904be3bf325c96e4c99447b it now prints a warning message when trying to load a GTK3 VPN plug-in like sstp, l2tp and openconnect that are using NMACertChooser :

** (cinnamon-control-center:3674): WARNING **: 18:00:00.500: Could not load editor VPN plugin for 'org.freedesktop.NetworkManager.l2tp' (.:259:1 Invalid object type 'NmaCertChooser').

There used to be a workaround in place for NMACertChooser but was removed with commit https://github.com/linuxmint/cinnamon-control-center/commit/0f4d212874c4fbee18b860963d0a5c7bd54dcfd1 (to fix a segmentation fault amongst other issues as described in issue https://github.com/linuxmint/cinnamon/issues/10616)

Note: NMACertChooser is not a native GTK3 widget, but a widget from libnma which is a library used for integrating GUI tools with NetworkManager.

udorronsoro commented 2 months ago

Hi:

Any news on when this will be fixed or if there's a temporary workaround?

Thank you!

dkosovic commented 2 months ago

nm-connection-editor was suggested earlier as a workaround to create/edit the VPN connections.

dkosovic commented 6 hours ago

NetworkManager-openvpn is using NMACertChooser and has the following commit to workaround the NMACertChooser issue :

None of the other NetworkManager VPN plugins (sstp, l2tp and openconnect) that use NMACertChooser have a similar workaround.