[Zope] ZSyncer error: "illegal data at start of file"

Kamal Gill ksgill at ucdavis.edu
Fri Oct 31 14:45:21 EST 2003


> That's possible. But can you do me a favor and try it
> with an older version of ZSyncer, e.g. 0.4.6 or even older?
> If that works then I know it's a problem in zsyncer.
> I believe Andy ran zsyncer on windows, so it used to work.

The same error is returned with ZSyncer 0.4.6.

> Also, please let me know a bit more about the objects you are
> trying to compare. What exactly were you doing? Does this error
> happen on all comparisons?

The error appears after clicking the sync tab in a given folder.
The objects we're comparing are DTML Methods, DTML Documents, Images, 
Folders, Page Templates, and Scripts.
In ZSyncer 0.4.6, the error is returned only when a folder on the 
source is not present on the destination.  The comparison and sync 
operations work fine when the folder's id and tree location is 
identical on the source and destination.  With ZSyncer 0.5.0-pre10, the 
"illegal data at start of file" error is returned if a folder on the 
source is not present on the destination.  If a folder's id and tree 
location is identical between the source and destination, the following 
error is returned (using ZSyncer 0.5.0-pre10)..

     * Oh fooey. NameError
     * name 'mode' is not defined
     * Traceback (most recent call last):
       File 
"D:\PROGRA~1\MEDZOP~1\lib\python\DocumentTemplate\DT_Try.py", line 149, 
in render_try_except
       result = render_blocks(self.section, md)
       File "D:\PROGRA~1\MEDZOP~1\lib\python\DocumentTemplate\DT_In.py", 
line 695, in renderwob
       try: append(render(section, md))
       File 
"D:\PROGRA~1\MEDZOP~1\lib\python\DocumentTemplate\DT_Let.py", line 76, 
in render
       return render_blocks(self.section, md)
       File 
"D:\PROGRA~1\MEDZOP~1\lib\python\DocumentTemplate\DT_Let.py", line 75, 
in render
       else: d[name]=expr(md)
       File 
"D:\PROGRA~1\MEDZOP~1\lib\python\DocumentTemplate\DT_Util.py", line 
159, in eval
       return eval(code, d)
       File "", line 0, in ?
       NameError: name 'mode' is not defined
