Bug 490479

Summary: Cancelled openconnect VPN connection, when set to auto-connect, breaks network connection
Product: [Plasma] plasmashell Reporter: deadmeu <deadmeu>
Component: Networking in generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: major CC: nate
Priority: NOR    
Version First Reported In: 6.1.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description deadmeu 2024-07-19 04:14:25 UTC
SUMMARY
An openconnect network connection configured to automatically connect to a VPN will completely break and not allow you to connect again if you cancel (or fail) out of the VPN login prompt.

This seems very similar to bug 340543.

STEPS TO REPRODUCE
1. Configure a network to automatically connect to a VPN.
2. Connect to the network (I do so by logging out then logging back in)
3. Wait for the VPN secrets dialog to open, then cancel it (or wait a few minutes for the login timeout to be reached)

OBSERVED RESULT
The network connection fails, and if you try to connect back to the network a connecting spinner is momentarily displayed before canceling out. Also, the VPN connection is not visible in the Networks list.

EXPECTED RESULT
The network connection should fail, but selecting "Connect" should restart the connection process including opening the VPN secrets dialog and requesting the user to sign in.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.9-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I upped the severity because this can occur whenever the network needs to reauthenticate. For example, when my device is locked & unlocked, I am disconnected from the network & VPN, and will need to reauthenticate. If I fail or cancel the authentication process then I cannot reconnect to the network until I either log out and back in, or reboot, losing my session state. Finally, I haven't been able to verify this just yet, but this problem may have caused me issues where I could not connect to *any* network, not just the one I initially connected to, when the VPN secrets dialog timed out, but I need to verify this another day.

This might just be a NetworkManager bug.
Comment 1 deadmeu 2024-07-22 01:19:27 UTC
I forgot to mention that if you try to configure the network while it is in this broken state, a notification for "Failed to get secrets for <network>" will display, stating "No agents were available for this request.". Once this is displayed, you cannot edit the network configuration at all.
Comment 2 deadmeu 2024-09-05 05:10:16 UTC
Any updates to this? Is it reproducible to others? This breaks my network connections all the time and I have to reboot my machine to fix it... It's really frustrating.
Comment 3 Ben Cooksley 2024-12-23 18:23:49 UTC
Bulk transfer as requested in T17796
Comment 4 Nate Graham 2025-05-22 18:08:57 UTC
Thanks for the bug report, and I'm so sorry we haven't gotten to it yet. I can see how frustrating it must be. Unfortunately VPN configuration issues are extremely challenging to troubleshoot because VPNs are all different, and also it can be difficult or impossible for a developer to set up a working VPN setup with the same service as the person experiencing the bug.

Can I ask you to check and see if it's still happening in  Plasma 6.3.5 or later? Or even better, than Plasma 6.4 beta (or the Plasma 6.4 final release, if you're reading this after mid-June 2025)?

Thanks a lot, and sorry again!
Comment 5 Bug Janitor Service 2025-06-06 03:48:07 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2025-06-21 03:47:41 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.