package rabbitmq-server 1.7.2-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #748501 reported by Jeremy Mullin
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
rabbitmq-server (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: rabbitmq-server

Description: Ubuntu 10.04.2 LTS
Release: 10.04

rabbitmq-server:
  Installed: 1.7.2-1ubuntu1
  Candidate: 1.7.2-1ubuntu1
  Version table:
 *** 1.7.2-1ubuntu1 0
        500 http://archive.linux.duke.edu/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

Expected the package to install
Instead was prompted for a password to start or stop the server. Install hung until <enter> pressed and then failed
Reseting rabbitmq user password to something known and entering that when prompted allows the rabbitmq server to start

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: rabbitmq-server 1.7.2-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-28.55-generic-pae 2.6.32.27+drm33.12
Uname: Linux 2.6.32-28-generic-pae i686
Architecture: i386
Date: Sat Apr 2 11:13:00 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
PackageArchitecture: all
SourcePackage: rabbitmq-server
Title: package rabbitmq-server 1.7.2-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Revision history for this message
Jeremy Mullin (verheek) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug and helping to make Ubuntu better.

I can't reproduce this on a stock lucid machine. Had you previously installed rabbitmq? If you apt-get purge rabbitmq-server and then reinstall it, do you still get this error?

Changed in rabbitmq-server (Ubuntu):
status: New → Incomplete
Revision history for this message
Jeremy Mullin (verheek) wrote :

Thanks for your response.

I tried apt-get purge rabbitmq-server followed by reinstall and it doesn't solve the problem.

I still get

Setting up rabbitmq-server (1.7.2-1ubuntu1) ...
Starting rabbitmq-server: TIMEOUT - check /var/log/rabbitmq/startup_{log,err}
rabbitmq-server.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

$cat /var/log/rabbitmq/startup_err
Password:
su: Authentication failure

After digging into the rabbitmq-server.postinst script, I found that the issue has to do with changing to the rabbitmq user before starting the rabbitmq server. If the rabbitmq users' password is changed to a known value and entered when the server starts, then the install succeeds. Otherwise it fails.

I worked around one issue by following this thread: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/735341?comments=all

This stopped it from asking for the root password when the --gecos option is invoke with adduser.

But if I execute

 su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/rabbitmq-multi status"

I get a password: prompt and nothing works I suppose because it's blank. This is authentication failure is what is logged in startup_err

Revision history for this message
Jeremy Mullin (verheek) wrote :

Ok I did this:

sudo sed -i 's/nullok_secure/nullok/' /etc/pam.d/common-auth

And now it works.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for rabbitmq-server (Ubuntu) because there has been no activity for 60 days.]

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.