Archived community.zenoss.org | full text search
Skip navigation
4447 Views 13 Replies Latest reply: Sep 20, 2011 9:33 AM by gadams RSS
Currently Being Moderated

Sep 6, 2011 9:09 AM

Upgraded to 3.2, now broken

When upgrading from 3.1 to 3.2 on CentOS 5.6 I got the following error in install.log:

 

....

INFO:zen.migrate:Reindexing components.  This may take a while ...
INFO:zen.migrate:indexed 1 components
WARNING:zen.migrate:Recovering
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 21, in <module>
    main()
  File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 18, in main
    m.main()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 417, in main
    self.cutover()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 304, in cutover
    self.migrate()
  File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 280, in migrate
    m.cutover(self.dmd)
  File "/opt/zenoss/Products/ZenModel/migrate/eventfacadeUsingCatalog.py", line 53, in cutover
    notify(IndexingEvent(comp))
  File "/opt/zenoss/lib/python/zope/event/__init__.py", line 23, in notify
    subscriber(event)
  File "/opt/zenoss/lib/python/zope/component/event.py", line 26, in dispatch
    for ignored in zope.component.subscribers(event, None):
  File "/opt/zenoss/lib/python/zope/component/_api.py", line 138, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/opt/zenoss/lib/python/zope/component/registry.py", line 323, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/opt/zenoss/lib/python/zope/interface/adapter.py", line 579, in subscribers
    subscription(*objects)
  File "/opt/zenoss/lib/python/zope/component/event.py", line 33, in objectEventNotify
    adapters = zope.component.subscribers((event.object, event), None)
  File "/opt/zenoss/lib/python/zope/component/_api.py", line 138, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/opt/zenoss/lib/python/zope/component/registry.py", line 323, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/opt/zenoss/lib/python/zope/interface/adapter.py", line 579, in subscribers
    subscription(*objects)
  File "/opt/zenoss/Products/Zuul/catalog/events.py", line 52, in onIndexingEvent
    update_metadata=event.update_metadata)
  File "/opt/zenoss/Products/Zuul/catalog/global_catalog.py", line 322, in catalog_object
    ZCatalog.catalog_object(self, ob, uid, **kwargs)
  File "/opt/zenoss/lib/python/Products/ZCatalog/ZCatalog.py", line 529, in catalog_object
    update_metadata=update_metadata)
  File "/opt/zenoss/lib/python/Products/ZCatalog/Catalog.py", line 339, in catalogObject
    index = self.updateMetadata(object, uid)
  File "/opt/zenoss/lib/python/Products/ZCatalog/Catalog.py", line 278, in updateMetadata
    newDataRecord = self.recordify(object)
  File "/opt/zenoss/lib/python/Products/ZCatalog/Catalog.py", line 417, in recordify
    if(attr is not MV and safe_callable(attr)): attr=attr()
  File "/opt/zenoss/Products/Zuul/catalog/global_catalog.py", line 224, in searchExcerpt
    o.name(), o.getParentDeviceName())
TypeError: 'str' object is not callable
Stopping Zope Object Database
.
daemon process stopped
Zenoss upgrade pre-restart commands complete.
Daemon: zeoctl .
   ......



 

 

Now Zenoss 3.2 has started but neither Events console nor Infrastructure can be loaded in the browser, the "Unable to connect to the server." message is displayed.

Messages like this appearing in events.log:

 

2011-09-06T13:22:35 ERROR Zope.SiteErrorLog 1315311755.370.698218486027 http://ugbbsk1003.wsatkins.com:8080/zport/dmd/Events/evconsole_router
Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Products.ZenUtils.extdirect.zope.router, line 24, in __call__
  Module Products.ZenUtils.extdirect.router, line 88, in __call__
  Module Products.ZenUtils.jsonutils, line 152, in json
  Module json, line 230, in dumps
  Module json.encoder, line 367, in encode
  Module json.encoder, line 309, in _iterencode
  Module json.encoder, line 275, in _iterencode_dict
  Module json.encoder, line 309, in _iterencode
  Module json.encoder, line 275, in _iterencode_dict
  Module json.encoder, line 306, in _iterencode
  Module json.encoder, line 204, in _iterencode_list
  Module json.encoder, line 309, in _iterencode
  Module json.encoder, line 275, in _iterencode_dict
  Module json.encoder, line 309, in _iterencode
  Module json.encoder, line 275, in _iterencode_dict
  Module json.encoder, line 317, in _iterencode
  Module json.encoder, line 323, in _iterencode_default
  Module json.encoder, line 344, in default
TypeError: <bound method DeviceClass.titleOrId of <DeviceClass at /zport/dmd/Devices>> is not JSON serializable

 

