Zope 1.10.2 dies every so often.
Folks: My installation of Zope 1.10.2 dies every so often, from once a week to twice a day (like today). I am running Red Hat 5.0 on a 486 / 32 Mb RAM. I upgraded from Zope 1.9.0 to 1.10.2 /var/server.errors says: WARNING: Python C API version mismatch for module _pg: This Python has API version 1007, module _pg has version 1006. brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:46] "GET /documents/portable.pdf HTTP/1.1" 200 - Traceback (innermost last): File "ZopeHTTPServer/ZopeHTTPServer.py", line 388, in handle_request self.process_request(request, client_address) File "lib/python1.5/SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "lib/python1.5/SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "lib/python1.5/SocketServer.py", line 362, in __init__ self.handle() File "lib/python1.5/BaseHTTPServer.py", line 258, in handle method() File "ZopeHTTPServer/ZopeHTTPServer.py", line 292, in do_GET self.publish_module() File "ZopeHTTPServer/ZopeHTTPServer.py", line 305, in publish_module publish_module( File "lib/python/ZPublisher/Publish.py", line 893, in publish_module if response: stdout.write(response) File "ZopeHTTPServer/ZopeHTTPServer.py", line 240, in write self.handler.wfile.write(self.data[:start]+IOError: (32, 'Broken pipe')brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:47] "GET /documents/portable.pdf HTTP/1.1" 200 -Traceback (innermost last): File "ZopeHTTPServer/ZopeHTTPServer.py", line 388, in handle_request self.process_request(request, client_address) File "lib/python1.5/SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "lib/python1.5/SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "lib/python1.5/SocketServer.py", line 362, in __init__ self.handle() File "lib/python1.5/BaseHTTPServer.py", line 258, in handle method() File "ZopeHTTPServer/ZopeHTTPServer.py", line 292, in do_GET self.publish_module() File "ZopeHTTPServer/ZopeHTTPServer.py", line 305, in publish_module publish_module( File "lib/python/ZPublisher/Publish.py", line 893, in publish_module if response: stdout.write(response) File "ZopeHTTPServer/ZopeHTTPServer.py", line 240, in write self.handler.wfile.write(self.data[:start]+ IOError: (32, 'Broken pipe')brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:54] "GET /documents/portable.pdf HTTP/1.1" 200 - Obviously I have something wrong here. Any ideas? TIA.
WARNING: Python C API version mismatch for module _pg: This Python has API version 1007, module _pg has version 1006.
Hm - this indicates you've upgraded your Python since the module _pg was compiled (postgres?) It's not the cause of the following error, but it is something you might want to fix, anyway. The error looks to be caused by ZopeHTTPServer not handling a client aborting the connection. Looking into the code, at around line 240 of ZopeHTTPServer/ZopeHTTPServer.py, the write() method of ResponseWriter should probably trap IOError and ignore it. Something like wrapping the two calls to write() in the write method like try: write.... except IOError: pass would be a blunt fix to it. I don't think DC want to continue to support ZopeHTTPServer, tho. You might want to try to upgrade to ZServer, instead. Anthony
participants (2)
-
Anthony Baxter -
Jose.Lacal@icn.siemens.com