Can't get mod-gearman to work no jessie's gearmand version 1.0.6

408 views
Skip to first unread message

Peter Valdemar Mørch

unread,
Feb 11, 2015, 5:24:24 AM2/11/15
to mod_g...@googlegroups.com
I'm sorry but after days of trying, I'd like a little help getting gearman to work in Debian jessie. (I didn't get any answers to my previous post about jessie)

Overview

This post has two parts:
  1. Package versions - how to install what?
  2. Gearmand version: Can't get it to work with jessie's gearmand version 1.0.6, but the exact same mod_gearman (neb+worker) works with a (remote) gearmand version 0.33 on squeeze. Why does gearmand 0.33 work when 1.0.6 doesn't?
For me the important question is getting it to work, so the versions seems to be the most important part, but I'll get the package version stuff out of the way first, since it is why I'm using the versions I am.

Package versions - how to install what?

The official gearman packages in Debian jessie [4] are newer than the unofficial packages from mod-gearman.org in [1]
So using the old unofficial gearman packages from mod-gearman.org is not a stable situation, because they'll be updated to the new ones from jessie at the next apt-get (dist-)?upgrade.

The mod-gearman-* packages, however, are the newer 1.5.1 in the unofficial repo [1]. So it stays at 1.5.1 after an apt-get (dist-)?upgrade. The problem is that mod-gearman-module_1.5.1_debian8_amd64.deb links against libgearman.so.6 which is found in libgearman7_0.33-1_debian8_amd64.deb from [1] but not in the official libgearman7_1.0.6-5_amd64.deb, which contains libgearman.so.7 (which is what I'd expect given the "7" in the package name).

Bottom line is that after installing the unofficial packages from [1], running apt-get dist-upgrade and restarting nagios3, i get this error in nagios.log:

Error: Could not load module '/usr/lib/mod_gearman/mod_gearman.o' -> libgearman.so.6: cannot open shared object file: No such file or directory

For that reason, I installed the unofficial packages from [1] and ran apt-get dist-upgrade and then built mod-gearman from sources following the Quickstart Guide [2].

Gearmand version: Works with 0.33 and fails with 1.0.6

Running with the versions above, I have

    root@capmon:~# grep ^broker_module /etc/nagios3/nagios.cfg
    broker_module=/opt/lib/mod_gearman/mod_gearman.o config=/opt/etc/mod_gearman/mod_gearman_neb.conf

The configuration is vanilla /opt/etc/mod_gearman/mod_gearman_(worker|neb).conf except I've set debug=2 to create more logging. The logging doesn't reveal anything to me, I'm affraid. The entire mod-gearman and nagios configuration can be found in config.tar.gz attached and in [3].

I've placed all the logs for this in notworkinglogs.tar.gz attached and in [3]. Basically it looks to me from the logs like all is fine and without errors, but after a short while the logs go dead an nothing more happens. The check plugins are not executed.

E.g. note that at the end I did do a clean /etc/init.d/nagios3 stop, but didn't get the expected:

    [NNNN] Successfully shutdown... (PID=13652)
    [NNNN] Event broker module '/opt/lib/mod_gearman/mod_gearman.o' deinitialized successfully.

lines in /var/log/nagios3/nagios.log. After a while it seems that nothing gets printed to the log files at all. It appears as if nagios freezes somehow.

I know whether it is working or not by having modified a plugin to append to a log file so I can see whether it is being called. It isn't.

Because I have a gearmand version 0.33 running on 172.22.216.174, I then:
  • stopped worker and nagios3
  • changed: "server=localhost:4730" to "server=172.22.216.174:4730" for both worker and module
  • removed logs
  • started worker and nagios3
Now it works. See logs in workinglogs.tar.gz in attached and [3]. Note also that the logs in workinglogs are much larger than in notworkinglogs, even though notworkinglogs ran much longer. /etc/init.d/nagios3 stop did print the expected "Successfully shutdown..." + "Event broker module ... deinitialized successfully." messages.

I tried several combinations of the squeeze-based and jessie based nagios, gearmand and workers, and it looks like the gearmand version is what determines whether it works.

Would someone help me try to figure out what's going on? Why does mod-gearman work with gearman-job-server/gearmand 0.33 but not with 1.0.6? How do I make it work with the 1.0.6 from jessie?

Links

1: http://mod-gearman.org/download/v1.5.1/debian8/amd64/
2: http://labs.consol.de/nagios/mod-gearman/mod-gearman-quickstart-guide/
3: Config and logs in ge.tt online storage, http://ge.tt/5lBLGHA2?c
4: https://packages.debian.org/jessie/gearman-job-server

config.tar.gz
notworkinglogs.tar.gz
workinglogs.tar.gz

Sven Nierlein

unread,
Feb 11, 2015, 6:05:05 AM2/11/15
to mod_g...@googlegroups.com
Hi Peter,

The Consol Labs Repository still contains gearman 0.33 because there is still an open bug for newer Gearman releases.
See https://bugs.launchpad.net/gearmand/+bug/1176324
I couldn't reproduce this bug on all platforms, so maybe Debian is not affected and the 1.06 works well. In general,
you should either use both from the official repository or both from the Labs repository, but do not mix them.

Cheers,
Sven


On 11.02.2015 11:24, Peter Valdemar Mørch wrote:
> I'm sorry but after days of trying, I'd like a little help getting gearman to work in Debian jessie. (I didn't get any answers to my previous post about jessie)
>
> *Overview*
>
> This post has two parts:
>
> 1. Package versions - how to install what?
> 2. Gearmand version: Can't get it to work with jessie's gearmand version 1.0.6, but the exact same mod_gearman (neb+worker) works with a (remote) gearmand version 0.33 on squeeze. Why does gearmand 0.33 work when 1.0.6 doesn't?
>
> For me the important question is getting it to work, so the versions seems to be the most important part, but I'll get the package version stuff out of the way first, since it is why I'm using the versions I am.
>
> *Package versions - how to install what?*
>
> The official gearman packages in Debian jessie [4] <https://packages.debian.org/jessie/gearman-job-server> are newer than the unofficial packages from mod-gearman.org in [1] <http://mod-gearman.org/download/v1.5.1/debian8/amd64/>
> So using the old unofficial gearman packages from mod-gearman.org is not a stable situation, because they'll be updated to the new ones from jessie at the next apt-get (dist-)?upgrade.
>
> The mod-gearman-* packages, however, are the newer 1.5.1 in the unofficial repo [1] <http://mod-gearman.org/download/v1.5.1/debian8/amd64/>. So it stays at 1.5.1 after an apt-get (dist-)?upgrade. The problem is that mod-gearman-module_1.5.1_debian8_amd64.deb links against libgearman.so.6 which is found in libgearman7_0.33-1_debian8_amd64.deb from [1] but not in the official libgearman7_1.0.6-5_amd64.deb, which contains libgearman.so.7 (which is what I'd expect given the "7" in the package name).
>
> Bottom line is that after installing the unofficial packages from [1], running apt-get dist-upgrade and restarting nagios3, i get this error in nagios.log:
>
> Error: Could not load module '/usr/lib/mod_gearman/mod_gearman.o' -> libgearman.so.6: cannot open shared object file: No such file or directory
>
> For that reason, I installed the unofficial packages from [1] and ran apt-get dist-upgrade and then built mod-gearman from sources following the Quickstart Guide [2] <http://labs.consol.de/nagios/mod-gearman/mod-gearman-quickstart-guide/>.
>
> *Gearmand version: Works with 0.33 and fails with 1.0.6
> *
> Running with the versions above, I have
>
> root@capmon:~# grep ^broker_module /etc/nagios3/nagios.cfg
> broker_module=/opt/lib/mod_gearman/mod_gearman.o config=/opt/etc/mod_gearman/mod_gearman_neb.conf
>
> The configuration is vanilla /opt/etc/mod_gearman/mod_gearman_(worker|neb).conf except I've set debug=2 to create more logging. The logging doesn't reveal anything to me, I'm affraid. The entire mod-gearman and nagios configuration can be found in config.tar.gz attached and in [3].
>
> I've placed all the logs for this in notworkinglogs.tar.gz attached and in [3]. Basically it looks to me from the logs like all is fine and without errors, but after a short while the logs go dead an nothing more happens. The check plugins are not executed.
>
> E.g. note that at the end I did do a clean /etc/init.d/nagios3 stop, but didn't get the expected:
>
> [NNNN] Successfully shutdown... (PID=13652)
> [NNNN] Event broker module '/opt/lib/mod_gearman/mod_gearman.o' deinitialized successfully.
>
> lines in /var/log/nagios3/nagios.log. After a while it seems that nothing gets printed to the log files at all. It appears as if nagios freezes somehow.
>
> I know whether it is working or not by having modified a plugin to append to a log file so I can see whether it is being called. It isn't.
>
> Because I have a gearmand version 0.33 running on 172.22.216.174, I then:
>
> * stopped worker and nagios3
> * changed: "server=localhost:4730" to "server=172.22.216.174:4730" for both worker and module
> * removed logs
> * started worker and nagios3
>
> Now it works. See logs in workinglogs.tar.gz in attached and [3]. Note also that the logs in workinglogs are much larger than in notworkinglogs, even though notworkinglogs ran much longer. /etc/init.d/nagios3 stop did print the expected "Successfully shutdown..." + "Event broker module ... deinitialized successfully." messages.
>
> I tried several combinations of the squeeze-based and jessie based nagios, gearmand and workers, and it looks like the gearmand version is what determines whether it works.
>
> Would someone help me try to figure out what's going on? Why does mod-gearman work with gearman-job-server/gearmand 0.33 but not with 1.0.6? How do I make it work with the 1.0.6 from jessie?
>
> *Links
>
> *1: http://mod-gearman.org/download/v1.5.1/debian8/amd64/
> --
> You received this message because you are subscribed to the Google Groups "mod_gearman" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mod_gearman...@googlegroups.com <mailto:mod_gearman...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


Skydiver 77

unread,
Oct 24, 2016, 11:54:49 AM10/24/16
to mod_gearman
Hi Peter,


Did you solve this problem?

Im currently running gearman on my Raspberry Pi2's and words fine Gearman Job Server 0.33, However on Pi3's running Jessie i can't get it to work for the life of me. When running 1.0.6 Lib gearman.

Regards
Neil

Peter Valdemar Mørch

unread,
Oct 24, 2016, 11:54:00 PM10/24/16
to mod_g...@googlegroups.com
I'm sorry, I've moved on to other things. I don't remember the outcome of this issue.

--
You received this message because you are subscribed to a topic in the Google Groups "mod_gearman" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mod_gearman/IQYHy0qc1CE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mod_gearman+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages