unable to install xymon-client package fails: find: `/etc/hobbit': No such file or directory

Bug #1407498 reported by Mark
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xymon (Ubuntu)
Fix Released
Undecided
Axel Beckert

Bug Description

:~$ sudo apt-get install xymon-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  xymon-plugins hobbit-plugins
The following NEW packages will be installed:
  xymon-client
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/184 kB of archives.
After this operation, 1,043 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package xymon-client.
(Reading database ... 65358 files and directories currently installed.)
Preparing to unpack .../xymon-client_4.3.7-1ubuntu2_amd64.deb ...
Unpacking xymon-client (4.3.7-1ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up xymon-client (4.3.7-1ubuntu2) ...
Adding group `xymon' (GID 118) ...
Done.
Adding system user `xymon' (UID 109) ...
Adding new user `xymon' (UID 109) with group `xymon' ...
Not creating home directory `/var/lib/xymon'.
find: `/etc/hobbit': No such file or directory
dpkg: error processing package xymon-client (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
 xymon-client
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@hostname:~$ sudo dpkg --configure xymon-client
Setting up xymon-client (4.3.7-1ubuntu2) ...
find: `/etc/hobbit': No such file or directory
dpkg: error processing package xymon-client (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 xymon-client

I have tried purging the install and re-installing only to attain the same errors.
~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

~$ apt-cache policy xymon-client
xymon-client:
  Installed: 4.3.7-1ubuntu2
  Candidate: 4.3.7-1ubuntu2
  Version table:
 *** 4.3.7-1ubuntu2 0
        500 http://archive.ubuntu.com:80/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

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

This path of xymon-client's postinst is only taken if either the user or group "hobbit" exists.

Has hobbit-clients been installed and later removed (but probably not purged) on that system in the past? Does the user or group "hobbit" still exist? Does the issue persist after "dpkg --purge hobbit-client"?

Changed in xymon (Ubuntu):
status: New → Incomplete
Revision history for this message
Mark (mscrano) wrote :

The system was a fresh install, but it is a NIS client with server running 12.04 and it has a Hobbit user, no xymon user on the NIS server.

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

Thanks for the feedback. I'll fix it in Debian, so it'll probably be fixed in the next Ubuntu release, too. Not sure if someone will backport the fix to Trusty, though.

Changed in xymon (Ubuntu):
status: Incomplete → In Progress
Revision history for this message
Axel Beckert (xtaran) wrote :
Changed in xymon (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Mark (mscrano) wrote :

What would you propose as a work around in this case, should I simply create the xymon user on the NIS server? or would it be more logical to create the directory structure it is looking for?

Revision history for this message
Axel Beckert (xtaran) wrote : Re: [Bug 1407498] Re: unable to instally xymon-client package fails: find: `/etc/hobbit': No such file or directory

Mark wrote:
> What would you propose as a work around in this case, should I simply
> create the xymon user on the NIS server? or would it be more logical to
> create the directory structure it is looking for?

Creating the directories is probably the easiest way. Creating the
xymon user in advance doesn't help as far as I can see.

Revision history for this message
Launchpad Janitor (janitor) wrote : Re: unable to instally xymon-client package fails: find: `/etc/hobbit': No such file or directory

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

---------------
xymon (4.3.17-5) unstable; urgency=medium

  [ Christoph Berg ]
  * Restore the lost ROOTFS variable in xymonclient-linux.sh, and patch
    xymond/rrd/do_disk.c to ignore duplicate submissions for the / partition.
    (Closes: #767901)
  * Fix buffer overrun in web/acknowledge.c (Closes: #776007)
  * Debconf translations, thanks!
    + pt by Américo Monteiro (Closes: #767840)
    + fr by Jean-Pierre Giraud (Closes: #770168)
    + nl by Frans Spiesschaert (Closes: #771182)

  [ Axel Beckert ]
  * Fix aborting installation in cases where a hobbit user exists despite
    hobbit-client was not installed before. (LP: #1407498)

 -- Christoph Berg <email address hidden> Thu, 22 Jan 2015 17:37:26 +0100

Changed in xymon (Ubuntu):
status: Fix Committed → Fix Released
Axel Beckert (xtaran)
summary: - unable to instally xymon-client package fails: find: `/etc/hobbit': No
+ unable to install xymon-client package fails: find: `/etc/hobbit': No
such file or directory
Changed in xymon (Ubuntu):
assignee: nobody → Axel Beckert (xtaran)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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