Bug 492053 - Log in window not appearing when using a plasma wayland session and connecting to GlobalProtect VPN via NetworkManager (openconnect).
Summary: Log in window not appearing when using a plasma wayland session and connectin...
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Networking in general (show other bugs)
Version: master
Platform: Other Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-22 23:18 UTC by m.mallaburn
Modified: 2024-12-23 18:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Crash when attempting GlobalProtect VPN connection (114.19 KB, text/x-log)
2024-08-22 23:18 UTC, m.mallaburn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m.mallaburn 2024-08-22 23:18:12 UTC
Created attachment 172865 [details]
Crash when attempting GlobalProtect VPN connection

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
I have been using Plasma Wayland on Fedora 40 for a while with a working VPN now.
Today I removed Gnome and switched to the KDE spin.
I then noticed the VPN web-dialogue no longer appeared when trying to connect to GlobalProtect using NetworkManager.
I also reproduced this on NixOS 24.05.
Using Plasma X11 works as expected on both OSes.

Since testing X11 successfully, NixOS has often (not always) correctly rendered the web-dialogue on repeated attempts but so far I have not seen this on Fedora.
In both OSes, I have seen KDED appear in the task bar but no window appears, and NetworkManager spins its wheel for a minute before timing out having not received a secret.
Note that a reboot seems to be needed to try again or a connection attempt is quickly dropped.

Related journalctl output (quick connection drop):
```
Aug 22 23:30:47 fedora NetworkManager[14314]: <warn>  [1724365847.8358] vpn[0x55f25c9d5a50,46531bed-a4ed-468b-90e5-3dfbdc1756bc,"MFT GlobalProtect"]: secrets: failed to request VPN secrets #3: No agents were available for this request.
Aug 22 23:30:47 fedora plasmashell[11478]: kf.networkmanagerqt: void NetworkManager::ConnectionPrivate::onPropertiesChanged(const QVariantMap&) Unhandled property "VersionId"
```
The same error is seen on both OSes.

The initial attempt has a long journalctl log which I will add as an attachment.

STEPS TO REPRODUCE
1. Install OS with KDE Wayland (no X11)
2. Configure a GlobalProtect VPN in NetworkManager
3. Try to connect to the VPN using the NetworkManager applet task bar icon and clicking "Connect".
4. Click the little plug-like connect icon.

OBSERVED RESULT
No web portal to log in using MFA appears (mostly, occasionally working on NixOS after using X11).
NetworkManager waits for a response then times out with a message about not receiving a secret.

EXPECTED RESULT
A web portal appears allowing username / password and MFA login.
NetworkManager receives the secret and connects to the VPN.

SOFTWARE/OS VERSIONS
Windows: n/a
macOS: n/a
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora 40 and NixOS 24.05 (VM)
KDE Plasma Version: 6.1.4 (Fedora) and 6.0.5 (NixOS)
KDE Frameworks Version: 6.5.0 (Fedora) and 6.2.0 (NixOS)
Qt Version: 6.7.2 (Fedora) and 6.7.2 (NixOS)

ADDITIONAL INFORMATION
On an attempt in which NixOS succeeds to load the web portal, followed by a closing of the window without filling in the login details, journalctl shows kded crashing.
Comment 1 Ben Cooksley 2024-12-23 18:23:46 UTC
Bulk transfer as requested in T17796