Nov 24, 2009 3:04 PM
Error in zenmigrate from 2.4.2 to 2.5.1
-
Like (0)
Hi,
What zenpack command are you referring to? I tought it was only used to install/uninstall zenpacks.
Best regards, Pedro Almeida.
Hi,
Here's the output
$ zenpack --list
HPTemperatureSensors (/opt/zenoss/Products/HPTemperatureSensors)
MicrosoftIIS6 (/opt/zenoss/Products/MicrosoftIIS6)
Squid (/opt/zenoss/Products/Squid)
VMwareEsx (/opt/zenoss/Products/VMwareEsx)
WMIExchangeMonitor (/opt/zenoss/Products/WMIExchangeMonitor)
WindowsWMIDeviceTemplateV2 (/opt/zenoss/Products/WindowsWMIDeviceTemplateV2)
ZenPacks.Ecocoms.OpenLayersMap (/opt/zenoss/ZenPacks/ZenPacks.Ecocoms.OpenLayersMap-1.1-py2.4.egg)
ZenPacks.SCC.ShowGraphPortlet (/opt/zenoss/ZenPacks/ZenPacks.SCC.ShowGraphPortlet-1.0-py2.4.egg)
ZenPacks.community.HPSIMMonitor (/opt/zenoss/ZenPacks/ZenPacks.community.HPSIMMonitor-1.1-py2.4.egg)
ZenPacks.community.HPUXMonitor (/opt/zenoss/ZenPacks/ZenPacks.community.HPUXMonitor-2.1-py2.4.egg)
ZenPacks.networking.HPProcurve (/opt/zenoss/ZenPacks/ZenPacks.networking.HPProcurve-1.1-py2.4.egg)
ZenPacks.vaibhav.brocadeswitches (/opt/zenoss/ZenPacks/ZenPacks.vaibhav.brocadeswitches-1.0-py2.4.egg)
ZenPacks.vmware.VirtualMachines (/opt/zenoss/ZenPacks/ZenPacks.vmware.VirtualMachines-1.2-py2.4.egg)
ZenPacks.zenoss.ZenAWS (/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenAWS-1.0-py2.4.egg)
Best regards, Pedro Almeida.
I passed it on to Matt Ray, they'll be looking in to it:
[05:46pm] <rmatte> I've seen a few people having zenmigrate errors too: message/42575#42575
[05:46pm] <rmatte> not sure if you could look in to that?
[05:46pm] <adytum-bot> Title: Open Source Network Monitoring and Systems Management - Error in zenmigrate from 2.4.2 to 2.5.1 (at community.zenoss.org)
[05:47pm] <@mrayzenoss> passed it on to our QA manager⦠I'm way behind on my forum reading since I was out 2 weeks
[05:47pm] <@mrayzenoss> he asked me to forward him any new 2.5.1 issues
Hi,
Just an update, I tried using the 2.5.0 rpm to check if I still had an error upgrading from 2.4.2, and yes, it's the same thing as 2.5.1.
[root@zenoss install]# rpm -Uvh zenoss-2.5.0.el5.x86_64.rpm --nodeps --force
warning: zenoss-2.5.0.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID aa5a1ad7
Preparing... ########################################### [100%]
1:zenoss ########################################### [100%]
[root@zenoss install]# service zenoss start
Zenoss upgraded. Running data migration scripts...
Upgrade pre step
/opt/zenoss/bin/install-functions.sh converted
/opt/zenoss/bin/zenoss_upgrade_pre converted
Starting Zope Object Database
.
daemon process started, pid=27135
Migrating data...
INFO:zen.migrate:Database going to version Zenoss 2.5.0
INFO:zen.migrate:Installing AddConfigTimeDataPoints (2.5.0)
INFO:zen.migrate:Installing AddEventQueueLength (2.5.0)
INFO:zen.migrate:Installing AddFilesystemAndInterfaceDataPointAliases (2.5.0)
Recovering
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 21, in ?
main()
File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 18, in main
m.main()
File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 425, in main
self.cutover()
File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 305, in cutover
self.migrate()
File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 281, in migrate
m.cutover(self.dmd)
File "/opt/zenoss/Products/ZenModel/migrate/addFilesystemAndInterfaceDataPointAliases.py", line 30, in cutover
{'ifInOctets' : ('inputOctets__bytes',),
File "/opt/zenoss/Products/ZenModel/migrate/addFilesystemAndInterfaceDataPointAliases.py", line 22, in attachAliases
dp.addAlias( *aliasMap[dp.id] )
File "/opt/zenoss/Products/ZenModel/RRDDataPoint.py", line 178, in addAlias
manage_addDataPointAlias( self, id, formula )
File "/opt/zenoss/Products/ZenModel/RRDDataPointAlias.py", line 39, in manage_addDataPointAlias
context.aliases._setObject( id, alias )
AttributeError: 'function' object has no attribute '_setObject'
Stopping Zope Object Database
.
daemon process stopped
Zenoss upgrade pre-restart commands complete.
Daemon: zeoctl .
daemon process started, pid=27208
Daemon: zopectl .
daemon process started, pid=27214
Daemon: zenhub starting...
Daemon: zenjobs starting...
Daemon: zenping starting...
Daemon: zensyslog starting...
Daemon: zenstatus starting...
Daemon: zenactions starting...
Daemon: zentrap starting...
Daemon: zenmodeler starting...
Daemon: zenperfsnmp starting...
Daemon: zencommand starting...
Daemon: zenprocess starting...
Daemon: zenwin starting...
Daemon: zeneventlog starting...
Daemon: zenjmx /opt/zenoss/bin/zenoss: line 105: /opt/zenoss/bin/zenjmx: No such file or directory
Best regards, Pedro Almeida.
I'm having exactly the same problem. Is there a fix?
I had a couple of errors installing the zenoss-zenpack-core rpm too.
One coming back was: KeyError: 'titleOrId'
Now, when I go to my Dashboard and try to get a 'Device List', I see there is no communication with the server.
event.log shows me this error:
2009-12-03T15:30:07 ERROR Zope.SiteErrorLog http://zenoss:8080/zport/dmd/Devices/getJSONDeviceInfo
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.ZenUtils.Utils, line 1290, in inner
Module Products.ZenModel.browser.DeviceList, line 70, in __call__
Module Products.ZenUtils.json, line 41, in inner
Module Products.ZenModel.browser.DeviceList, line 85, in _getJSONDeviceInfo
Module Products.ZenModel.browser.DeviceList, line 35, in __call__
Module Products.ZenModel.browser.DeviceList, line 56, in _getAdvancedQueryDeviceList
Module Products.AdvancedQuery.eval, line 40, in eval
Module Products.AdvancedQuery.eval, line 16, in _eval
Module Products.AdvancedQuery.AdvancedQuery, line 220, in _eval
Module Products.AdvancedQuery.AdvancedQuery, line 233, in _eval
Module Products.AdvancedQuery.AdvancedQuery, line 84, in _eval
Module Products.AdvancedQuery.AdvancedQuery, line 278, in _applyIndex
KeyError: 'titleOrId'
Hello,
Has anyone found a fix to this issue yet? I'm having the exact same problem after the upgrade...no more Events Console and Error Server Connection Error is reported. I'm running Ubuntu Server 8.04 and the only difference is that I upgraded from zenoss-stack-2.4.1-linux.bin to zenoss-stack-2.5.1-linux.bin.
Thanks so much.
J
WOOT! Fixed! Found this in another thread;
zenmigrate --step=AddTitleOrIdToCatalogs
INFO:zen.migrate:Database going to version Zenoss 2.5.0
INFO:zen.migrate:Installing AddTitleOrIdToCatalogs (2.5.0)
INFO:zen.migrate:Reindexing devices. This may take a while...
INFO:zen.migrate:committing
INFO:zen.migrate:Migration successful
And just clicked on the Events link and all works again, no more errors!!!
Just to be sure, I also ran zenmigrate -v 10 and it came back with no errors!
Thanks again and Cheers!
J
That seems to do the trick, thank you.
Best regards, Pedro Almeida.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||