Bug#755904: libpam-systemd: error in log after upgrade

Benoit Friry benoit at friry.net
Thu Jul 24 14:20:03 BST 2014


Bonjour,

>> After upgrade, I get lots of error in auth.log:
>> Jul 24 11:45:17 host sshd[23128]: pam_systemd(sshd:session): Failed to create session: Invalid argument
 
> Is systemd-logind running?

# ps -ef|grep -v grep|grep systemd
root      5244     1  0 juin29 ?       00:00:47 /lib/systemd/systemd-logind

> What's the output of loginctl before and after you login via ssh?

no change

# loginctl
   SESSION        UID USER             SEAT
      5835       1001 laetitia         seat0
      6240       1001 laetitia         seat0
      6825       1001 laetitia         seat0
      8175       1001 laetitia         seat0
      8800       1001 laetitia         seat0
     10457       1001 laetitia         seat0
     22932       1001 laetitia         seat0
     24252       1001 laetitia         seat0
     26832       1001 laetitia         seat0
     31435       1001 laetitia         seat0
     49651       1001 laetitia         seat0
     49654       1001 laetitia         seat0
      1197       1000 benoit           seat0

13 sessions listed.

[login from somewhere else]

# loginctl
   SESSION        UID USER             SEAT
      5835       1001 laetitia         seat0
      6240       1001 laetitia         seat0
      6825       1001 laetitia         seat0
      8175       1001 laetitia         seat0
      8800       1001 laetitia         seat0
     10457       1001 laetitia         seat0
     22932       1001 laetitia         seat0
     24252       1001 laetitia         seat0
     26832       1001 laetitia         seat0
     31435       1001 laetitia         seat0
     49651       1001 laetitia         seat0
     49654       1001 laetitia         seat0
      1197       1000 benoit           seat0

13 sessions listed.

> Could you edit /etc/pam.d/common-session and append a "debug=true" to the
> session optional pam_systemd.so
> line
> 
> This should give you a more verbose log.
> Do you get anything in the journal? Specifically by systemd-logind?
> You can filter it via "journalctl --unit systemd-logind.service"

journalctl --unit systemd-logind.service
No journal files were found.

in /var/log/auth.log
Jul 24 15:16:52 tc2 sshd[1427]: Accepted password for benoit from xxx.xxx.xxx.xxx port 18475 ssh2
Jul 24 15:16:52 tc2 sshd[1427]: pam_unix(sshd:session): session opened for user benoit by (uid=0)
Jul 24 15:16:52 tc2 sshd[1427]: pam_systemd(sshd:session): pam-systemd initializing
Jul 24 15:16:52 tc2 sshd[1427]: pam_systemd(sshd:session): Asking logind to create session: uid=1000 pid=1427 service=sshd type=tty class=user seat= vtnr=0 tty= display= remote=yes remote_user= remote_host=xxx.xxx.xxx.xxx
Jul 24 15:16:52 tc2 sshd[1427]: pam_systemd(sshd:session): Failed to create session: Invalid argument
Jul 24 15:18:15 tc2 sshd[1427]: pam_unix(sshd:session): session closed for user benoit

Regards,
Benoit




More information about the Pkg-systemd-maintainers mailing list