Summary: | logind: when a user logs out and immediately back in again, user@.service might stay stopped | ||
---|---|---|---|
Product: | systemd | Reporter: | josé bollo <jobol> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | critical | ||
Priority: | high | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | systemctl status |
Description
josé bollo
2015-03-31 08:12:51 UTC
Hmm, so did I get this right: if the user fully logs out and immediately logs back in under the same user then it might happen that user@.service instance is still being stopped and no new start job will be queued? That is indeed a bug. This looks like an issue being discussed on the archlinux forms here: https://bbs.archlinux.org/viewtopic.php?pid=1548346#p1548346 The logs there in a malfunctioning instance *lack* this journalctl entry: > Jul 27 18:27:40 Think systemd-logind[287]: Removed session c2. Which subsequently prevents these entries which are in a working case but absent from the malfunctioning case: > Jul 27 18:27:45 Think systemd-logind[287]: New session c3 of user username. > Jul 27 18:27:45 Think systemd[1]: Started Session c3 of user username. > Jul 27 18:27:45 Think systemd[1]: Starting Session c3 of user username. In the malfunctioning case I get this instead: > Jul 27 18:28:41 Think login[517]: pam_systemd(login:session): Cannot create session: Already occupied by a session This seems to be triggered by any number of backgrounded processes including gpg-agent, a detachted tmux session, or dbus-launch. https://github.com/systemd/systemd/pull/9824 should fix things, but https://github.com/systemd/systemd/issues/10414 prevents the fix from working. Once #10414 is resolved, we should be able to close this. Let's close this. I am pretty sure this was fixed with 9afe9efb9340588db553950727a2a9672dc3db24 the latest. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.