Archived community.zenoss.org | full text search
Skip navigation
1 2 3 Previous Next 11066 Views 41 Replies Latest reply: Oct 17, 2012 10:42 AM by m.lijesen RSS
dswope Rank: White Belt 60 posts since
Jul 10, 2009
Currently Being Moderated

Nov 7, 2011 1:37 PM

AttributeError __call__ error

I get the following error when attempting to click on "INFRASTRUCTURE" in Zenoss 3.0.3 (CentOS)

 

The server reported the following error:

AttributeError __call__

The system has encountered an error. Please reload the page.


Everything else is ok as far as events, reports and advanced. I'm trying to troubleshoot some SNMP down events but cannot make it to the devices through In
frastructure. Any ideas?
event.log shows
2011-11-07T12:21:50 ERROR extdirect __call__
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenUtils/extdirect/router.py", line 128, in _processDirectRequest
    result = _targetfn(**data)
  File "/opt/zenoss/Products/Zuul/routers/device.py", line 49, in getTree
    tree = facade.getTree(id)
  File "/opt/zenoss/Products/Zuul/facades/__init__.py", line 77, in getTree
    return ITreeNode(obj)
  File "/opt/zenoss/lib/python/zope/site/hooks.py", line 95, in adapter_hook
    return siteinfo.adapter_hook(interface, object, name, default)
  File "/opt/zenoss/Products/Zuul/tree.py", line 34, in __init__
    brain = ICatalogTool(ob).getBrain(ob)
  File "/opt/zenoss/Products/Zuul/tree.py", line 200, in getBrain
    brains = self.catalog(path={'query':path, 'depth':0})
AttributeError: __call__
------
Any ideas?

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    1. Nov 11, 2011 11:30 AM (in response to dswope)
    Re: AttributeError __call__ error

    dswope:

     

    I'd try to rebuild teh global catalog.

     

    As the zenoss user on the zenoss master:

     

    python $ZENHOME/Products/ZenUtils/zencatalog.py --forceindex --createcatalog

     

    Let me know if it helps.

     

    Best,

    --Shane

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    3. Nov 22, 2011 11:49 AM (in response to dswope)
    Re: AttributeError __call__ error

    dsWope:

     

    Yikes!

     

    If this is an important install, back it up before we continue.

     

    Once done, su zenoss the zenmigrate run --step='GlobalCatalog'

     

    Let me know what happens.

     

    Best,

    --Shane (Hackman238)

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    7. Nov 22, 2011 12:35 PM (in response to dswope)
    Re: AttributeError __call__ error

    dsWope:

     

    As user zenoss, zenchkrels -x1 -r

     

    It could take a long time.

     

    --Shane (Hackman238)

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    10. Nov 29, 2011 3:13 PM (in response to dswope)
    Re: AttributeError __call__ error

    dswope:

     

    In zendmd, try:

     

    sync()
    from Acquisition import aq_base
    from Products.ZenRelations.ToManyContRelationship import ToManyContRelationship
    reportclass = dmd.Reports._getOb('Multi-Graph Reports')
    for organizer in reportclass.getSubOrganizers():
        for report in organizer.reports():
            try:
                rptcolls = report.collections
            except AttributeError:
                continue
            for coll in rptcolls():
                rel = coll.items
                if isinstance(rel, ToManyContRelationship):
                    obs = []
                    for ob in rel():
                        obs.append(aq_base(ob))
                        remote_rel = ob.collection
                        remote_rel._remove(coll)
                        rel._remove(ob)
                    coll._delObject('items')
                    coll.buildRelations()
                    newrel = coll.collection_items.primaryAq()
                    for ob in obs:
                        newrel._setObject(ob.getId(), ob)
                        ob = newrel._getOb(ob.getId())
                        print ob.__primary_parent__
                        assert ob.__primary_parent__ == newrel
                        assert ob.collection() == coll
                        assert ob in newrel()
    
    
    commit()
    

     

     

    --Shane

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    12. Nov 29, 2011 4:27 PM (in response to dswope)
    Re: AttributeError __call__ error

    dswope:

     

    I'd stop zenoss completely, restart it and try again. Thats a odd error.

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    14. Nov 29, 2011 4:32 PM (in response to dswope)
    Re: AttributeError __call__ error

    dswope:

     

    As the zenoss user, zeoctl stop then zeoctl. It'll present a zeo> prompt. Type fg and post the trace.

1 2 3 Previous Next

More Like This

  • Retrieving data ...

Legend

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