Sep 7, 2011 5:34 AM
Post 3.2 Upgrade issues
-
Like (0)
Hi,
I've done an Upgrade from Source .tar on my Zenoss Ubuntu installation (from 3.1)
daemon process started, pid=13970
Loading initial Zenoss objects into the Zeo database
(this can take a few minutes)
zport portal object exits; exiting.
Data migration failed
zenoss@UBZEN01:~/zenoss-3.2.0$ zenmigrate
INFO:zen.migrate:Database going to version Zenoss 3.1.70
INFO:zen.migrate:Installing DeviceSearchCatalogUpdate (3.1.1)
WARNING:zen.migrate:Recovering
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 21, in <module>
main()
File "/usr/local/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 18, in main
m.main()
File "/usr/local/zenoss/Products/ZenModel/migrate/Migrate.py", line 417, in main
self.cutover()
File "/usr/local/zenoss/Products/ZenModel/migrate/Migrate.py", line 304, in cutover
self.migrate()
File "/usr/local/zenoss/Products/ZenModel/migrate/Migrate.py", line 280, in migrate
m.cutover(self.dmd)
File "/usr/local/zenoss/Products/ZenModel/migrate/deviceSearchCatalogUpdate.py", line 76, in cutover
brain.getObject().index_object()
File "/usr/local/zenoss/Products/ZenModel/Device.py", line 1967, in index_object
super(Device, self).index_object(idxs)
TypeError: new_index_object() takes exactly 1 argument (2 given)
zenoss@UBZEN01:~/zenoss-3.2.0$
thereafter I'm able to login and see the landing page, However I cannot access either the EVENTS or INFRASTRUCTURE PAGES
and end up with the following...
Now I've followed the upgrade instructions in the Installation document but it seems to be a outdated. (Page 36 Upgrading a Source tarball Installation).
Daemons showing as Follows
any idea how I get this fixed?
Hey,
I opened a ticket for this: http://dev.zenoss.com/trac/ticket/7862
I was able to restore *some* functionality by clearing the DeviceSearch, Ipsearch, and componentsearch catalogs, re-running zenmigrate, and rebuilding the catalogs. Some stuff is still broken like modeling and adding new devices, and changing devices... anything that requires a change to the index.
artifact - did you do an upgrade from pre-3.x? the only time i've ever seen the specific reason for failure that you posted in that trac ticket is if the PreUpgrade zenpack is still installed. that is supposed to automatically be removed immediately post-upgrade to 3.x, however if something broke along the way that can get left behind and will result in this message. check your list of zenpacks and see if the Zenoss.ZenPacks.PreUpgrade zenpack is still there. if it is, you can get past this ... but will also need a copy of the $ZENHOME/log/install.log to determine what failed in the first place to cause that zenpack to be left behind.
ones_and_zeros - I think that's it, the old zenpack was installed, I tried to uninstall via the gui but that gave errors, but it's no longer listed.
I'm out of the office today but will have a full crack at it tomorrow.
I've been ugrading incrimentally from early 2.x days (I've have to get the downloads). I can confirm the exact version upgrades tomorrow.
many thanks.
Insane_Homer - if that zenpack was left behind, then you'll have a traceback in your $ZENHOME/log/install.log from when you were doing the upgrade, and this will point to what caused the problem initially and give a clue as to what state the installation is currently in. there's also a chance that whatever the original issue was has cleared up and simply removing the PreUpgrade zenpack is all you needed to do.
I have the same problem and the PreUpgrade Zenpack is not present.
Zenoss was updaded automatically and stopped working. All the processes were stopped and restarting them didn't help getting the webinterface back on. zeoctl failed to restart.
After rebooting the server, we saw update processes running and the webinterface was up again but we are getting the messages described here.
Message was edited by: VBinet Install.log added.
exact same thing here, same behaviour after the upgrade
upgraded from 3.1
apt-get update
apt-get upgrade zenoss-stack
Any suggestions?
For me, the PreUpgrade zenpack was not listed in the Zenoss gui or in Zope, but there were two ZenPack directories in $ZENHOME/ZenPacks for some reason:
$ZENHOME/ZenPacks/ZenPacks.zenoss.PreUpgrade30-1.1.egg
$ZENHOME/ZenPacks/ZenPacks.zenoss.PreUpgrade30-1.1-py2.4.egg
I moved the latter directory to /tmp, restarted Zenoss, and now everything is working perfectly.
Thank you very much ones_and_zeros for pointing me in the right direction.
VBinet - you've got a relationship problem in the object database that got in the way of a catalog update. you'll want to run the 'zenfixit' utility, and when it's complete just run 'zenmigrate' at the zenoss server command line, as the zenoss user. that should get it to pick up with the migration where it failed out. i'd actually recommend stopping all of the zenoss daemons before doing this, and then only starting zeoctl so that there's nothing else accessing the object database while you're doing this. once the migration steps complete, as they hopefully will, then start up all of the zenoss services and you should be set.
I've found and delete the pre-upgrade from the $ZENHOME/Zenpacks/ folder.
restarted Zenoss but still getting errors.
All Daemons working except for wmi.
going with a
make clean
./install.sh
for a re-compile... holding thumbs
edit: bugger... now this...
File "/usr/local/zenoss/lib/python/Zope2/utilities/copyzopeskel.py", line 191, in copyskel
os.chmod(fullname, 0700)
OSError: Operation not permitted: '/usr/local/zenoss/bin/zensocket'
Unable to create Zope instance.
now it's foobar completely :/
I couldn't find zenfixit so I downloaded it form
servlet/JiveServlet/download/47157-2585/zenfixit.py.txt.zip
Followed the instructions and tried the WUI again. I got a message telling me to run mysqladmin flush-hosts and after doing it, I can see the events and the infrastructure.
Problem solved in my case. Thank you.
I managed to download zenfixit.py.txt.zip , it's in /root now
I managed to un-zip and if I recall correct rename it, it and I have zenfixit.py now
Am i doing it right?
I'm a linux noob, do you mind telling me what I need to do, what commands I need to fire at the terminal to run this tool?
I got Webmin installed and SSH. How to I run this tool?
My problem is exactly as yours and I really hope this tool will fix it...
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||