Problem importing xml backup file
I have to upgrade to a new server and I export my zope in the xml file using the export option. On the old system I use zope 2.7 and python 2.4.3, on the new system I use opensuse 10.2 with python 2.4.4 (recompiled by me) and zope 2.10. When I try to import the file I receive the following error : Site Error An error was encountered while publishing this resource. Error Type: UnicodeDecodeError Error Value: 'ascii' codec can't decode byte 0xa1 in position 34: ordinal not in range(128) And in the log : 2007-07-20T11:26:06 ERROR Zope.SiteErrorLog http://10.0.1.130:9673/manage_importObject 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 OFS.ObjectManager, line 609, in manage_importObject Module OFS.ObjectManager, line 626, in _importObjectFromFile Module ZODB.ExportImport, line 65, in importFile Module OFS.XMLExportImport, line 114, in importXML Module Shared.DC.xml.xyap, line 58, in unknown_endtag Module Shared.DC.xml.ppml, line 626, in save_object UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 34: ordinal not in range(128) I tried to find any recurrence of xa1 in the xml file but I did not find anything. Any help please. Thanks -- Vittorio Manfredini
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 20 Jul 2007, at 12:06, Vittorio Manfredini wrote:
I have to upgrade to a new server and I export my zope in the xml file using the export option.
On the old system I use zope 2.7 and python 2.4.3, on the new system I use opensuse 10.2 with python 2.4.4 (recompiled by me) and zope 2.10.
When I try to import the file I receive the following error :
Import/Export is *not* an upgrade mechanism, it is only guaranteed to work if you use the exact same software versions on both ends. To upgrade, copy your Data.fs database file into your new setup. jens -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFGoJd8RAx5nvEhZLIRApb6AKC3Rr1jK5T9OtqzeXvU8fI8GybXZwCgrqN2 iE6ZII1VEBca3V8NHi3x7tM= =rjOV -----END PGP SIGNATURE-----
Vittorio Manfredini wrote at 2007-7-20 12:06 +0200:
I have to upgrade to a new server and I export my zope in the xml file using the export option.
On the old system I use zope 2.7 and python 2.4.3, on the new system I use opensuse 10.2 with python 2.4.4 (recompiled by me) and zope 2.10.
When I try to import the file I receive the following error :
Site Error
An error was encountered while publishing this resource.
Error Type: UnicodeDecodeError Error Value: 'ascii' codec can't decode byte 0xa1 in position 34: ordinal not in range(128)
This looks like a well known problem with xml exports (and XML in general -- it is not easy to generate a valid XML document with character content of unknown encoding). Try to use a binary export (no XML) -- or even better, copy the storage file. -- Dieter
participants (3)
-
Dieter Maurer -
Jens Vagelpohl -
Vittorio Manfredini