post-install script fails

Bug #1042821 reported by Arie Skliarouk
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xymon (Debian)
Fix Released
Unknown
xymon (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On quantal, xymon-client 4.3.7-1 has mistake in /var/lib/dpkg/info/xymon-client.postinst:
pkill -u hobbit vmstat

This fails if there is no hobbit or vmstat running, and then the post-install script exits with error.

dpkg: error processing xymon-client (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 xymon-client

Related branches

Revision history for this message
Axel Beckert (xtaran) wrote :

Already fixed in the package's git repository.

Changed in xymon (Ubuntu):
status: New → Fix Committed
Changed in xymon (Debian):
status: Unknown → Fix Committed
Revision history for this message
Axel Beckert (xtaran) wrote : Re: [Bug 1069227] Re: package xymon-client 4.3.7-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Hi,

Adrian Versteegen wrote:
> How do I go about fixing it from the git repository?

You don't need to. It's a missing Pre-Depends on procps. Just install
procps and run "dpkg --configure --pending" afterwards (as root).

The according git commit is:

http://anonscm.debian.org/gitweb/?p=collab-maint/xymon.git;a=commitdiff;h=3589e03a7f3cb0aefc014ca2820344cccb8cc8b9

  Regards, Axel
--
 ,''`. | Axel Beckert <email address hidden>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
  `- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5

Revision history for this message
TitusX (titusx) wrote :

Because of an other bug I tried this update from 4.3.0 on an precise/12.04 system to 4.3.7 (quantal package) and I encountered an postinstall error, too. The installation script won't move the "rep" and the "snap" directories to the new "xymon" locations. I had to delete them. I'm not sure if this info helps here ...

Revision history for this message
udifuchs (udifuchs) wrote :

Installing procps does not help. 'pkill -u hobbit vmstat' still fails because there is no process to kill.

The fix would be to change the line to 'pkill -u hobbit vmstat || true'.

Changed in xymon (Debian):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xymon - 4.3.17-2

---------------
xymon (4.3.17-2) unstable; urgency=low

  * Upload to unstable again.

  [ Christoph Berg ]
  * Always write /var/run/xymon/xymonclient-include.cfg on clients

  [ Axel Beckert ]
  * Add build-dependency on libc-ares-dev to avoid using embedded code
    copy at xymonnet/c-ares-1.7.3.tar.gz
  * Fix includes for graph definitions (xymongraph.d → graphs.d)
    + Add a Breaks for hobbit-plugins << 20140519~
  * Remove reference to /etc/apache2/ from xymon-client.NEWS
  * Fix remaining issues of the Apache 2.2 → 2.4 transition
    (modifies mostly debian/rules, xymon.postinst and xymon.maintscript)
    + Fix conffile paths in README.Debian and xymon.maintscript
    + Use dh_apache2 and apache2-maintscript-helper
    + Add build-dependency on dh-apache2.
    + Add lintian override for missing-build-dependency-for-dh_-command
      (see #748688)
    + Enable Apache's mod_rewrite + CGI support automatically in postinst
    + Add patch to switch default configuration to Apache 2.4 style
      authorization.
    + Closes: #669776
  * Let xymon depend on perl until after the Jessie release to make sure
    prename is there for the data migration from hobbit to xymon.
  * Add lintian override for apache2-reverse-dependency-calls-invoke-rc.d
    -- it finds the fallback for apache2-maintscript-helper unavailability

 -- Axel Beckert <email address hidden> Tue, 20 May 2014 22:56:11 +0200

Changed in xymon (Ubuntu):
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

Remote bug watches

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