Archived community.zenoss.org | full text search
Skip navigation
102448 Views 10 Replies Latest reply: Feb 19, 2010 12:42 PM by cgriebel RSS
cgriebel Rank: Green Belt 175 posts since
Nov 29, 2007
Currently Being Moderated

Oct 29, 2009 7:10 AM

Issues with 2.5.0

Long time user just upgraded yesterday from 2.4.5 to 2.5.0 and having major problems:

 

zenactions spewing errors:

2009-10-29 07:02:45,989 ERROR zen.ZenActions: unexpected exception
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenEvents/zenactions.py", line 564, in runCycle
    self.mainbody()
  File "/opt/zenoss/Products/ZenEvents/zenactions.py", line 557, in mainbody
    self.heartbeatEvents()
  File "/opt/zenoss/Products/ZenEvents/zenactions.py", line 488, in heartbeatEvents
    hostname = self.fetchMonitorHostname(monitor)
  File "/opt/zenoss/Products/ZenEvents/zenactions.py", line 463, in fetchMonitorHostname
    hostname = self.dmd.Monitors.getPerformanceMonitor(monitor).hostname
AttributeError: hostname

 

zenstatus and zencommand won't start

here's tail of zenstatus.log

2009-10-29 06:50:31,509 INFO zen.ZenStatus: Connecting to localhost:8789
2009-10-29 06:50:31,612 INFO zen.ZenStatus: Connected to ZenHub
2009-10-29 06:50:31,622 INFO zen.ZenStatus: Fetching property items
2009-10-29 06:50:44,683 INFO zen.ZenStatus: Fetching default RRDCreateCommand
2009-10-29 06:50:44,732 INFO zen.ZenStatus: Getting threshold classes
2009-10-29 06:50:44,781 INFO zen.ZenStatus: Getting collector thresholds
2009-10-29 06:50:51,064 ERROR zen.ZenStatus: Remote exception: Products.ZenHub.PBDaemon.RemoteException: Remote exception: zExceptions.NotFound: tcp_00443Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 75, in inner
    return callable(*args, **kw)
  File "/opt/zenoss/Products/ZenHub/services/StatusConfig.py", line 66, in remote_services
    for svc in dev.getMonitoredComponents(collector='zenstatus'):
  File "/opt/zenoss/Products/ZenModel/Device.py", line 593, in getMonitoredComponents
    collector=collector, type=type)
  File "/opt/zenoss/Products/ZenModel/Device.py", line 623, in getDeviceComponents
    return [c.getObject() for c in brains]
  File "/opt/zenoss/lib/python/Products/ZCatalog/CatalogBrains.py", line 92, in getObject
    target = parent.restrictedTraverse(path[-1])
  File "/opt/zenoss/lib/python/OFS/Traversable.py", line 301, in restrictedTraverse
    return self.unrestrictedTraverse(path, default, restricted=True)
  File "/opt/zenoss/lib/python/OFS/Traversable.py", line 284, in unrestrictedTraverse
    raise e
NotFound: tcp_00443
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 75, in inner
    return callable(*args, **kw)
  File "/opt/zenoss/Products/ZenHub/zenhubworker.py", line 116, in remote_execute
    return runOnce()
  File "/opt/zenoss/Products/ZenHub/zenhubworker.py", line 111, in runOnce
    res = m(*args, **kw)
  File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 83, in inner
    traceback.format_exc())
RemoteException: Remote exception: zExceptions.NotFound: tcp_00443Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 75, in inner
    return callable(*args, **kw)
  File "/opt/zenoss/Products/ZenHub/services/StatusConfig.py", line 66, in remote_services
    for svc in dev.getMonitoredComponents(collector='zenstatus'):
  File "/opt/zenoss/Products/ZenModel/Device.py", line 593, in getMonitoredComponents
    collector=collector, type=type)
  File "/opt/zenoss/Products/ZenModel/Device.py", line 623, in getDeviceComponents
    return [c.getObject() for c in brains]
  File "/opt/zenoss/lib/python/Products/ZCatalog/CatalogBrains.py", line 92, in getObject
    target = parent.restrictedTraverse(path[-1])
  File "/opt/zenoss/lib/python/OFS/Traversable.py", line 301, in restrictedTraverse
    return self.unrestrictedTraverse(path, default, restricted=True)
  File "/opt/zenoss/lib/python/OFS/Traversable.py", line 284, in unrestrictedTraverse
    raise e
NotFound: tcp_00443



2009-10-29 06:50:51,498 INFO zen.ZenStatus: Deleting PID file /opt/zenoss/var/zenstatus-localhost.pid ...
2009-10-29 06:50:51,499 INFO zen.ZenStatus: Daemon ZenStatus shutting down

 

So I thought maybe a zendmd and reindex() would be in order but I can't even run zendmd (running as user zenoss of course):