Message was edited by: gadams Downgraded rpms and used zenrestore, now seem to be running OK back at version 3.1 .

  • rphil001 Rank: White Belt 7 posts since
    Jul 25, 2011
    Currently Being Moderated
    1. Sep 6, 2011 11:52 AM (in response to gadams)
    Re: Upgraded to 3.2, now broken

    Hi, we have exactly the same issue here. We think it may be a zenpack thats causing the issue, which ones did you have preinstall? I have list ours below in case of somen common ones

     

    ZenPacks.HP.Proliant.MIBs

    ZenPacks.SCC.ShowGraphPortlet

    ZenPacks.community.DistributedCollectors

    ZenPacks.community.HPMon

    ZenPacks.community.VMwareESXMonitor

    ZenPacks.community.VMwareEsx

    ZenPacks.community.WMIDataSource

    ZenPacks.community.WMIPerf_Exchange2003

    ZenPacks.community.WMIPerf_TerminalServer

    ZenPacks.community.deviceAdvDetail

    ZenPacks.vmware.VirtualMachines

    ZenPacks.zenoss.HPMonitor

    ZenPacks.zenoss.HttpMonitor

    ZenPacks.zenoss.ZenossVirtualHostMonitor

  • Alan Milligan Rank: Green Belt 95 posts since
    Feb 12, 2010
    Currently Being Moderated
    2. Sep 6, 2011 3:40 PM (in response to rphil001)
    Re: Upgraded to 3.2, now broken

    I've seen this issue too.  It's actually related to a bad ZCatalog entry.  Either in Devices/componentSearch or Devices/deviceSearch which have titleOrId indexes or metadata.  Unfortunately, rebuilding these catalogs didn't fix the issue (and a grok of the entire code base didn't highlight any obvious issue - ie any loose context.titleOrId instead of context.titleOrId() ...)

     

    I also converted the calls to simplejson which while not fixing the issue will be considerably faster for python < 2.7.

     

    So, it's nothing to do with ZenPacks .. just Zenoss Core

  • artifact Rank: Green Belt 303 posts since
    Mar 11, 2008
    Currently Being Moderated
    3. Sep 6, 2011 4:41 PM (in response to gadams)
    Re: Upgraded to 3.2, now broken

    I'm seeing the same problem. I'm trying to fix it by clearing the devicesearch and ipsearch and componentsearch catalogs, re-executing zenmigrate manually, and running zencatalog.py --force. I'll let you know how it goes.

  • dhopp Rank: Green Belt 184 posts since
    Jul 17, 2007
    Currently Being Moderated
    4. Sep 6, 2011 5:13 PM (in response to Alan Milligan)
    Re: Upgraded to 3.2, now broken

    Has a ticket been opened on http://dev.zenoss.org/trac ?

     

    --Dennis

  • rphil001 Rank: White Belt 7 posts since
    Jul 25, 2011
    Currently Being Moderated
    5. Sep 7, 2011 3:35 AM (in response to artifact)
    Re: Upgraded to 3.2, now broken

    How dod you get on, any luck with fixing it? im in the process of rolling back to 3.1.0 and restoring.

  • artifact Rank: Green Belt 303 posts since
    Mar 11, 2008
    Currently Being Moderated
    6. Sep 7, 2011 2:21 PM (in response to gadams)
    Re: Upgraded to 3.2, now broken

    I've had some luck, everything is working (event console and Infrastructure page) execpt for anything that involves modeling/indexing. So modeling an existing device, adding a new device, etc. is all borken. I'm still getting errors like this anything the new_index_object() function is called:

     

     

    2011-09-07T11:17:13 ERROR zen.Zuul new_index_object() takes exactly 1 argument (2 given)
    Traceback (most recent call last):
      File "/usr/local/zenoss/zenoss/Products/Zuul/routers/device.py", line 242, in moveDevices
        facade.moveDevices(uids, target)
      File "/usr/local/zenoss/zenoss/Products/Zuul/facades/devicefacade.py", line 350, in moveDevices
        dev.setLocation(targetname)
      File "/usr/local/zenoss/zenoss/Products/ZenModel/Device.py", line 1544, in setLocation
        self.index_object()
      File "/usr/local/zenoss/zenoss/Products/ZenModel/Device.py", line 1967, in index_object
        super(Device, self).index_object()
    TypeError: new_index_object() takes exactly 1 argument (2 given)
    

     

    I've seen a couple of other threads like this, but I can't find an applicable bug report on Trac, so I'm opening a report...

  • artifact Rank: Green Belt 303 posts since
    Mar 11, 2008
    Currently Being Moderated
    7. Sep 7, 2011 2:27 PM (in response to artifact)
    Re: Upgraded to 3.2, now broken

    http://dev.zenoss.com/trac/ticket/7862

     

    Please contribute/add to the ticket any pertaining data you guys might have...

  • Rank: Brown Belt 260 posts since
    Mar 30, 2009
    Currently Being Moderated
    10. Sep 14, 2011 1:25 PM (in response to artifact)
    Re: Upgraded to 3.2, now broken

    You need to remove your old PreUpgrade Zenpack with:

    $ZENHOME/bin/zenpack --remove ZenPacks.zenoss.PreUpgrade30

     

    If this gives an error, look to see if you have this ZenPack via:

    $ZENHOME/bin/zenpack --list

     

    -----

     

    Two patches have been developed that will tell users this, for future versions.

    See http://dev.zenoss.com/trac/ticket/7862

More Like This

  • Retrieving data ...

Incoming Links

Legend

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