[Zope-dev] Medusa Asyncore patch

Stefane Fermigier sf@fermigier.com
12 Dec 2001 13:41:17 GMT


In article <003601c182e1$78ec9e70$3e28011c@rag2>,
Dirk Datzert <Dirk.Datzert@rasselstein-hoesch.de> wrote:
>Hi,
>
>after applying the patch zope won't restart correclty for my version.
>(python 2.1.1, zope 2.4.3)
>
>Traceback:
>
>2001-12-12T07:45:49 PANIC(300) z2 Startup exception
>Traceback (innermost last):
>  File z2.py, line 625, in ?
>  File /usr/src/packages/BUILD/Zope-2.4.3-src/ZServer/HTTPServer.py, line
>396, in
>__init__
>  File /usr/src/packages/BUILD/Zope-2.4.3-src/ZServer/medusa/http_server.py,
>line
>562, in __init__
>  File /usr/src/packages/BUILD/Zope-2.4.3-src/ZServer/HTTPServer.py, line
>410, in
>create_socket
>TypeError: unbound method create_socket() must be called with instance as
>first ar
>gument

1) I got the same problem. I managed to get Zope restarted by applying
the patch directly on /usr/lib/python2.1/asyncore.py or
Zope/lib/python2.1/asyncore.py

2) After successfully applying the patch, my server went down
eventually after 12h:

2001-12-12T13:02:17 ERROR(200) ZServer uncaptured python exception,
closing channel <select-trigger (pipe) at 820598c>
(exceptions.OSError:[Errno 11] Resource temporarily unavailable
[/home/zope2/Zope/lib/python2.1/asyncore.py|poll|103]
[/home/zope2/Zope/lib/python2.1/asyncore.py|handle_read_event|391]
[/home/zope2/Zope-2.4.3-linux2-x86/ZServer/medusa/thread/select_trigger.py|handle_read|77]
[/home/zope2/Zope/lib/python2.1/asyncore.py|recv|343]
[/home/zope2/Zope/lib/python2.1/asyncore.py|recv|525])

(Same error I hoped I had corrected with the patch).

  S.

-- 
Stéfane Fermigier, Tel: +33 (0)6 63 04 12 77 (mobile).
http://nuxeo.com/ & http://portalux.com/ & http://aful.org/