[ZODB-Dev] zeo 2: asyncore?

Mark McEahern marklists@mceahern.com
Thu, 5 Sep 2002 11:30:00 -0500


[Jeremy Hylton]
> Excellent questions.  Here are a few related ones:
>
> When you start ZEO, are you sure that it is listening on the socket?
> You can check that a ZEO server is running by telneting to it.
> There's not much you can usefully do, but the very first thing the
> server will do is send a protocol id -- Z200.  Do you see that when
> you connect to your ZEO server?

Yes, I do see that.  I'm running ZEO on the ethernet address not the
loopback address (that's specified in custom_zodb.py for the ClientStorage
and it's specified in zeo_start, the shell script that invokes
ZEO/start.py).

Here's what I get:

  $ telnet 192.168.0.2 8800
  Trying 192.168.0.2...
  Connected to 192.168.0.2.
  Escape character is '^]'.
  Z200^]
  telnet> quit
  Connection closed.

The ^] after the Z200 is me hitting the escape sequence.  ;-)

> If you set the STUPID_LOG_SEVERITY to -100, it should show every
> method invoked on the ZSS by the client.  If you can send me a copy of
> that output, I might be able to offer more help.

Holy cow, this puppy is big.  I stopped Zope, stopped ZEO, deleted the logs,
restarted ZEO, restarted Zope.  At this point, before even making an http
request, the ZEO log is 700K.  I won't send this to the list.  I can send
the whole shebang to you if you like.  The tail below may be sufficient.

OK, I just made the first request for http://localhost:8080/ with Konqueror.
I get the home page, but it seems to be stalled on the powered by logo.
Hmm, it stopped eventually, without rendering the logo.  Now, subsequent
requests timeout.

Here's the very tail end of the ZEO log with my comments encased by **MM:
**:

  ------
  2002-09-05T16:14:32 BLATHER(-100) zrpc:2181
zeoVerify("'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\
  ------
  2002-09-05T16:14:32 BLATHER(-100) zrpc:2181 endZeoVerify()
  ------
  2002-09-05T16:14:32 BLATHER(-100) zrpc:2181 send msg: 1, 1, end, ...

** MM: At this point, Zope was started.  I waited a bit.  And then I
       navigated to http://localhost:8080/).  The following entry is
       all that's left in the ZEO log:
**

  ------
  2002-09-05T16:20:56 BLATHER(-100) zrpc:2181
zeoLoad("'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\

Thanks,

// mark

-