Bug#770135: systemd: ssh logins considerably delayed (until PAM timeout) when systemd is upgraded but the system not rebooted

MichaƂ Skuza micskuza at pg.gda.pl
Mon Jul 20 14:17:45 BST 2015


Hi,

Just rebooted machine works ok:
Jul 20 14:25:22 sss sshd[8256]: pam_unix(sshd:session): session opened 
for user xxx by (uid=0)
Jul 20 14:25:22 sss systemd-logind[1129]: New session 233 of user xxx.
(no delay)

Problem appears after about 300 ssh logins (/var/log/auth.log):
Jul 20 15:07:02 sss sshd[10086]: pam_unix(sshd:session): session opened 
for user xxx by (uid=0)
Jul 20 15:07:32 sss sshd[10079]: pam_systemd(sshd:session): Failed to 
release session: Connection reset by peer
(15:07:32 - 15:07:02 = 30seconds delay)

After commenting out the line
"session    optional    pam_systemd.so "
from /etc/pam.d/common-session the system is working normally again even 
after 1000 logins.

apt-get upgrade was done today (20.07.2015) (reboot ofc) before tests
systemd 215-17+deb8u1 amd64

greetings,
Michał



More information about the Pkg-systemd-maintainers mailing list