Oct 28, 2009 4:33 PM
xmppBot in 2.5
-
Like (0)
I am using the xmppBot zenpack and it looks like it doesn't play well with 2.5. The daemon won't start and this is the error I am given:
Type: OSError
Value: [Errno 8] Exec format error
Traceback (innermost last):
OSError: [Errno 8] Exec format error
I am going to take a closer look and see if I can get more info. Anyone else experiencing this?
Edit:
Information I get when starting from command line:
xmppBot start
starting...
Traceback (most recent call last):
File "/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.chudler.xmppBot-1.0-py2.4.egg/ZenPacks/chudler/xmppBot/xmppBot.py", line 23, in ?
class XmppBot(PBDaemon, ZCmdBase, ZenActions):
TypeError: Error when calling the metaclass bases
Cannot create a consistent method resolution
order (MRO) for bases ZCmdBase, ZenDaemon, ZenActions
Well I got the error to clear...sorta.
Per the explanation found at http://code.djangoproject.com/ticket/10249 it looks like the Class definition on line 23 was backwards.
When I flip it from
class XmppBot(PBDaemon, ZCmdBase, ZenActions)
to
class XmppBot(ZenActions, ZCmdBase, PBDaemon)
The error goes away but the daemon doesn't stay up. I am thinking I just need to find the part of the code that calls XmppBot and flip the order of the variables it is submitting.
so the code in def __init__(self) seem to be out of order now that the class definiton attributes have been reorganized.
i'll try moving things around, but does anyone else have a clearer picture of what's going on here?
Good news! I managed to publish the new version (1.1) at
There are quite a lot of enhancements and bugfixes:
This version is an update and can be installed alone or as an update over 1.0. Either way it will work just fine, even if your current version is broken. Tested in 2.4.1-2.4.5 and 2.5 Core and Enterprise (Enterprise 2.5 is not tested, since it is not available yet; no problems are anticipated). Don't forget to unzip the zenpack before installing it.
w00t!! Works like a champ!
Not sure what I am doing wrong. I am using the version 1.1 but getting the same error when I try to start the Daemon.
Type: OSError
Value: [Errno 8] Exec format error
Traceback (innermost last):
OSError: [Errno 8] Exec format error
I double check that I had 1.1 and even tried to delete the Zenpack and reinstall the egg, but xmppBot won't start.
Nevermind. It turned out to be something I did. I removed and reinstalled zenoss and the daemon is now starting. However, I can't figure out what I am doing wrong with the xmppbot.config. It looks like it connects in the log, but the user never comes online. The tail of the log shows:
tail $ZENHOME/log/xmppbot.log
2009-11-24 16:46:24,776 DEBUG zen.xmppBot: Building context factory for jid zenbot@chat.marshillchurch.org/bot
2009-11-24 16:46:24,776 DEBUG zen.xmppBot: Building context factory for jid zenbot@chat.marshillchurch.org/bot
2009-11-24 16:46:24,780 DEBUG zen.xmppBot: connecting to server chat.marshillchurch.org:5222 using id zenbot...
2009-11-24 16:46:24,780 DEBUG zen.xmppBot: connecting to server chat.marshillchurch.org:5222 using id zenbot...
Sorry to bump the old thread, but I ran into the same issue natewhistler had, and didn't see a solution anywhere in the forums.
We run openfire server, and require SSL. The bot doesn't work with TLS, only SSL (usually on port 5223). However, I couldn't get the bot to use it's native ssl capability. The zenpack page mentions using stunnel to do the ssl, and that worked like a charm for me.
In the xmppBot.conf, the ssl parameter is commented out, and these parameters are set:
jabber_host = localhost
jabber_port = 5223
im_host = jabber.domain.com
Our stunnel.conf:
[jabber]
client = yes
accept = localhost:5223
connect = jabber.domain.com:5223
This is a great zenpack, thanks to the author! It really increased the usability of zenoss, as we can easily acknowledge alarms from our mobile devices via xmpp.
I never got this work. I eventually gave up as I ran out of time to screw with it.
Nate
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||