[Bug 1206897] Re: logind fails to work, falling back to ConsoleKit when /run/users already exists
Robert Ancell
robert.ancell at canonical.com
Wed Jul 31 12:38:05 UTC 2013
The relevant code in systemd is src/login/logind-user.c:
static int user_mkdir_runtime_path(User *u) {
char *p;
int r;
assert(u);
r = mkdir_safe_label("/run/user", 0755, 0, 0);
if (r < 0) {
log_error("Failed to create /run/user: %s", strerror(-r));
return r;
}
It would seem that the directory already exists should not be considered
an error?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1206897
Title:
logind fails to work, falling back to ConsoleKit when /run/users
already exists
Status in “systemd” package in Ubuntu:
New
Bug description:
When testing Mir I've found a case where logind fails and this causes
the user to lose access the hardware accelerated rendering. The cause
is (for some unknown reason) /run/user exists and logind aborts when
trying to open a session.
From /var/log/auth.log:
Jul 31 13:25:07 alchemy lightdm: pam_unix(lightdm:session): session opened for user bob by (uid=0)
Jul 31 13:25:07 alchemy systemd-logind[725]: Failed to create /run/user: File exists
Jul 31 13:25:07 alchemy lightdm: pam_systemd(lightdm:session): Failed to create session: File exists
When this first occurred it would persist between reboots and went
away eventually (don't know if I did anything to cause that).
The second time it occurred I did:
$ sudo stop lightdm
$ sudo umount /run/user
$ sudo rmdir /run/user
$ sudo start lightdm
and this fixes the problem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1206897/+subscriptions
More information about the foundations-bugs
mailing list