[Bug 854490] Re: update from natty to oneiric hangs on libpam0g upgrade and cups reload

Steve Langasek steve.langasek at canonical.com
Tue Sep 20 17:46:13 UTC 2011


Attached is a cups upstart job that avoids the need for polling in the
post-start script by using 'expect daemon', which is how this *should*
work.  However, there seem to be a pair of bugs preventing this from
working as designed.  First, upstart does not wait until cups is
daemonized before considering the main process started; this may have to
do with the fact that cups re-execs itself with different arguments
(strange?).  Second, even though cupsd immediately dies with a symbol
error, upstart marks the job as "running" with no PID.

We still need to fix the libcups2/cups package relationships regardless,
and we should probably just leave the cups upstart job alone for now.
I'll raise bugs on upstart for the discovered issues.

** Attachment added: "cups.conf"
   https://bugs.launchpad.net/ubuntu/+source/pam/+bug/854490/+attachment/2432344/+files/cups.conf

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pam in Ubuntu.
https://bugs.launchpad.net/bugs/854490

Title:
  update from natty to oneiric hangs on libpam0g upgrade and cups reload

Status in “cups” package in Ubuntu:
  In Progress
Status in “pam” package in Ubuntu:
  Confirmed
Status in “cups” source package in Oneiric:
  In Progress
Status in “pam” source package in Oneiric:
  Confirmed

Bug description:
  TEST CASE:
  1. Install Natty and apply updates
  2. run update-manager -d and proceed with the upgrade to 11.10

  Result:
  The upgrade hangs at libpam0g upgrade when cups is reloaded. The last message displayed on console and terminal log is:
  Restarting services possibly affected by the upgrade:
    gdm: reloading...done.
    cups: stopping...starting...

  The following message is displayed and repeated in syslog
  Sep 20 09:19:36 ubuntu-VirtualBox kernel: [ 1893.528204] type=1400 audit(1316503176.331:210): apparmor="STATUS" operation="profile_replace" name="/usr/lib/cups/backend/cups-pdf" pid=18386 comm="apparmor_parser"
  Sep 20 09:19:36 ubuntu-VirtualBox kernel: [ 1893.528494] type=1400 audit(1316503176.331:211): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/cupsd" pid=18386 comm="apparmor_parser"
  Sep 20 09:19:36 ubuntu-VirtualBox init: cups main process (18387) terminated with status 127
  Sep 20 09:19:36 ubuntu-VirtualBox init: cups main process ended, respawning

  The following cups processes are running:
  root     16275  0.0  0.0   2028   512 pts/2    S+   09:11   0:00 /bin/sh -e /etc/init.d/cups start
  root     16279  0.0  0.1   4944  1292 pts/2    S+   09:11   0:00 start cups

  Killing process 16275 allows to continue the upgrade.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: update-manager 1:0.150.3
  ProcVersionSignature: Ubuntu 2.6.38-11.48-generic 2.6.38.8
  Uname: Linux 2.6.38-11-generic i686
  Architecture: i386
  Date: Tue Sep 20 09:13:29 2011
  GConfNonDefault:
   /apps/update-manager/check_new_release_ignore=
   /apps/update-manager/first_run=false
   /apps/update-manager/window_size=(600,600)
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_US:en
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: update-manager
  UpgradeStatus: Upgraded to natty on 2011-09-20 (0 days ago)

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




More information about the foundations-bugs mailing list