[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#893819: marked as done (systemd-shim: logind does not create a session, because systemd-shim does not create /init.scope like systemd does)



Your message dated Sat, 01 Dec 2018 03:05:54 +0000
with message-id <[🔎] E1gSvbO-000HPq-8k@fasolo.debian.org>
and subject line Bug#915038: Removed package(s) from unstable
has caused the Debian Bug report #893819,
regarding systemd-shim: logind does not create a session, because systemd-shim does not create /init.scope like systemd does
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
893819: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893819
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: systemd-shim
Version: 10-3
Severity: important

Preface:
Some software begins to depends on an existing logind-session.
These sessions are created + tracked via libpam-systemd, which makes
an dbus call to systemd-logind.

systemd-shim it here to support logind, which replaces consolekit
(AFAIUI) on systems where systemd is not the init process (i.e. pid 1).

Problem:
In auth.log:
  login[6880]: pam_systemd(login:session): Failed to create session: No such device or address

The message belongs to -ENXIO, which is emitted here:
  https://github.com/systemd/systemd/blob/master/src/basic/cgroup-util.c#L1458

Result:
$ loginctl
   SESSION        UID USER             SEAT             TTY

   0 sessions listed.

Expected result:
$ loginctl
  [... some sessions ...]

Root cause:
$ systemd-cgls
Control group /:
-.slice
├─   1 init [2]
├─1630 /lib/systemd/systemd-udevd --daemon
├─3661 /sbin/rpcbind -w
[...]

$ cat /proc/1/cgroup    # or some other pid
4:name=systemd:/
[...]

But since systemd 226 (AFAICT), all pids are moved (by systemd as init)
into the /init.scope cgroup.
In the systemd-shim case, systemd-logind still expects pid 1 and the pid
of the login process to be in a such named cgroup - but fails, because
everything is in the root slice (-.slice) and "nothing comes after the /".

Evidence:
$ mkdir /sys/fs/cgroup/systemd/init.scope
$ echo 1 > /sys/fs/cgroup/systemd/init.scope/tasks
  # ... move login process (kdm/mingetty/...) there, too ...
  # e.g. by respawning mingetty on a particular tty, e.g. tty4
$ systemd-cgls  # or: cat  /proc/$PID/cgroup
  [... those two processes are indeed now in the new cgroup ...]

Now login on that tty4, so that the login process is
(resp. will be spawned in) the /init.scope cgroup.

$ loginctl
   [...]
   1 sessions listed.

Required action:
systemd-shim has to adjust the cgroups (using cgmanager?) accordingly
for systemd-logind (and thus pam-logind) to succeed.

Thank you.


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 4.16.0-rc6 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemd-shim depends on:
ii  cgmanager     0.41-2
ii  libc6         2.27-2
ii  libglib2.0-0  2.53.4-3

systemd-shim recommends no packages.

Versions of packages systemd-shim suggests:
ii  pm-utils  1.4.1-9

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 10-3+rm

Dear submitter,

as the package systemd-shim has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/915038

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: