zope crashes on first hit
All the sudden my zope (v2.5.1 running on Win98) is crashing while processing its first hit. This seems true regardless of the URL requests (manage, manage_main, index_html), though it's possible I'm getting 1 hit sometimes before it dies. I think this has been triggered by an ugly crash requiring a hard reboot of my machine. I've rebooted multiple times since then... Here's what I see in the DOS window: 2003-03-04T18:50:21 ERROR(200) ZServer uncaptured python exception, closing channel <ZServer.HTTPServer.zhttp_channel connected 127.0.0.1:1247 at 0x1d59b2c channel#: 0 requests:> (exceptions.IOError:[Errno 9] Bad file descriptor [D:\Zope\WebSeitz\ZServer\medusa\asyncore.py|poll|107] [D:\Zope\WebSeitz\ZServer\medusa\asyncore.py|handle_write_event|398] [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|handle_write|146] [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|initiate_send|208] [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|refill_buffer|195] [D:\Zope\WebSeitz\ZServer\Producers.py|more|36] [D:\Zope\WebSeitz\ZServer\medusa\http_server.py|log|289] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|log|247] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|log|77] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|write|53] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|maybe_flush|65]) Traceback (most recent call last): File "D:\Zope\WebSeitz\z2.py", line 774, in ? asyncore.loop() File "D:\Zope\WebSeitz\ZServer\medusa\asyncore.py",line 200, in loop poll_fun (timeout, map) File "D:\Zope\WebSeitz\ZServer\medusa\asyncore.py", line 111, in poll obj.handle_error() File "D:\Zope\WebSeitz\ZServer\medusa\http_server.py", line 437, in handle_err or asynchat.async_chat.handle_error (self) File "D:\Zope\WebSeitz\ZServer\medusa\asyncore.py", line 421, in handle_error self.close() File "D:\Zope\WebSeitz\ZServer\HTTPServer.py", line 293, in close p.more() # free up resources held by producer File "D:\Zope\WebSeitz\ZServer\Producers.py", line 36, in more getattr(self.logger, self.method)(self.bytes) File "D:\Zope\WebSeitz\ZServer\medusa\http_server.py", line 289, in log ' - %s [%s] "%s" %d %d "%s" "%s"\n' % ( File "D:\Zope\WebSeitz\ZServer\medusa\logger.py", line 247, in log self.logger.log ('%s%s' % (ip, message)) File "D:\Zope\WebSeitz\ZServer\medusa\logger.py", line 77, in log self.write (message) File "D:\Zope\WebSeitz\ZServer\medusa\logger.py", line 53, in write self.maybe_flush() File "D:\Zope\WebSeitz\ZServer\medusa\logger.py", line 65, in maybe_flush self.file.flush() IOError: [Errno 9] Bad file descriptor __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
Bill Seitz wrote at 2003-3-4 14:35 -0800:
All the sudden my zope (v2.5.1 running on Win98) is crashing while processing its first hit. This seems true regardless of the URL requests (manage, manage_main, index_html), though it's possible I'm getting 1 hit sometimes before it dies. .... 2003-03-04T18:50:21 ERROR(200) ZServer uncaptured python exception, closing channel <ZServer.HTTPServer.zhttp_channel connected 127.0.0.1:1247 at 0x1d59b2c channel#: 0 requests:> (exceptions.IOError:[Errno 9] Bad file descriptor
It looks as if your socket library ("winsock") would no longer work correctly. Maybe, you can check this.
[D:\Zope\WebSeitz\ZServer\medusa\asyncore.py|poll|107] [D:\Zope\WebSeitz\ZServer\medusa\asyncore.py|handle_write_event|398] [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|handle_write|146] [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|initiate_send|208] [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|refill_buffer|195] [D:\Zope\WebSeitz\ZServer\Producers.py|more|36] [D:\Zope\WebSeitz\ZServer\medusa\http_server.py|log|289] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|log|247] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|log|77] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|write|53] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|maybe_flush|65])
It wants to write some message to the log file and cannot. Check, why. Maybe, the file is corrupted or can not be written at for other reasons. Dieter
I moved z2.log, z2.pid, data.fs.tmp, and data.fs.lock to a subfolder, then started up again. Now things work fine. Except I seem to have lost all changes since 4 months ago. Ugh. Any ideas? --- Dieter Maurer <dieter@handshake.de> wrote:
Bill Seitz wrote at 2003-3-4 14:35 -0800:
All the sudden my zope (v2.5.1 running on Win98) is crashing while processing its first hit. This seems true regardless of the URL requests (manage, manage_main, index_html), though it's possible I'm getting 1 hit sometimes before it dies. .... 2003-03-04T18:50:21 ERROR(200) ZServer uncaptured python exception, closing channel <ZServer.HTTPServer.zhttp_channel connected 127.0.0.1:1247 at 0x1d59b2c channel#: 0 requests:> (exceptions.IOError:[Errno 9] Bad file descriptor
It looks as if your socket library ("winsock") would no longer work correctly. Maybe, you can check this.
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
Bill Seitz wrote at 2003-3-5 14:15 -0800:
I moved z2.log, z2.pid, data.fs.tmp, and data.fs.lock to a subfolder, then started up again.
Now things work fine.
Except I seem to have lost all changes since 4 months ago.
Almost unbelievable... "Data.fs" has the structure of a transactional log file, i.e. each modification results in a transactional record to be appended to "Data.fs". This is very robust unless something truncates the file (or packs it). You made regular backups of your "Data.fs"? You should have; if not, start doing it now! You can use "fsdump.py" to analyse the content of your Data.fs. Attention, the output may be huge. You are interested in the most recent transactions: what is their time? Dieter
participants (2)
-
Bill Seitz -
Dieter Maurer