[ZODB-Dev] ZEO client unpickling error

Dunigan, Craig craig.dunigan@esker.com
Wed, 27 Jun 2001 12:49:34 -0500


I have several ZEO 1.0b3 clients on RedHat 7 (connecting back to a ZEO 1.0b3
server on NT4/SP6), and all but one are working fine.  This one connects via
VPN, the others via frame relay.  While it's given me lots of trouble in the
past, restarting ZEO and Zope always fixed it.  Now, a restart gives only
"UnpicklingError, invalid load key, ' '.", with this traceback:

Traceback (innermost last):
  File ./lib/python/ZPublisher/Publish.py, line 223, in publish_module
  File ./lib/python/ZPublisher/Publish.py, line 187, in publish
  File /opt/Zope/ZopeInst/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
    (Object: Traversable)
  File ./lib/python/ZPublisher/Publish.py, line 171, in publish
  File /opt/Zope/ZopeInst/lib/python/ZPublisher/mapply.py, line 160, in
mapply
    (Object: index_html)
  File ./lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: index_html)
  File /opt/Zope/ZopeInst/lib/python/OFS/DTMLDocument.py, line 189, in
__call__
    (Object: index_html)
  File /opt/Zope/ZopeInst/lib/python/DocumentTemplate/DT_String.py, line
538, in __call__
    (Object: index_html)
  File /opt/Zope/ZopeInst/lib/python/TreeDisplay/TreeTag.py, line 154, in
render
    (Object: REQUEST.resolve_url(BASE0 + '/base'))
  File /opt/Zope/ZopeInst/lib/python/TreeDisplay/TreeTag.py, line 260, in
tpRender
    (Object: Traversable)
  File /opt/Zope/ZopeInst/lib/python/TreeDisplay/TreeTag.py, line 514, in
tpRenderTABLE
    (Object: Traversable)
    (Info: (['AAAAAAAAJJE=', []], {'childless_decoration': '', 'id': 'tpId',
'branches_expr': <method Eval.eval of Eval instance at 8725418>,
'nowrap': '1', 'expr': <DocumentTemplate.DT_Util.Eval instance at
86f3898>, 'url': 'tpURL', 'sort': 'title'}, (['AAAAAAAAJJE=', []],),
(['AAAAAAAAJJE=', []],)))
  File /opt/Zope/ZopeInst/lib/python/TreeDisplay/TreeTag.py, line 315, in
tpRenderTABLE
    (Object: CatalogAware)
  File /opt/Zope/ZopeInst/lib/python/DocumentTemplate/VSEval.py, line 208,
in eval
    (Object: EWHomeTree())
  File <string>, line 0, in ?
  File /opt/Zope/ZopeInst/lib/python/Shared/DC/Scripts/Bindings.py, line
324, in __call__
    (Object: EWHomeTree)
  File /opt/Zope/ZopeInst/lib/python/Shared/DC/Scripts/Bindings.py, line
354, in _bindAndExec
    (Object: EWHomeTree)
  File /opt/Zope/ZopeInst/lib/python/Products/PythonScripts/PythonScript.py,
line 336, in _exec
    (Object: EWHomeTree)
    (Info: ({'script': <PythonScript instance at 8765100>, 'context':
<YihawChannel instance at 87d5aa0>, 'container': <Folder instance
at 8623ff8>, 'traverse_subpath': []}, (), {}, None))
  File Script (Python), line 7, in EWHomeTree
  File /opt/Zope/ZopeInst/lib/python/Products/PythonScripts/Guarded.py, line
273, in __getattr__
  File /opt/Zope/ZopeInst/lib/python/Products/PythonScripts/Guarded.py, line
143, in __careful_getattr__
  File ./lib/python/ZODB/Connection.py, line 533, in setstate
UnpicklingError: (see above)

EWHomeTree is my Python Script that returns a list to form the branches_expr
of a tree tag on the home page.  All it does is exclude some branches,
here's the code:

linkList=[]
for linkObject in context.objectValues('Yihaw Folder'):
  if (not linkObject.title=="People") and (not linkObject.title=="Library")
and (not linkObject.title=="Company Departments"):
    linkList.append(linkObject)
return linkList

This worked fine from this location yesterday.  The only thing I did was
complete work on a perl daemon to restart zope and zeo if they stopped
responding, since one of the things that box has been experiencing is
periodic zope hangs.  I modified 'start' to include a line to start zeo
using sudo, and a line to start my daemon.  I also put the needed lines into
'stop', and made sure that the init.d script (from
http://www.zope.org/Members/markoer2/resources/howtos/redhat_startup) worked
when I did a '/etc/rc.d/init.d/zope restart'.  Everything seemed fine.  Then
I got an email from this location saying zope stopped responding and
wouldn't restart.  I eventually got it to restart, but now it only returns
the above error page.  I am again completely without a clue where to go from
here.  Any ideas?

Craig Dunigan
Web Programmer
Esker Software - Extending the Reach of Information
mailto:craig.dunigan@esker.com
Ph. 608.273.6000
Fax 608.273.8227
http://www.esker.com