You are not logged in.

#1 2018-04-14 03:40:05

kalbasit
Member
Registered: 2016-09-12
Posts: 1

Systemd updated from 237.64-1 to 238.76-1 and loginctl is now broken

Hello,

I have a problem updating systemd from version 237 to 238 (I encountered this problem the day Arch shipped 238 but I haven't had the time to debug it then), and it seems that the problem is coming from pam_systemd calling loginctl.

So once systemd has been updated, logging in will produce no session:

$ loginctl 
   SESSION        UID USER             SEAT             TTY             

0 sessions listed.

I see this in the journal (with pam_systemd debug active)

Apr 13 20:32:16 zeus sshd[2156]: pam_unix(sshd:session): session opened for user kalbasit by (uid=0)
Apr 13 20:32:16 zeus sshd[2156]: pam_systemd(sshd:session): pam-systemd initializing
Apr 13 20:32:16 zeus sshd[2156]: pam_systemd(sshd:session): Asking logind to create session: uid=1026 pid=2156 service=sshd type=tty class=user desktop= seat= vtnr=0 tty= display= remote=yes remote_user= remote_host=172.25.10.60
Apr 13 20:32:16 zeus sshd[2156]: pam_systemd(sshd:session): Failed to create session: No such process

/etc/pam.d/system-login

#%PAM-1.0

auth       required   pam_tally.so         onerr=succeed file=/var/log/faillog
auth       required   pam_shells.so
auth       requisite  pam_nologin.so
auth       include    system-auth

account    required   pam_access.so
account    required   pam_nologin.so
account    include    system-auth

password   include    system-auth

session    optional   pam_loginuid.so
session    optional   pam_keyinit.so       force revoke
session    include    system-auth
session    optional   pam_motd.so          motd=/etc/motd
session    optional   pam_mail.so          dir=/var/spool/mail standard quiet
-session   optional   pam_systemd.so       debug
session    required   pam_env.so

Update log:

[2018-04-13 20:10] [ALPM] upgraded libsystemd (237.64-1 -> 238.76-1)
[2018-04-13 20:10] [ALPM] warning: /etc/systemd/logind.conf installed as /etc/systemd/logind.conf.pacnew
[2018-04-13 20:10] [ALPM] upgraded systemd (237.64-1 -> 238.76-1)
[2018-04-13 20:10] [ALPM] upgraded lib32-systemd (237.64-1 -> 238.76-1)
[2018-04-13 20:10] [ALPM] upgraded systemd-sysvcompat (237.64-1 -> 238.76-1)
$ diff -Naur /etc/systemd/logind.conf /etc/systemd/logind.conf.pacnew
--- /etc/systemd/logind.conf	2018-03-20 09:16:41.328767097 -0700
+++ /etc/systemd/logind.conf.pacnew	2018-04-09 05:09:02.000000000 -0700
@@ -18,9 +18,9 @@
 #KillOnlyUsers=
 #KillExcludeUsers=root
 #InhibitDelayMaxSec=5
-HandlePowerKey=ignore
-HandleHibernateKey=ignore
-HandleSuspendKey=ignore
+#HandlePowerKey=poweroff
+#HandleSuspendKey=suspend
+#HandleHibernateKey=hibernate
 #HandleLidSwitch=suspend
 #HandleLidSwitchExternalPower=suspend
 #HandleLidSwitchDocked=ignore

Offline

Board footer

Powered by FluxBB