$ zendmd
2009-10-29 06:59:07 WARNING Application Duplicate Product name: After loading Product 'AdvancedQuery' from '/opt/zenoss/Products', I skipped the one in '/opt/zenoss/lib/python/Products'.
2009-10-29 06:59:07 WARNING Application Duplicate Product name: After loading Product 'CMFCore' from '/opt/zenoss/Products', I skipped the one in '/opt/zenoss/lib/python/Products'.
2009-10-29 06:59:07 WARNING Application Duplicate Product name: After loading Product 'Five' from '/opt/zenoss/Products', I skipped the one in '/opt/zenoss/lib/python/Products'.
2009-10-29 06:59:07 WARNING Application Duplicate Product name: After loading Product 'GenericSetup' from '/opt/zenoss/Products', I skipped the one in '/opt/zenoss/lib/python/Products'.
2009-10-29 06:59:07 WARNING Application Duplicate Product name: After loading Product 'ManagableIndex' from '/opt/zenoss/Products', I skipped the one in '/opt/zenoss/lib/python/Products'.
2009-10-29 06:59:07 WARNING Application Duplicate Product name: After loading Product 'OFolder' from '/opt/zenoss/Products', I skipped the one in '/opt/zenoss/lib/python/Products'.
2009-10-29 06:59:07 WARNING Application Duplicate Product name: After loading Product 'PluggableAuthService' from '/opt/zenoss/Products', I skipped the one in '/opt/zenoss/lib/python/Products'.
2009-10-29 06:59:07 WARNING Application Duplicate Product name: After loading Product 'PluginRegistry' from '/opt/zenoss/Products', I skipped the one in '/opt/zenoss/lib/python/Products'.
2009-10-29 06:59:08 ERROR ZODB.lock_file Error locking file /opt/zenoss/var/zeo1-1.zec.lock; pid=UNKNOWN
Traceback (most recent call last):
  File "/opt/zenoss/lib/python/ZODB/lock_file.py", line 80, in __init__
    _lock_file(fp)
  File "/opt/zenoss/lib/python/ZODB/lock_file.py", line 59, in _lock_file
    raise LockError("Couldn't lock %r" % file.name)
LockError: Couldn't lock '/opt/zenoss/var/zeo1-1.zec.lock'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenModel/zendmd.py", line 245, in ?
    myconsole = HistoryConsole(locals=_customStuff())
  File "/opt/zenoss/Products/ZenModel/zendmd.py", line 71, in _customStuff
    app = Zope2.app()
  File "/opt/zenoss/lib/python/Zope2/__init__.py", line 51, in app
    startup()
  File "/opt/zenoss/lib/python/Zope2/__init__.py", line 47, in startup
    _startup()
  File "/opt/zenoss/lib/python/Zope2/App/startup.py", line 65, in startup
    DB = dbtab.getDatabase('/', is_root=1)
  File "/opt/zenoss/lib/python/Zope2/Startup/datatypes.py", line 288, in getDatabase
    db = factory.open(name, self.databases)
  File "/opt/zenoss/lib/python/Zope2/Startup/datatypes.py", line 186, in open
    DB = self.createDB(database_name, databases)
  File "/opt/zenoss/lib/python/Zope2/Startup/datatypes.py", line 183, in createDB
    return ZODBDatabase.open(self, databases)
  File "/opt/zenoss/lib/python/ZODB/config.py", line 97, in open
    storage = section.storage.open()
  File "/opt/zenoss/lib/python/ZODB/config.py", line 168, in open
    realm=self.config.realm)
  File "/opt/zenoss/lib/python/ZEO/ClientStorage.py", line 340, in __init__
    self._cache = self.ClientCacheClass(cache_path, size=cache_size)
  File "/opt/zenoss/lib/python/ZEO/cache.py", line 186, in __init__
    self._lock_file = ZODB.lock_file.LockFile(path + '.lock')
  File "/opt/zenoss/lib/python/ZODB/lock_file.py", line 80, in __init__
    _lock_file(fp)
  File "/opt/zenoss/lib/python/ZODB/lock_file.py", line 59, in _lock_file
    raise LockError("Couldn't lock %r" % file.name)
ZODB.lock_file.LockError: Couldn't lock '/opt/zenoss/var/zeo1-1.zec.lock'

 

I have stopped all zenoss processes, deleted /opt/zenoss/var/*zec*  -- no luck.

 

Any help much appreciated.

 

Chock

  • Captain MESO Rank: Green Belt 114 posts since
    Mar 5, 2008
    Currently Being Moderated
    1. Oct 29, 2009 11:32 AM (in response to cgriebel)
    Re: Issues with 2.5.0

    Seems to be that you have the same problem after upgrading. Check thread/11846?tstart=0

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    4. Nov 2, 2009 6:43 PM (in response to cgriebel)
    Re: 2.5.0 - zendmd won't run
    If you had the WMI Data Source ZenPack installed when you upgraded then that's your issue.  If not, then I'm not sure what's causing that.
  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    6. Nov 3, 2009 9:06 AM (in response to cgriebel)
    Re: 2.5.0 - zendmd won't run
    I've used zendmd with 2.5 on numerous occasions and have not come across any issues.  You might want to check your file permissions in your $ZENHOME directory.
  • Andrea Consadori ZenossMaster 863 posts since
    Feb 11, 2008
    Currently Being Moderated
    9. Nov 8, 2009 2:39 AM (in response to cgriebel)
    Re: 2.5.0 - zendmd won't run

    ok but if i restart zenoss the problem persist...

     

    i open a ticket

     

    http://dev.zenoss.org/trac/ticket/5798

More Like This

  • Retrieving data ...

Legend

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