package haveged 0.9-1 failed to install/upgrade: init script can't start daemon

Bug #569369 reported by Buddha
70
This bug affects 11 people
Affects Status Importance Assigned to Milestone
haveged (Debian)
Fix Released
Unknown
haveged (Ubuntu)
Fix Released
High
Unassigned
Lucid
Fix Released
High
Dustin Kirkland 

Bug Description

Binary package hint: haveged

..

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: haveged 0.9-1
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic i686
Architecture: i386
Date: Fri Apr 23 13:35:15 2010
ErrorMessage: podproces instalovaný post-installation skript vrátil chybový status 1
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
SourcePackage: haveged
Title: package haveged 0.9-1 failed to install/upgrade: podproces instalovaný post-installation skript vrátil chybový status 1

============
SRU Notes
1. IMPACT - The severity of this bug should be considered very high, for the haveged package. It is completely unusable and ineffectual without fixes to the init script. The package installation fails because the init script is unable to start the daemon.
2. DEVELOPMENT FIX - This bug was fixed very shortly after Lucid was released, by the upstream Debian package 0.9-3, which did land in the now-defunct Ubuntu Maverick release. The package has been stable and workable in Ubuntu ever since. Only Ubuntu 10.04 (lucid) is effected.
3. STABLE FIX - The stable fix is quite simply to cherry pick the init script changes the Debian maintainer introduced in 0.9-3. I have attached a minimal debdiff in Comment #6 in this bug.
4. TEST CASE - Simply 'sudo apt-get install haveged' in Lucid. You will see the package fail to install, as the postinst cannot start the daemon from the init script. Build and install the package with the patch applied. You'll see it start just fine. See Comment #7 for my test results (before and after).
5. REGRESSION POTENTIAL - Low. The package is not functional in its current state. We can only improve it :-)
============

Revision history for this message
Buddha (sefjakub) wrote :
Revision history for this message
agent 8131 (agent-8131) wrote :

Here's what I got installing haveged on an Ubuntu 10.04 amd64 system:

The following NEW packages will be installed:
  haveged
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.6kB of archives.
After this operation, 176kB of additional disk space will be used.
Get:1 http://mirrors.kernel.org/ubuntu/ lucid/universe haveged 0.9-1 [24.6kB]
Fetched 24.6kB in 0s (174kB/s)
Selecting previously deselected package haveged.
(Reading database ... 42631 files and directories currently installed.)
Unpacking haveged (from .../haveged_0.9-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up haveged (0.9-1) ...
 * Starting entropy daemon haveged
   ...fail!
invoke-rc.d: initscript haveged, action "start" failed.
dpkg: error processing haveged (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 haveged
E: Sub-process /usr/bin/dpkg returned an error code (1)

I fixed the problem by:
# /etc/init.d/haveged start
 * Starting entropy daemon haveged [ OK ]

# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up haveged (0.9-1) ...
 * Starting entropy daemon haveged [ OK ]

Revision history for this message
Michael Vogt (mvo) wrote :

During a automatic intall/remove of the package the following problems were found from the package auto-install-tester on current lucid:

(Reading database ... 415986 files and directories currently installed.)
Unpacking haveged (from .../haveged_0.9-1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up haveged (0.9-1) ...
 * Starting entropy daemon haveged [fail]
invoke-rc.d: initscript haveged, action "start" failed.
dpkg: error processing haveged (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 haveged
E: Sub-process /usr/bin/dpkg returned an error code (1)

Changed in haveged (Ubuntu):
status: New → Confirmed
importance: Undecided → High
tags: added: pkg-auto-install-tester
Revision history for this message
Pi Delport (pi-delport) wrote :

This was fixed in 0.9-3 (see related Debian bug), released in Maverick (10.10).

Can this be backported to Lucid? The change should have little or no regression potential. Besides fixing this bug, 0.9-3 also fixes another startup bug which currently requires a manual workaround in 10.04:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594744 (DAEMON_OPTS in /etc/default/haveged ineffective)

Changed in haveged (Debian):
status: Unknown → Fix Released
Revision history for this message
Richard Huddleston (rhuddusa) wrote :

Can this be backported to Lucid?

Changed in haveged (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
status: Confirmed → In Progress
Changed in haveged (Ubuntu Lucid):
status: New → In Progress
Changed in haveged (Ubuntu):
status: In Progress → Fix Released
Changed in haveged (Ubuntu Lucid):
importance: Undecided → High
Changed in haveged (Ubuntu):
assignee: Dustin Kirkland (kirkland) → nobody
Changed in haveged (Ubuntu Lucid):
assignee: nobody → Dustin Kirkland (kirkland)
milestone: none → lucid-updates
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I have cherry-picked the init script changes from the 0.9-3 package (in Maverick), and confirmed that these do, in fact, enable haveged in Lucid to install and work.

Minimal debdiff attached.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Before Patch:

ubuntu@ip-10-62-14-242:~$ sudo apt-get install haveged
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  haveged
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 24.6kB of archives.
After this operation, 176kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ lucid/universe haveged 0.9-1 [24.6kB]
Fetched 24.6kB in 0s (303kB/s)
Selecting previously deselected package haveged.
(Reading database ... 31816 files and directories currently installed.)
Unpacking haveged (from .../haveged_0.9-1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up haveged (0.9-1) ...
 * Starting entropy daemon haveged
   ...fail!
invoke-rc.d: initscript haveged, action "start" failed.
dpkg: error processing haveged (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 haveged
E: Sub-process /usr/bin/dpkg returned an error code (1)

After patch:
ubuntu@ip-10-62-14-242:~$ sudo dpkg -i lucid/haveged_0.9-1ubuntu1_amd64.deb
Selecting previously deselected package haveged.
(Reading database ... 31816 files and directories currently installed.)
Unpacking haveged (from .../haveged_0.9-1ubuntu1_amd64.deb) ...
Setting up haveged (0.9-1ubuntu1) ...
 * Starting entropy daemon haveged
   ...done.

Processing triggers for ureadahead ...
Processing triggers for man-db ...

description: updated
description: updated
summary: - package haveged 0.9-1 failed to install/upgrade: podproces instalovaný
- post-installation skript vrátil chybový status 1
+ package haveged 0.9-1 failed to install/upgrade: init script can't start
+ daemon
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Fix uploaded to lucid-proposed. Subscribed ubuntu-sru. Package awaiting approval for proposed testing. Thanks!

Changed in haveged (Ubuntu Lucid):
status: In Progress → Fix Committed
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Please test proposed package

Hello Buddha, or anyone else affected,

Accepted haveged into lucid-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Casey Marshall (cmars) wrote :

I have verified this fix on a vanilla lucid. After installing from proposed, haveged installs successfully and starts up.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package haveged - 0.9-1ubuntu1

---------------
haveged (0.9-1ubuntu1) lucid-proposed; urgency=low

  * debian/init.d: cherry-pick init script fixes from 0.9-3 and apply them
    here; without this, haveged cannot start on lucid, LP: #569369
 -- Dustin Kirkland <email address hidden> Fri, 20 Apr 2012 15:21:55 -0500

Changed in haveged (Ubuntu Lucid):
status: Fix Committed → Fix Released
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

Patches

Remote bug watches

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