Configuration & Administration

  • 1.  Cannot add new devices

    Posted 03-14-2019 11:52 AM
    Hi All,

    I'm no longer able to add new devices. Job will fail immediately with the following traceback:

    --------
    2019-03-14 16:42:05,780 INFO zen.Job: Job 0e49b4ae-2c5d-4514-a62a-947c3a7c2648 (Products.ZenModel.ZDeviceLoader.CreateDeviceJob) received
    2019-03-14 16:42:05,806 INFO zen.Job: Starting job 0e49b4ae-2c5d-4514-a62a-947c3a7c2648 (Products.ZenModel.ZDeviceLoader.CreateDeviceJob)
    2019-03-14 16:42:05,896 ERROR zen.Job: Failed to create device.
    Traceback (most recent call last):
    File "/opt/zenoss/Products/ZenModel/ZDeviceLoader.py", line 234, in _run
    device = createDevice()
    File "/opt/zenoss/Products/ZenModel/ZDeviceLoader.py", line 230, in createDevice
    performanceMonitor, manageIp, zProperties, deviceProps
    File "/opt/zenoss/Products/ZenModel/ZDeviceLoader.py", line 138, in load_device
    zProperties=zProperties, **deviceProperties
    File "/opt/zenoss/Products/ZenModel/Device.py", line 121, in manage_createDevice
    device = deviceClass.createInstance(deviceName, performanceMonitor, manageIp)
    File "/opt/zenoss/Products/ZenModel/DeviceClass.py", line 170, in createInstance
    dev = pyClass(devId)
    File "/opt/zenoss/Products/ZenModel/Device.py", line 311, in __init__
    self._setObject(osObj.id, osObj)
    File "/opt/zenoss/Products/ZenRelations/RelationshipManager.py", line 144, in _setObject
    user, set_owner)
    File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 112, in _setObject
    return ObjectManager._setObject(self, id, obj, roles, user, set_owner)
    File "/opt/zenoss/lib/python2.7/site-packages/OFS/ObjectManager.py", line 358, in _setObject
    notify(ObjectAddedEvent(ob, self, id))
    File "/opt/zenoss/lib/python2.7/site-packages/zope/event/__init__.py", line 31, in notify
    subscriber(event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/event.py", line 24, in dispatch
    zope.component.subscribers(event, None)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 607, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/event.py", line 32, in objectEventNotify
    zope.component.subscribers((event.object, event), None)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 607, in subscribers
    subscription(*objects)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 101, in onObjectAdded
    notify(IndexingEvent(ob, triggered_by_zope_event=True))
    File "/opt/zenoss/lib/python2.7/site-packages/zope/event/__init__.py", line 31, in notify
    subscriber(event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/event.py", line 24, in dispatch
    zope.component.subscribers(event, None)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 607, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/event.py", line 32, in objectEventNotify
    zope.component.subscribers((event.object, event), None)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 607, in subscribers
    subscription(*objects)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 59, in onIndexingEvent
    object_to_index = _get_object_to_index(ob)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 48, in _get_object_to_index
    path = evob.getPrimaryPath()
    AttributeError: 'NoneType' object has no attribute 'getPrimaryPath'
    2019-03-14 16:42:05,899 ERROR zen.Job: Job 0e49b4ae-2c5d-4514-a62a-947c3a7c2648 failed with an exception
    2019-03-14 16:42:05,899 ERROR zen.Job: <traceback object at 0x7fad15d1a5a8>
    2019-03-14 16:42:05,913 INFO zen.Job: Dependent job(s) 98dcc867-1ccf-4e30-b155-ed6cf066153b aborted
    ------

    Already used the toolbox to find possible database errors but unfortunately without success. Furthermore I tried to find broken Zenpacks via zendmd. Also no luck.

    Any hints are appreciated.

    Thanks and Cheers from Berlin, Germany.

    ------------------------------
    Martin
    CompanyName
    ------------------------------