Hi, Is there an easy way to fix database inconsistencies? Our current installation keeps spitting out different errors from time to time when installing ZenPacks and accessing their features. I'm assuming that the origin of these problems are from upgrading the centos packages incorrectly (I didn't know better back then).
I've been able to fix some of the errors, but what i'm looking for is to ensure that the database is actually consistent so that i don't have to manually track down problems. Simple backup/restore doesn't work since it apparently just dumps and loads the database. Here is an example with the HelloWorld ZenPack installation. Output: zenpack --install /tmp/HelloWorldZenPack-zenoss--1.0.0-el5-i686.zip INFO:zen.ZPLoader:Loading /opt/zenoss/Products/HelloWorldZenPack/objects/objects.xml WARNING:zen.AddToPack:Object /zport/dmd/Devices/rrdTemplates/HelloWorld already exists skipping Traceback (most recent call last): File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 386, in ? zp.run() File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 149, in run self.install(packName) File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 238, in install zp.install(self.app) File "/opt/zenoss/Products/ZenModel/ZenPack.py", line 185, in install loader.load(self, app) File "/opt/zenoss/Products/ZenModel/ZenPackLoader.py", line 99, in load importer.loadObjectFromXML(xmlfile=f) File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 245, in loadObjectFromXML parser.parse(self.infile) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 300, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 73, in startElement self.objstack.append(self.context()._getOb(attrs['id'])) File "/opt/zenoss/lib/python/OFS/CopySupport.py", line 67, in _getOb raise AttributeError, id AttributeError: datasources Regards, Sami -- Sami Haahtinen <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
_______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