* [{'icon': 'misc_/OFSP/Folder_icon.gif', 'dest_mod_time': '2003/08/22 
17:09:57.658 GMT', 'id': 'backup', 'src_mod_time': '2003/09/19 
23:45:36.778 GMT', 'src_best_modtime': '2003/09/19 23:45:36.778 GMT', 
'last_modified_time': '2003/09/19 23:45:36.778 GMT', 'path': ('', 
'dev', 'Private', 'kamal', 'backup'), 'is_folder': 1, 'meta_type': 
'Folder', 'dest_best_modtime': '2003/08/22 17:09:57.658 GMT', 'status': 
'out of date', 'size': '', 'dc_modtime': ''}, {'icon': 
'misc_/OFSP/Folder_icon.gif', 'dest_mod_time': '2003/08/22 17:09:57.924 
GMT', 'id': 'docs', 'src_mod_time': '2003/07/14 21:42:20.561 GMT', 
'src_best_modtime': '2003/07/14 21:42:20.561 GMT', 
'last_modified_time': '2003/07/14 21:42:20.561 GMT', 'path': ('', 
'dev', 'Private', 'kamal', 'docs'), 'is_folder': 1, 'meta_type': 
'Folder', 'dest_best_modtime': '2003/08/22 17:09:57.924 GMT', 'status': 
'ok', 'size': '', 'dc_modtime': ''}, {'icon': 
'misc_/OFSP/Folder_icon.gif', 'dest_mod_time': '2003/08/22 17:09:58.424 
GMT', 'id': 'redesign', 'src_mod_time': '2003/06/03 18:33:24.812 GMT', 
'src_best_modtime': '2003/06/03 18:33:24.812 GMT', 
'last_modified_time': '2003/06/03 18:33:24.812 GMT', 'path': ('', 
'dev', 'Private', 'kamal', 'redesign'), 'is_folder': 1, 'meta_type': 
'Folder', 'dest_best_modtime': '2003/08/22 17:09:58.424 GMT', 'status': 
'ok', 'size': '', 'dc_modtime': ''}, {'icon': 
'misc_/OFSP/Folder_icon.gif', 'dest_mod_time': '2003/08/22 17:10:00.424 
GMT', 'id': 'test', 'src_mod_time': '2003/10/06 20:41:03.718 GMT', 
'src_best_modtime': '2003/10/06 20:41:03.718 GMT', 
'last_modified_time': '2003/10/06 20:41:03.718 GMT', 'path': ('', 
'dev', 'Private', 'kamal', 'test'), 'is_folder': 1, 'meta_type': 
'Folder', 'dest_best_modtime': '2003/08/22 17:10:00.424 GMT', 'status': 
'out of date', 'size': '', 'dc_modtime': ''}, {'icon': 
'misc_/OFSP/Folder_icon.gif', 'dest_mod_time': '2003/08/22 17:09:57.846 
GMT', 'id': 'db', 'src_mod_time': '2003/09/24 22:05:19.068 GMT', 
'src_best_modtime': '2003/09/24 22:05:19.068 GMT', 
'last_modified_time': '2003/09/24 22:05:19.068 GMT', 'path': ('', 
'dev', 'Private', 'kamal', 'db'), 'is_folder': 1, 'meta_type': 
'Folder', 'dest_best_modtime': '2003/08/22 17:09:57.846 GMT', 'status': 
'out of date', 'size': '', 'dc_modtime': ''}, {'icon': 
'misc_/OFSP/Folder_icon.gif', 'dest_mod_time': '2003/08/22 17:09:57.955 
GMT', 'id': 'eval', 'src_mod_time': '2003/10/08 22:19:44.022 GMT', 
'src_best_modtime': '2003/10/08 22:19:44.022 GMT', 
'last_modified_time': '2003/10/08 22:19:44.022 GMT', 'path': ('', 
'dev', 'Private', 'kamal', 'eval'), 'is_folder': 1, 'meta_type': 
'Folder', 'dest_best_modtime': '2003/08/22 17:09:57.955 GMT', 'status': 
'out of date', 'size': '', 'dc_modtime': ''}, {'icon': 
'misc_/OFSP/Folder_icon.gif', 'dest_mod_time': '2003/10/07 16:16:16.762 
GMT', 'id': 'somweb', 'src_mod_time': '2003/09/24 22:05:19.068 GMT', 
'src_best_modtime': '2003/09/24 22:05:19.068 GMT', 
'last_modified_time': '2003/09/24 22:05:19.068 GMT', 'path': ('', 
'dev', 'Private', 'kamal', 'somweb'), 'is_folder': 1, 'meta_type': 
'Folder', 'dest_best_modtime': '2003/10/07 16:16:16.762 GMT', 'status': 
'ok', 'size': '', 'dc_modtime': ''}, {'icon': 
'misc_/OFSP/Folder_icon.gif', 'dest_mod_time': '2003/08/22 17:10:00.455 
GMT', 'id': 'zusers', 'src_mod_time': '2003/08/26 21:28:47.925 GMT', 
'src_best_modtime': '2003/08/26 21:28:47.925 GMT', 
'last_modified_time': '2003/08/26 21:28:47.925 GMT', 'path': ('', 
'dev', 'Private', 'kamal', 'zusers'), 'is_folder': 1, 'meta_type': 
'Folder', 'dest_best_modtime': '2003/08/22 17:10:00.455 GMT', 'status': 
'out of date', 'size': '', 'dc_modtime': ''}]

> Are both Zopes running on windows?

Yes.  Both are running Win2K Server.  I would love to switch to Linux 
or Mac OS X, but our sysadmins won't have it.




More information about the Zope mailing list