NetworkManager and openvpn plugin

Hi! Why openvpn connection using network manager not working? Before noble its worked fine. Non stop password prompt. In journal i see: Failed to request VPN secrets: User canceled the secrets request. How to fix it?

Hi - to help guide you in the right direction, can you please paste your system information into a message here? You can get that from the Info Center app using the Copy Details button here:

Operating System: KDE neon Testing Edition
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.0
Kernel Version: 6.8.0-49-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 47.0 Gb of RAM
Graphics Processor: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2

A few other questions for context (this probably requires someone with more networking knowledge than I do!):

Is the repeated password prompt showing up when trying to activate an existing, configured connection?

Are you able to add a new VPN connection through the System Settings app? Does that new connection work, or does it have the same issue?

If you open KWalletManager, does it show that the main “kdewallet” is open?

In both cases this problem occurs. I don’t use kwallet, the password is saved unencrypted

Having random windows popping up asking for passwords is bad.
When the VPN password is already contained in the openVPN network manager window, a random popup window asking for a password is an alarm. I don’t use Kwallet.

The connection fails with:

Necessary secrets for the VPN connection ‘openvpn_connection.tcp’ were not provided.

Is there a fix?

I created a VPN connection using an OVPN file. In network manager I specified:

  • “store password for all users (unencrypted)”.
  • Automatically connect to the VPN

Every time I try to connect I get a window that pops up:

VPN secrets (openvpn) dialog - KDE Daemon
Authenticate “openvpn_connection.tcp”

Provide the secrets for the VPN connection " "

A password is required.

Operating System: Ubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.17.0-23-generic (64-bit)
Graphics Platform: X11
Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor
Memory: 124.9 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4090/PCIe/SSE2
Manufacturer: ASUS

Unfortunately I found a solution, but not the cause.

Solution: Hard boot. Soft boot doesn’t work.

Observation: More and more Ubuntu is becoming like windows. There was a time one didn’t need to reboot linux.