[Bug 711635] Re: init: post-start can cause respawn to hang

Steve Langasek steve.langasek at canonical.com
Fri Jun 1 03:19:34 UTC 2012


** Also affects: upstart (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: upstart (Ubuntu)
   Importance: Undecided => Medium

** Changed in: upstart (Ubuntu)
       Status: New => Triaged

** Changed in: upstart (Ubuntu)
     Assignee: (unassigned) => James Hunt (jamesodhunt)

** Changed in: upstart (Ubuntu Lucid)
       Status: New => Won't Fix

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

Title:
  init: post-start can cause respawn to hang

Status in Upstart:
  Triaged
Status in “mysql-5.1” package in Ubuntu:
  Invalid
Status in “mysql-5.5” package in Ubuntu:
  Fix Released
Status in “mysql-dfsg-5.1” package in Ubuntu:
  Invalid
Status in “upstart” package in Ubuntu:
  Triaged
Status in “mysql-5.1” source package in Lucid:
  Invalid
Status in “mysql-5.5” source package in Lucid:
  Invalid
Status in “mysql-dfsg-5.1” source package in Lucid:
  Triaged
Status in “upstart” source package in Lucid:
  Won't Fix
Status in “mysql-5.1” source package in Natty:
  Triaged
Status in “mysql-5.5” source package in Natty:
  Invalid
Status in “mysql-dfsg-5.1” source package in Natty:
  Invalid
Status in “upstart” source package in Natty:
  New
Status in “mysql-5.1” source package in Oneiric:
  Triaged
Status in “mysql-5.5” source package in Oneiric:
  Invalid
Status in “mysql-dfsg-5.1” source package in Oneiric:
  Invalid
Status in “upstart” source package in Oneiric:
  New
Status in “mysql-5.1” source package in Precise:
  Invalid
Status in “mysql-5.5” source package in Precise:
  Fix Released
Status in “mysql-dfsg-5.1” source package in Precise:
  Invalid
Status in “upstart” source package in Precise:
  New

Bug description:
  == SRU Justification ==

  = IMPACT =

  Users who have inadvertently broken their mysql configuration will be
  met with a hung package upgrade process on any updates, and no easy
  way to see that fact.

  = TEST CASE: =

  1. sudo apt-get install mysql-server
  2. edit /etc/mysql/my.cnf and add an invalid variable to the [mysqld] section
  3. sudo apt-get --reinstall install mysql-server - affected system will hang forever on the 'start' of mysql
  4. in another terminal, verify status of mysql job is 'start/respawn'
  5. in that second terminal, run 'sudo stop mysql'
  6. first terminal should now be "unlocked"
  7. install updated package
  8. install should error out or move on quietly after trying to start mysql, but not hang indefinitely.

  = Dev Fix =

  This was fixed in the 5.5 packages by making sure that in the post-
  start if the job is in 'respawn' that the post-start is aborted
  immediately.

  = REGRESSION POTENTIAL =

  Its possible that this code will cause some systems to error out where
  they would keep retrying forever. This might be particularly
  problematic in systems that use configuration management like puppet
  or chef, where they would boot the system, and then run the config
  management to apply the correct configs.

  ========

  I believe that it is looking for some input when updating mysql.  The
  updating just stops when mysql is being updated.  There is no dialog
  box to be found.  This has happened to me several times on different
  computers.

  ProblemType: Package
  DistroRelease: Ubuntu 10.04
  Package: mysql-server-5.1 5.1.41-3ubuntu12.9
  ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
  Uname: Linux 2.6.32-27-generic x86_64
  NonfreeKernelModules: wl nvidia
  Architecture: amd64
  Date: Tue Feb  1 18:32:38 2011
  ErrorMessage: subprocess installed post-installation script killed by signal (Terminated)
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
  MySQLConf.etc.mysql.conf.d.mysqld.safe.syslog.cnf:
   [mysqld_safe]
   syslog
  MySQLVarLibDirListing: ['mysql', 'debian-5.1.flag']
  SourcePackage: mysql-dfsg-5.1
  Title: package mysql-server-5.1 5.1.41-3ubuntu12.9 failed to install/upgrade: subprocess installed post-installation script killed by signal (Terminated)
  mtime.conffile..etc.apparmor.d.usr.sbin.mysqld: 2010-03-06T11:30:30.842210

To manage notifications about this bug go to:
https://bugs.launchpad.net/upstart/+bug/711635/+subscriptions




More information about the foundations-bugs mailing list