Archived community.zenoss.org | full text search
Skip navigation
1 2 Previous Next 135126 Views 15 Replies Latest reply: Feb 23, 2010 12:10 PM by chudler RSS
klinstifen Rank: Green Belt 147 posts since
Nov 6, 2007
Currently Being Moderated

Oct 28, 2009 4:33 PM

xmppBot in 2.5

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):

  • Module ZPublisher.Publish, line 119, in publish
  • Module ZPublisher.mapply, line 88, in mapply
  • Module ZPublisher.Publish, line 42, in call_object
  • Module Products.ZenModel.ZenossInfo, line 760, in manage_daemonAction
  • Module Products.ZenModel.ZenossInfo, line 778, in doDaemonAction
  • Module subprocess, line 543, in __init__
  • Module subprocess, line 975, in _execute_child

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

  • fearthepenguin Rank: White Belt 75 posts since
    Mar 20, 2007
    Currently Being Moderated
    1. Oct 30, 2009 12:33 PM (in response to klinstifen)
    Re: xmppBot in 2.5
    same here.
  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    4. Nov 2, 2009 6:20 PM (in response to klinstifen)
    Re: xmppBot in 2.5
    The Zenoss devs are watching the forum closely for 2.5 issues so hopefully this will be picked up by them for resolution.
  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    5. Nov 2, 2009 6:23 PM (in response to Ryan Matte)
    Re: xmppBot in 2.5
    Actually, just noticed that this is a community pack (thought it was a core pack for some reason).  I've sent an email to Colin (the author of the pack) about this...
  • chudler Rank: White Belt 10 posts since
    Oct 12, 2007
    Currently Being Moderated
    6. Nov 2, 2009 7:17 PM (in response to klinstifen)
    Re: xmppBot in 2.5
    Thanks for the report.  I found and fixed this problem on 7 OCT 09 in <http://zenpacks.zenoss.org/trac-zenpacks/changeset/401>.  I haven't built a new egg yet.  I expect to release the updated version on Wed.  Sorry for the problem, I didn't know it would fail in 2.5; when I first saw the bug, I was testing some completely unrelated functionality on 2.4.5.
  • chudler Rank: White Belt 10 posts since
    Oct 12, 2007
    Currently Being Moderated
    8. Nov 4, 2009 1:05 PM (in response to klinstifen)
    Re: xmppBot in 2.5

    Good news! I managed to publish the new version (1.1) at

    docs/DOC-3496

     

    There are quite a lot of enhancements and bugfixes:

     

    • The bug mentioned in this thread
    • Better handling of missing JabberID property on zenusers.
    • Better handling of alert notifications using default JabberID or explicit "address"
    • Correct detection of datapoints for components and subcomponents for data extraction
    • Improved handling of roster, presence notifications, room invites, and broken/non-standard jabber clients
    • Numerous other changes stemming from code audit for stability.

     

    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.

  • fearthepenguin Rank: White Belt 75 posts since
    Mar 20, 2007
    Currently Being Moderated
    9. Nov 4, 2009 1:32 PM (in response to chudler)
    Re: xmppBot in 2.5

    w00t!! Works like a champ!

  • natewhistler Rank: White Belt 8 posts since
    Nov 11, 2008
    Currently Being Moderated
    11. Nov 24, 2009 5:49 PM (in response to klinstifen)
    Re: xmppBot in 2.5

    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):

    • Module ZPublisher.Publish, line 119, in publish
    • Module ZPublisher.mapply, line 88, in mapply
    • Module ZPublisher.Publish, line 42, in call_object
    • Module Products.ZenModel.ZenossInfo, line 760, in manage_daemonAction
    • Module Products.ZenModel.ZenossInfo, line 778, in doDaemonAction
    • Module subprocess, line 543, in __init__
    • Module subprocess, line 975, in _execute_child

    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.

  • natewhistler Rank: White Belt 8 posts since
    Nov 11, 2008
    Currently Being Moderated
    12. Nov 24, 2009 7:49 PM (in response to natewhistler)
    Re: xmppBot in 2.5

    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...

  • djpetro Rank: White Belt 9 posts since
    Apr 8, 2008
    Currently Being Moderated
    13. Jan 19, 2010 3:20 PM (in response to natewhistler)
    Re: xmppBot in 2.5

    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.

  • natewhistler Rank: White Belt 8 posts since
    Nov 11, 2008
    Currently Being Moderated
    14. Jan 19, 2010 3:34 PM (in response to djpetro)
    Re: xmppBot in 2.5

    I never got this work. I eventually gave up as I ran out of time to screw with it.

     

    Nate

1 2 Previous Next

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points