sni / mod_gearman

Distribute Naemon Host/Service Checks & Eventhandler with Gearman Queues. Host/Servicegroups affinity included.
http://www.mod-gearman.org
GNU General Public License v3.0
122 stars 42 forks source link

Installation fails on Ubuntu / Debian #156

Closed Madic- closed 3 years ago

Madic- commented 3 years ago

Installing mod-gearman-module from console stable repository on a debian (based) distribution leads to the following error:

Setting up mod-gearman-module (3.3.3) ...
gzip: /etc/mod-gearman/module.conf.gz: unexpected end of file
dpkg: error processing package mod-gearman-module (--configure):
 installed mod-gearman-module package post-installation script subprocess returned error exit status 1

The file /etc/mod-gearman/module.conf.gz has 0 bytes. It also requires the user and group naemon to be present.

The package from https://mod-gearman.org/download/v3.3.3/ubuntu20.04/amd64/ has the same problems.

How can I, apart from OMD, install mod-gearman-module on a debian (based) dsitribution?

Edit

So postinst tries to cp -p /usr/share/doc/mod-gearman-module/examples/module.conf.gz /etc/mod-gearman/module.conf.gz But /usr/share/doc/mod-gearman-module/examples/module.conf.gz is not present, although the path in the data.tar.xz package is correct

sni commented 3 years ago

the naemon user should be created automatically when installing mod-gearman. See: https://github.com/sni/mod_gearman/blob/master/debian/mod-gearman-worker.preinst#L24

There is not much magic involved when installing the example config file, see: https://github.com/sni/mod_gearman/blob/master/debian/mod-gearman-module.postinst#L7 I cannot reproduce the issue here, tried Debian 10 and Ubuntu 20.04. Could you try to run the commands manually?

sni commented 3 years ago

But i see, the naemon user is only created in the worker preinst. Did you install the module only? Did you install naemon-core before?

sni commented 3 years ago

I added naemon-core to the module dependencies: 73bbe45984430db703b08db80d1f68dbd8787746

Madic- commented 3 years ago

I only installed the module, not the core. Thank you for your help