← Back to team overview

touch-packages team mailing list archive

[Bug 1249515] Re: regression with session-cleanup-script triggering without actual logins

 

My problem was caused by a broken lightdm.conf
After fixing the configuration file the session-cleanup-script works as intended. Thats why  I mark this bug as Fix Released.

** Changed in: lightdm (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1249515

Title:
  regression with session-cleanup-script triggering without actual
  logins

Status in “lightdm” package in Ubuntu:
  Fix Released

Bug description:
  Description:
  In Ubuntu 13.10, session-cleanup scripts trigger before a session has started.  Simply clicking between users at the login menu triggers the session cleanup script.   In my particular configuration this triggers a logout script that runs rsync with the --delete flag.  Clicking between users runs the risk of deleting good files rather than doing backups as in prior releases so I can't update all my computers until fixed. The example below replicates and visually shows the effect.  While running, the user cannot login until it has completed and depending on what the logout script does it can cause problems.

  Configuration to Replicate:
  /etc/lightdm/lightdm.conf
  session-setup-script = /usr/bin/gnome-terminal --command "/bin/sleep 10"
  session-cleanup-script = /usr/bin/gnome-terminal --command "/bin/sleep 10"

  Version Information:
  `lsb_release -rd`
  Description:	Ubuntu 13.10
  Release:	13.10

  `apt-cache policy lightdm`
  lightdm:
    Installed: 1.8.4-0ubuntu1
    Candidate: 1.8.4-0ubuntu1
    Version table:
   *** 1.8.4-0ubuntu1 0
          500 http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
          500 http://security.ubuntu.com/ubuntu/ saucy-security/main amd64 Packages
          100 /var/lib/dpkg/status
       1.8.2-0ubuntu1 0
          500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages

  Log information (while clicking between users at login screen):
  `cat /var/log/lightdm/lightdm.log`
  [+825.63s] DEBUG: Session pid=8564: Greeter start authentication for nixadm
  [+825.63s] DEBUG: Session pid=12697: Sending SIGTERM
  [+825.63s] DEBUG: Seat: Setting XDG_SEAT=seat0
  [+825.63s] DEBUG: Session: Setting XDG_VTNR=7
  [+825.63s] DEBUG: Session pid=29773: Started with service 'lightdm', username 'nixadm'
  [+825.63s] DEBUG: Session pid=12697: Terminated with signal 15
  [+825.63s] DEBUG: Session: Failed during authentication
  [+825.63s] DEBUG: Seat: Session stopped
  [+825.64s] DEBUG: Launching process 29780: /usr/bin/gnome-terminal --command "/bin/sleep 10"
  [+835.82s] DEBUG: Process 29780 exited with return value 0
  [+835.82s] DEBUG: Seat: Exit status of /usr/bin/gnome-terminal --command "/bin/sleep 10": 0
  [+835.82s] DEBUG: Session pid=29773: Got 1 message(s) from PAM
  [+835.82s] DEBUG: Session pid=8564: Prompt greeter with 1 message(s)
  [+836.30s] DEBUG: Session pid=8564: Greeter start authentication for jason
  [+836.30s] DEBUG: Session pid=29773: Sending SIGTERM
  [+836.30s] DEBUG: Seat: Setting XDG_SEAT=seat0
  [+836.30s] DEBUG: Session: Setting XDG_VTNR=7
  [+836.31s] DEBUG: Session pid=29790: Started with service 'lightdm', username 'jason'
  [+836.31s] DEBUG: Session pid=29773: Terminated with signal 15
  [+836.31s] DEBUG: Session: Failed during authentication
  [+836.31s] DEBUG: Seat: Session stopped
  [+836.32s] DEBUG: Launching process 29797: /usr/bin/gnome-terminal --command "/bin/sleep 10"
  [+846.47s] DEBUG: Process 29797 exited with return value 0
  [+846.47s] DEBUG: Seat: Exit status of /usr/bin/gnome-terminal --command "/bin/sleep 10": 0
  [+846.47s] DEBUG: Session pid=29790: Got 1 message(s) from PAM
  [+846.47s] DEBUG: Session pid=8564: Prompt greeter with 1 message(s)
  [+846.92s] DEBUG: Session pid=8564: Greeter start authentication for nixadm
  [+846.92s] DEBUG: Session pid=29790: Sending SIGTERM
  [+846.92s] DEBUG: Seat: Setting XDG_SEAT=seat0
  [+846.92s] DEBUG: Session: Setting XDG_VTNR=7
  [+846.92s] DEBUG: Session pid=30421: Started with service 'lightdm', username 'nixadm'
  [+846.93s] DEBUG: Session pid=29790: Terminated with signal 15
  [+846.93s] DEBUG: Session: Failed during authentication
  [+846.93s] DEBUG: Seat: Session stopped
  [+846.94s] DEBUG: Launching process 30428: /usr/bin/gnome-terminal --command "/bin/sleep 10"
  [+857.08s] DEBUG: Process 30428 exited with return value 0
  [+857.08s] DEBUG: Seat: Exit status of /usr/bin/gnome-terminal --command "/bin/sleep 10": 0
  [+857.08s] DEBUG: Session pid=30421: Got 1 message(s) from PAM
  [+857.08s] DEBUG: Session pid=8564: Prompt greeter with 1 message(s)
  [+857.60s] DEBUG: Session pid=8564: Greeter start authentication for jason
  [+857.60s] DEBUG: Session pid=30421: Sending SIGTERM
  [+857.61s] DEBUG: Seat: Setting XDG_SEAT=seat0
  [+857.61s] DEBUG: Session: Setting XDG_VTNR=7
  [+857.61s] DEBUG: Session pid=30437: Started with service 'lightdm', username 'jason'
  [+857.61s] DEBUG: Session pid=30421: Terminated with signal 15
  [+857.61s] DEBUG: Session: Failed during authentication
  [+857.61s] DEBUG: Seat: Session stopped
  [+857.63s] DEBUG: Launching process 30444: /usr/bin/gnome-terminal --command "/bin/sleep 10"
  [+867.77s] DEBUG: Process 30444 exited with return value 0
  [+867.77s] DEBUG: Seat: Exit status of /usr/bin/gnome-terminal --command "/bin/sleep 10": 0
  [+867.77s] DEBUG: Session pid=30437: Got 1 message(s) from PAM
  [+867.77s] DEBUG: Session pid=8564: Prompt greeter with 1 message(s)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1249515/+subscriptions


Follow ups