Bug 731358

Summary: pam_systemd errors (Failed to create session) in /var/log/messages
Product: [openSUSE] openSUSE 12.1 Reporter: Jon Nelson <jnelson-suse>
Component: BasesystemAssignee: Frederic Crozat <fcrozat>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: crrodriguez
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jon Nelson 2011-11-18 13:46:46 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

After upgrade to 12.1 my /var/log/messages has stuff like this:

Nov 17 17:19:05 turnip su: (to nobody) root on none
Nov 17 17:19:05 turnip su: pam_systemd(su:session): Failed to create session: Invalid argument
Nov 17 17:19:05 turnip su: (to nobody) root on none
Nov 17 17:19:05 turnip su: pam_systemd(su:session): Failed to create session: Invalid argument
Nov 17 17:19:05 turnip su: (to nobody) root on none
Nov 17 17:19:05 turnip su: pam_systemd(su:session): Failed to create session: Invalid argument


I think these are ultimately from cron.


Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Jon Nelson 2011-11-18 14:33:31 UTC
the 'session' lines from /etc/pam.d/su

session  include        common-session
session  optional       pam_xauth.so

all of common-session:


#%PAM-1.0
#
# This file is autogenerated by pam-config. All changes
# will be overwritten.
#
# Session-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define tasks to be performed
# at the start and end of sessions of *any* kind (both interactive and
# non-interactive
#
session required        pam_limits.so   
session required        pam_unix2.so
session optional        pam_umask.so
session optional        pam_systemd.so
session optional        pam_gnome_keyring.so    auto_start only_if=gdm,gdm-password,lxdm,lightdm 





perhaps this is related to the 'optional not being really optional' bug I posted earlier - bug 730851
Comment 2 Frederic Crozat 2011-11-29 12:26:15 UTC
hmm, if it is really cron, it could be like https://bugzilla.redhat.com/show_bug.cgi?id=727315


please test package from home:fcrozat:systemd / systemd, it contains the fixes from the RH bug.
Comment 3 Jon Nelson 2011-11-30 23:22:26 UTC
The package does, indeed, resolve the issue.
Thanks!
Comment 4 Frederic Crozat 2011-12-01 10:07:10 UTC
excellent, I'll make sure it is shipped as part of the next maintenance update (and I'll close this bug as this moment)
Comment 5 Frederic Crozat 2011-12-09 14:41:29 UTC
sr 96122 pushed to openSUSE:12.1:Update:Test
requesting maintenance update for 12.1
Comment 6 Bernhard Wiedemann 2011-12-09 15:00:43 UTC
This is an autogenerated message for OBS integration:
This bug (731358) was mentioned in
https://build.opensuse.org/request/show/96122 12.1 / systemd
https://build.opensuse.org/request/show/96125 Factory / systemd
Comment 7 Bernhard Wiedemann 2011-12-09 18:00:40 UTC
This is an autogenerated message for OBS integration:
This bug (731358) was mentioned in
https://build.opensuse.org/request/show/96193 Factory / systemd
Comment 8 Bernhard Wiedemann 2011-12-12 17:00:52 UTC
This is an autogenerated message for OBS integration:
This bug (731358) was mentioned in
https://build.opensuse.org/request/show/96377 12.1 / systemd
Comment 10 Cristian Rodríguez 2011-12-17 15:23:11 UTC
Fixes has been submitted
Comment 11 Frederic Crozat 2012-01-04 09:25:18 UTC
Maintenance update for 12.1 has been released