https://bugs.kde.org/show_bug.cgi?id=524382

            Bug ID: 524382
           Summary: Secret agent not re-registered fast enough after
                    NetworkManager.service restart mid-session, causing
                    spurious "no secrets: User canceled the secrets
                    request" on auto-reconnect
    Classification: Plasma
           Product: plasmashell
      Version First 6.7.4
       Reported In:
          Platform: CachyOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Networking in general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

When `NetworkManager.service` is restarted while a Plasma session is already
running (e.g. triggered by a pacman -Syu package upgrade hook, or after a crash
restart), the plasma-nm secret agent (kded module) does not re-register with
the freshly-restarted NetworkManager instance quickly enough.
NetworkManager attempts to auto-reconnect to the active Wi-Fi network
immediately after the restart, requests secrets from the (not yet
re-registered) agent, gets no usable response and fails with the misleading log
message no secrets: `User canceled the secrets request` (even though no user
interaction happened at all). NetworkManager's built-in retry logic eventually
succeeds a few tens of seconds later, once the agent has caught up, so the bug
is self-healing but causes a confusing ~1-2 minute Wi-Fi outage.

OBSERVED RESULT

NetworkManager restarts and wlan0 immediately attempts to auto-reconnect. The
first (sometimes second) reconnect attempt fails:

```
NetworkManager[71792]: <info> device (wlan0): Activation: (wifi) access point
'network' has security, but secrets are required.
NetworkManager[71792]: <info> device (wlan0): Activation: (wifi) connection
'network' has security, and secrets exist.  No new secrets needed.
NetworkManager[71792]: <warn> device (wlan0): no secrets: User canceled the
secrets request.
NetworkManager[71792]: <info> device (wlan0): state change: need-auth -> failed
(reason 'no-secrets', managed-type: 'full')
```

plasma-nm: 6.7.4-1.1
networkmanager-qt: 6.28.0-1.1
KWallet: 6.28.0-1.1
plasmashell: 6.7.4
Qt: 6.11.1
NetworkManager: 1.58.0
Kernel: 7.1.8-1-cachyos
Distribution: CachyOS Linux (Arch-based)
Session type: Wayland

Thanks,

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to