After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 727621 - Hung agent prevents second agent of same process from registering
Hung agent prevents second agent of same process from registering
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-04-04 17:46 UTC by Dan Williams
Modified: 2020-11-12 14:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Williams 2014-04-04 17:46:26 UTC
---
Since boot, I had logged in, then later logged out, logged in again, suspended, and this morning I resumed the system and that's when I noticed the problem.

I spotted that there was a 2nd 'gnome-shell' process busy-looping -- not the one from my current session -- and killed it (sorry, didn't look to see what it was doing). At that point I saw:

Apr 04 09:27:16 rubik polkitd[11872]: Unregistered Authentication Agent for unix-session:1 (system bus name :1.80, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.utf8) (disconnected from bus)

The VPN password dialog still wouldn't work of course: I had to use Alt-F2 and 'r' to reload the shell in order for it to re-register as an authentication agent.

Once I'd done this, it worked fine again.
---

Since NM only allows one name+UID to register as an agent at the same time, the hung gnome-shell prevented the working gnome-shell from registering.  Then, when the first gnome-shell was killed, the working gnome-shell had no idea it could re-register.  Obviously a bug in gnome-shell caused the first one to hang, but we can do better.

We could add a signal to the NM Agent interface that is emitted a second or two after any agent quits, which unregistered agents (like the working gnome-shell) could listen for and attempt to re-register.  We'd want to rate-limit this signal (thus the delay, and also to prevent re-registration races) but it would solve this particular issue and provide a better experience for users.
Comment 1 André Klapper 2020-11-12 14:27:22 UTC
bugzilla.gnome.org is being shut down in favor of a GitLab instance. 
We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time.

If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/

Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).