[Zope-ZEO] Zeo Client Error

Jim Fulton jim@digicool.com
Tue, 17 Oct 2000 08:04:50 -0400


"Júlio Dinis Silva" wrote:
> 
> Hi all,
> First let me just say: I Love ZEO!!!

Glad to hear it.

> But now I'm having some problems.
> Today when I looked into my clients they were all dead, but the
> zss process was still running. When I tryed to start my clients
> I got this error from all of them:
> 
> ------
> 2000-10-17T10:27:32 INFO(0) client Trying to connect to server
> ------
> 2000-10-17T10:27:32 INFO(0) ClientStorage Connected to storage
> Traceback (innermost last):
> File "C:\zcs\z2.py", line 554, in ?
>         exec "import "+MODULE in {}
> File "<string>", line 1, in ?
> File "C:\zcs\lib\python\Zope\__init__.py", line 118, in ?                       DB=ZODB.DB(DB)
> File "C:\zcs\lib\python\ZODB\DB.py", line 158, in __init__
>     storage.tpc_finish(t)
> File "C:\zcs\lib\python\ZEO\ClientStorage.py", line 516, in tpc_finish
>     cache.update(oid, s, v, p)
> File "C:\zcs\lib\python\ZEO\ClientCache.py", line 294, in update
>     self.store(oid, data, serial, '', None, None)
> File "C:\portalzcs\lib\python\ZEO\ClientCache.py", line 358, in store
>     write(oid+'v'+stlen+pack(">HI", vlen, len(p))+s)
> TypeError: __add__ nor __radd__ defined for these operands
> c:\zcs
> 
> This was solved by restarting the zss, after what all clients
> started correctly. Any hint on what happened here? The meaning of this
> error?

One of the values in the expression wasn't a string, so the
concatination (add operation) failed.  The variable, 's', had to 
have been the culprit. This is a serial string (ie a time stamp
packed into a string) that was returned from the server.

I'm going to add some assertions to detect this situation
and give more informative errors upstream.

What versions of Zope and ZEO are you running?
What underlying storage are you using on the storage server?

Jim

--
Jim Fulton           mailto:jim@digicool.com
Technical Director   (888) 344-4332              Python Powered!
Digital Creations    http://www.digicool.com     http://www.python.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.