Restarting rabbitmq-server from another package's postinst hangs the init script

Bug #968124 reported by Robie Basak on 2012-03-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rabbitmq-server (Ubuntu)
High
Andres Rodriguez
Precise
High
Andres Rodriguez

Bug Description

Step to reproduce:
    apt-get -y install maas

This hangs on "initctl emit rabbitmq-server-running". According to a discussion in #ubuntu-devel yesterday, this is the wrong way to do it.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: rabbitmq-server 2.7.1-0ubuntu3
ProcVersionSignature: User Name 3.2.0-20.32-virtual 3.2.12
Uname: Linux 3.2.0-20-virtual x86_64
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Thu Mar 29 10:14:54 2012
Ec2AMI: ami-00000000
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 LC_COLLATE=C
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: rabbitmq-server
UpgradeStatus: No upgrade log present (probably fresh install)

Robie Basak (racb) wrote :
Changed in rabbitmq-server (Ubuntu):
status: New → Triaged
importance: Undecided → High
Robie Basak (racb) wrote :

Bug 966269 is related: we need a way that works both when maas is installed from the installer as well as when installed later.

James Page (james-page) on 2012-03-29
Changed in rabbitmq-server (Ubuntu Precise):
milestone: none → ubuntu-12.04
Robie Basak (racb) wrote :

Workaround: run both "sudo initctl emit filesystem" and "sudo initctl emit net-device-up". Both are needed and both will hang. When the original emit is freed, the "emit filesystem" will continue to hang. But at least you'll have maas installed.

Dave Walker (davewalker) on 2012-03-29
Changed in rabbitmq-server (Ubuntu Precise):
assignee: nobody → Andres Rodriguez (andreserl)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rabbitmq-server - 2.7.1-0ubuntu4

---------------
rabbitmq-server (2.7.1-0ubuntu4) precise; urgency=low

  [ Dave Walker ]
  * debian/rabbitmq-script-wrapper: Use start-stop-daemon instead of su
    to run the commands. This also allows rabbitmq to start on the
    installer if invoke-rc.d is used with --force. (LP: #966269)

  [ Andres Rodriguez ]
  * debian/rabbitmq-server.init: Use --no-wait in initctl emit command to
    not stall apt-get installations. (LP: #968124)
 -- Andres Rodriguez <email address hidden> Thu, 29 Mar 2012 10:46:26 -0400

Changed in rabbitmq-server (Ubuntu Precise):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers