[Zope] zeopack: No handlers could be found for logger "ZEO.zrpc"

Tim Peters tim.peters at gmail.com
Thu Jan 19 19:35:53 EST 2006


[Cameron Beattie]
> When I run the following:
> python /usr/lib/zope/bin/zeopack.py -d 20 -h localhost -p 8100
>
> I get an error:
> No handlers could be found for logger "ZEO.zrpc"

As Dieter said, that's not an error in and of itself, it's just
Python's logging module whining at you.  ZEO.zrpc is trying to log a
message of some sort, but the logging module hasn't been set up to
accept the request.  The message ZEO.zrpc is _trying_ to log may or
may not be important.  To find out, we'll have to see the message.

> I have searched around and found a similar message at
> http://mail.zope.org/pipermail/zope-dev/2005-December/026097.html (relating
> to zeoup.py) but I didn't understand what needs to be done to remedy the
> problem.

Is it true that you don't know how to edit Python code?  The first
response to that message suggested adding:

    import logging
    logging.basicConfig()

to the code, and it's hard to know what to say if you don't know how
to do that.  If you know how to use an editor, add those two lines to
your copy of zeopack.py, for example immediately following its:

if __name__ == "__main__":

line.  If those instructions don't make sense, show them to someone else ;-)

> In the case of zeopack, the database is not packed i.e. the script doesn't
> work.

Finding out what the log message is may or may not reveal a cause for
that.  You should also look at your ZEO server's log file, since
problems with the database will be logged there by the ZEO server
code.  In fact, if there _is_ a problem with the database file (e.g.,
it's corrupted in some way), the only useful information you're going
to get will be in the server's log file, and ZEO.zrpc on the client
side would just try to log a message saying that the server was
unhappy.  It's possible that's what's happening here, but not enough
info to say for sure.

> I am running Zope 2.8.2 with python 2.4.1.


More information about the Zope mailing list