[mod_python] Apache child process restarting under Win32 - import errors

David Fraser davidf at sjsoft.com
Thu Nov 20 14:19:31 EST 2003


Hi

We are having trouble with our application suddenly producing crashes 
for all browsers connected to the system.
We are running under Windows, with Apache 2.0.47 and mod_python 3.0.3
It seems that the problem is that a module that was imported correctly 
somehow is not anymore...

In trying to track this down, I found the following in the Apache error log:
[Wed Nov 19 08:53:31 2003] [notice] Parent: child process exited with 
status 3221225477 -- Restarting.
[Wed Nov 19 08:53:31 2003] [notice] Parent: Created child process 4304
[Wed Nov 19 08:53:32 2003] [notice] Child 4304: Child process is running
[Wed Nov 19 08:53:32 2003] [notice] Child 4304: Acquired the start mutex.
[Wed Nov 19 08:53:32 2003] [notice] Child 4304: Starting 250 worker threads.

This happens directly before the first occurence of the problem (I've 
taken off the date, [error], [client ip-address]:
PythonHandler jToolkit.web: Traceback (most recent call last):, referer: 
http://amvjoslbook/srf/grid.htm?&TIMEFILTERENDDATE=19/11/03 08:53:22
PythonHandler jToolkit.web:   File 
"D:\Python22\Lib\site-packages\mod_python\apache.py", line 332, in 
HandlerDispatch
    result = object(req), referer: http://amvjoslbook/srf/grid.htm?  
&TIMEFILTERENDDATE=19/11/03 08:53:22
PythonHandler jToolkit.web:   File 
"D:\Python22\Lib\site-packages\jToolkit\web\__init__.py", line 99, in 
handler
    server = getserver(modulename, instancename), referer: 
http://amvjoslbook/srf/grid.htm?&TIMEFILTERENDDATE=19/11/03 08:53:22
PythonHandler jToolkit.web:   File 
"D:\Python22\Lib\site-packages\jToolkit\web\__init__.py", line 82, in 
getserver
    raise AttributeError(errormessage), referer: 
http://amvjoslbook/srf/grid.htm?&TIMEFILTERENDDATE=19/11/03 08:53:22
PythonHandler jToolkit.web: AttributeError: module 
'jLogbook.python.config' has no attribute 'AmerivenIndexPage'

I made it print out the contents of the module at this point in the 
error log:
module is <module 'jLogbook.python.config' from 
'D:\Python22\lib\site-packages\jLogbook\python\config.pyc'>, attributes 
are ['ADOProviders', '__builtins__', '__doc__', '__file__', '__name__', 
'os', 'sys']
This seems to indicate that only half of this module was imported... 
perhaps because one of the other imports failed (these seem to be some 
win32 extension modules)

I was wondering if anyone else has experienced problems with Apache 
restarting, and why this happens...

David




More information about the Mod_python mailing list