Help!

Zenoss Core v2.2.3

The Zenoss fails to send event by zenmail. And every time it complains 
MailEvent instance has no attribute 'has_key'.  

The following is the full log from 'zenmail run -v 10 --cycle' output:

INFO:zen.mail:message data completed.
INFO:zen.mail:timestamp of event (should be in UTC): 996431528.000000
DEBUG:zen.mail:eventClassKey=
INFO:zen.mail:sending event...
Traceback (most recent call last):
  File "/opt/zenoss/lib/python/twisted/python/log.py", line 48, in 
callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/opt/zenoss/lib/python/twisted/python/log.py", line 33, in 
callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/opt/zenoss/lib/python/twisted/python/context.py", line 59, in 
callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/opt/zenoss/lib/python/twisted/python/context.py", line 37, in 
callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/opt/zenoss/lib/python/twisted/internet/selectreactor.py", line 139, in 
_doReadOrWrite
    why = getattr(selectable, method)()
  File "/opt/zenoss/lib/python/twisted/internet/tcp.py", line 362, in doRead
    return self.protocol.dataReceived(data)
  File "/opt/zenoss/lib/python/twisted/protocols/basic.py", line 149, in 
dataReceived
    self.lineReceived(line)
  File "/opt/zenoss/lib/python/twisted/mail/smtp.py", line 572, in lineReceived
    return getattr(self, 'state_' + self.mode)(line)
  File "/opt/zenoss/lib/python/twisted/mail/smtp.py", line 798, in 
dataLineReceived
    defer.DeferredList([
  File "/opt/zenoss/Products/ZenEvents/zenmail.py", line 59, in eomReceived
    self.postEvent(messageData)
  File "/opt/zenoss/Products/ZenEvents/zenmail.py", line 51, in postEvent
    self.processor.process(messageStr)
  File "/opt/zenoss/Products/ZenEvents/MailProcessor.py", line 111, in process
    self.zem.sendEvent(event)
  File "/opt/zenoss/Products/ZenEvents/EventServer.py", line 99, in sendEvent
    if event.has_key('firstTime'):
exceptions.AttributeError: MailEvent instance has no attribute 'has_key'




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=23747#23747

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to