I added a bunch of fixes to the dump stuff for the next release because we are reorganiing the way objects are stored. The problem is that we aren't handling strings with non-ascii characters properly. You can use zen2dump.py in trunk/inst to do the dump properly (I hope!)

-EAD

On Mar 22, 2007, at 1:03 PM, Paul Morton wrote:

Started and export of the zenoss database with the following command: ./zendump --outfile=/data/zenoss.dump



2-3 minutes in, I receive the following error.



Traceback (most recent call last):

  File "/opt/zenoss/Products/ZenRelations/ExportRM.py", line 58, in ?

    ex.export()

File "/opt/zenoss/Products/ZenRelations/ExportRM.py", line 49, in export

    root.exportXml(self.outfile,self.options.ignorerels,True)

File "/opt/zenoss/Products/ZenRelations/RelationshipManager.py", line 267, in exportXml

if exportHook and callable(exportHook): exportHook(ofile, ignorerels)

File "/opt/zenoss/Products/ZenModel/DataRoot.py", line 213, in exportXmlHook

    map(lambda x: x.exportXml(ofile, ignorerels), self.getDmdRoots())

File "/opt/zenoss/Products/ZenModel/DataRoot.py", line 213, in <lambda>

    map(lambda x: x.exportXml(ofile, ignorerels), self.getDmdRoots())

File "/opt/zenoss/Products/ZenModel/ManufacturerRoot.py", line 238, in exportXml

    obj.exportXml(ofile, ignorerels)

File "/opt/zenoss/Products/ZenRelations/RelationshipManager.py", line 265, in exportXml

    self.exportXmlRelationships(ofile, ignorerels)

File "/opt/zenoss/Products/ZenRelations/RelationshipManager.py", line 298, in exportXmlRelationships

    rel.exportXml(ofile, ignorerels)

File "/opt/zenoss/Products/ZenRelations/ ToManyContRelationship.py", line 239, in exportXml

    obj.exportXml(ofile, ignorerels)

File "/opt/zenoss/Products/ZenRelations/RelationshipManager.py", line 264, in exportXml

    self.exportXmlProperties(ofile)

File "/opt/zenoss/Products/ZenRelations/RelationshipManager.py", line 290, in exportXmlProperties

    ofile.write(saxutils.escape(str(value))+"\n")

UnicodeEncodeError: 'ascii' codec can't encode character u'\xae' in position 14: ordinal not in range(128)







Paul Morton

Systems Engineer II



==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-- ==--==--== CONFIDENTIALITY NOTICE: This e-mail contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. E-mail cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Neither the sender nor CoBiz Inc. and its subsidiaries accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. CBIT2007
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to