[Bug 1108570] New: After restarting NetworkManager service, it cannot read passwords from wallet
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 Bug ID: 1108570 Summary: After restarting NetworkManager service, it cannot read passwords from wallet Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network Assignee: bnc-team-screening@forge.provo.novell.com Reporter: adam@mizerski.pl QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Requirements: - KDE - NetworkManager that has a wifi password saved in kwallet Steps to reproduce: - connect to password protected wifi - sudo systemctl restart NetworkManager Expected result: - wifi is set up correctly Actual result: - passwords don't show in gui in wifi security section - connecting to wifi fails, logs says: <info> [1537078992.8413] device (wlp1s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed') <warn> [1537078992.9063] device (wlp1s0): No agents were available for this request. <info> [1537078992.9067] device (wlp1s0): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed') Workarounds: - `nmcli connection up <connection name> --ask` - log out and log in again -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 Frank Kruger <fkrueger@mailbox.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fkrueger@mailbox.org -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 http://bugzilla.opensuse.org/show_bug.cgi?id=1108570#c2 Cimba Li <me@cimba.li> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |me@cimba.li --- Comment #2 from Cimba Li <me@cimba.li> --- Created attachment 784688 --> http://bugzilla.opensuse.org/attachment.cgi?id=784688&action=edit Journal log of failed connection -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 http://bugzilla.opensuse.org/show_bug.cgi?id=1108570#c3 --- Comment #3 from Cimba Li <me@cimba.li> --- I have what I think is the same bug. When the passwords do not show in the NetworkManager "Connections" configuration panel, an error popup shows "Failed to get secrets for <SSID>. No agents were available for this request." Strangely, if a connection is added through nmcli with "nmcli device wifi connect ...", opening the connection in the configuration panel asks for the root password, and the secrets are then displayed correctly. I attach the system journal for 2 attempts to connect to "eduroam". Here's also the versions of a few potentially related packages: plasma-framework-5.49.0-1.1.x86_64 plasma-nm5-5.13.5-1.1.x86_64 kwalletd5-5.49.0-1.1.x86_64 kwalletmanager5-18.08.1-1.1.x86_64 kwalletmanager-15.04.3-2.12.x86_64 kwallet-tools-5.49.0-1.1.x86_64 NetworkManager-1.12.2-1.2.x86_64 NetworkManager-applet-1.8.18-1.1.x86_64 NetworkManager-connection-editor-1.8.18-1.1.x86_64 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 http://bugzilla.opensuse.org/show_bug.cgi?id=1108570#c4 Fabian Vogt <fabian@ritter-vogt.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS Flags|needinfo?(adam@mizerski.pl) | --- Comment #4 from Fabian Vogt <fabian@ritter-vogt.de> --- It seems to be a quirk in how NM sets up its DBus interface. I reported that as https://bugs.kde.org/show_bug.cgi?id=400359 and wrote a workaround patch. Please try with libKF5NetworkManagerQt6 from obs://home:Vogtinator:boo1108570/openSUSE_Factory and report back. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 http://bugzilla.opensuse.org/show_bug.cgi?id=1108570#c5 --- Comment #5 from Cimba Li <me@cimba.li> --- I installed osc but I didn't manage to find out how to access your fix from that obs URL. Is there a walkthrough somewhere, or the full url that is shortened with obs:// ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 http://bugzilla.opensuse.org/show_bug.cgi?id=1108570#c6 --- Comment #6 from Cimba Li <me@cimba.li> --- Nevermind, I finally managed to build and install your proposed patched libKF5NetworkManagerQt. It seems to fix the problem, though I have only tested it for a short while so far. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 http://bugzilla.opensuse.org/show_bug.cgi?id=1108570#c7 Till Dörges <doerges@pre-sense.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |doerges@pre-sense.de --- Comment #7 from Till Dörges <doerges@pre-sense.de> --- It appears that a standard openSUSE Leap 15.1 suffers from the same issue (and it's actually quite annoying). Shall I open a separate bug for that? FTR, I have these RPMs: libKF5NetworkManagerQt6-5.55.0-lp151.1.1.x86_64 NetworkManager-1.10.6-lp151.8.1.x86_64 plasma-nm5-5.12.8-lp151.1.1.x86_64 And after restarting plasmashell killall plasmashell ; sleep 3; plasmashell & I cannot activate network connections that require a password. Normally a PW dialog for unlocking kwallet appears, but not after a restart. With journalctl I find this: --- snip --- Aug 28 12:37:21 box NetworkManager[28889]: <info> [1566988641.8457] device (wlan1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') Aug 28 12:37:21 box NetworkManager[28889]: <info> [1566988641.8467] device (wlan1): Activation: (wifi) access point 'WLANSSID' has security, but secrets are required. Aug 28 12:37:21 box NetworkManager[28889]: <info> [1566988641.8467] device (wlan1): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed') Aug 28 12:37:21 box NetworkManager[28889]: <warn> [1566988641.8500] device (wlan1): No agents were available for this request. Aug 28 12:37:21 box NetworkManager[28889]: <info> [1566988641.8501] device (wlan1): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed') Aug 28 12:37:21 box NetworkManager[28889]: <warn> [1566988641.8511] device (wlan1): Activation: failed for connection 'WLANSSID' --- snap --- I had a look at https://build.opensuse.org/project/show/home:Vogtinator:boo1108570, but currently it doesn't seem to build. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 http://bugzilla.opensuse.org/show_bug.cgi?id=1108570#c8 --- Comment #8 from Fabian Vogt <fvogt@suse.com> --- (In reply to Till Dörges from comment #7)
It appears that a standard openSUSE Leap 15.1 suffers from the same issue (and it's actually quite annoying).
Shall I open a separate bug for that?
If it's the same one, no.(In reply to Till Dörges from comment #7)
It appears that a standard openSUSE Leap 15.1 suffers from the same issue (and it's actually quite annoying).
Shall I open a separate bug for that?
FTR, I have these RPMs:
libKF5NetworkManagerQt6-5.55.0-lp151.1.1.x86_64 NetworkManager-1.10.6-lp151.8.1.x86_64 plasma-nm5-5.12.8-lp151.1.1.x86_64
And after restarting plasmashell
killall plasmashell ; sleep 3; plasmashell &
Don't use killall, use kquitapp5.
I cannot activate network connections that require a password.
Normally a PW dialog for unlocking kwallet appears, but not after a restart.
The secrets are provided by kded5, not plasmashell. So check whether kded5 is running. To restart, run kquitapp5 kded5; kded5 &
With journalctl I find this:
--- snip --- Aug 28 12:37:21 box NetworkManager[28889]: <info> [1566988641.8457] device (wlan1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') Aug 28 12:37:21 box NetworkManager[28889]: <info> [1566988641.8467] device (wlan1): Activation: (wifi) access point 'WLANSSID' has security, but secrets are required. Aug 28 12:37:21 box NetworkManager[28889]: <info> [1566988641.8467] device (wlan1): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed') Aug 28 12:37:21 box NetworkManager[28889]: <warn> [1566988641.8500] device (wlan1): No agents were available for this request. Aug 28 12:37:21 box NetworkManager[28889]: <info> [1566988641.8501] device (wlan1): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed') Aug 28 12:37:21 box NetworkManager[28889]: <warn> [1566988641.8511] device (wlan1): Activation: failed for connection 'WLANSSID' --- snap ---
I had a look at https://build.opensuse.org/project/show/home:Vogtinator:boo1108570, but currently it doesn't seem to build.
The patch in there is part of Leap 15.1 already. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 http://bugzilla.opensuse.org/show_bug.cgi?id=1108570#c9 --- Comment #9 from Till Dörges <doerges@pre-sense.de> --- (In reply to Fabian Vogt from comment #8)
And after restarting plasmashell
killall plasmashell ; sleep 3; plasmashell &
Don't use killall, use kquitapp5.
That does the trick. If I restart plasmashell with kquitapp5 instead of killall, the NM applet asks for a password to access kwallet. Thanks!
So check whether kded5 is running. To restart, run kquitapp5 kded5; kded5 &
And restarting kded5 with kquitapp5 also works. Thanks again. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 http://bugzilla.opensuse.org/show_bug.cgi?id=1108570#c10 Alexander Krupp <obs@akr.yagii.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |obs@akr.yagii.de --- Comment #10 from Alexander Krupp <obs@akr.yagii.de> --- With 15.1 the problem occurs every time after a suspend on a laptop, which is quite annoying, especially when frequently suspending during a long meeting. Quickest solution so far has been to go to the nm-applet and open the "Configure network connections..." dialog. After the dialog opens, the connection succeeds. The dialog seems to do something to kded5, which enables credential access. As per comment #9, the "kquitapp5 kded5; kded5 &" solution works, too. Will check whether there is a systemd/user/session-hook after suspend which can be used to automate that. Suggestions and ideas are welcome, however... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1108570 http://bugzilla.opensuse.org/show_bug.cgi?id=1108570#c11 --- Comment #11 from Alexander Krupp <obs@akr.yagii.de> --- Created attachment 841626 --> http://bugzilla.opensuse.org/attachment.cgi?id=841626&action=edit kded5-reload.service systemd user-service to restart kded5 after suspend; worksforme -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com