Hmmm, I wander if the issue:
http://code.google.com/p/modwsgi/issues/detail?id=78
is also somehow related to mod_wsgi not clearing Python exception
state when it wants to ignore the error, this subsequently causing a
problem. For that issue wasn't getting a full error log output, so
don't know full context.
Graham
2008/11/11 Graham Dumpleton <[EMAIL PROTECTED]>:
> No access to source checkout at moment, but in wsgi_python_child_init(), find:
>
> if (!module) {
> module = wsgi_load_source(p, NULL, name, exists,
> entry->handler_script,
> entry->process_group,
> entry->application_group);
> }
>
> Try changing that to:
>
> if (!module) {
> module = wsgi_load_source(p, NULL, name, exists,
> entry->handler_script,
> entry->process_group,
> entry->application_group);
>
> if (PyErr_Occurred())
> PyErr_Clear();
> }
>
> Fix indenting as necessary.
>
> If works, will fix code later.
>
> Graham
>
> 2008/11/11 gert <[EMAIL PROTECTED]>:
>>
>> I did it again :-) /srv/www/mysql.py does indeed not exist but the
>> error message takes down the whole wsgipythonpath again
>>
>> WSGIImportScript /srv/www/mysql.py process-group=%{GLOBAL} application-
>> group=%{GLOBAL}
>>
>> [EMAIL PROTECTED]:/srv/www/appwsgi/www/register# tail -f /var/log/apache2/
>> error.log
>> [Tue Nov 11 07:08:59 2008] [info] mod_wsgi (pid=24773): Adding '/srv/
>> www/appwsgi/www/lib' to path.
>> [Tue Nov 11 07:08:59 2008] [info] mod_wsgi (pid=24773, process='',
>> application=''): Loading WSGI script '/srv/www/mysql.py'.
>> [Tue Nov 11 07:08:59 2008] [error] (2)No such file or directory:
>> mod_wsgi (pid=24773, process='', application=''): Call to fopen()
>> failed for '/srv/www/mysql.py'.
>> [Tue Nov 11 07:09:00 2008] [info] [client 80.200.217.89] mod_wsgi
>> (pid=24769, process='', application=''): Loading WSGI script '/srv/www/
>> appwsgi/www/register/register.py'., referer:
>> http://87.98.218.86/appwsgi/www/register/register.htm
>> [Tue Nov 11 07:09:00 2008] [error] [client 80.200.217.89] mod_wsgi
>> (pid=24769): Target WSGI script '/srv/www/appwsgi/www/register/
>> register.py' cannot be loaded as Python module., referer:
>> http://87.98.218.86/appwsgi/www/register/register.htm
>> [Tue Nov 11 07:09:00 2008] [error] [client 80.200.217.89] mod_wsgi
>> (pid=24769): Exception occurred processing WSGI script '/srv/www/
>> appwsgi/www/register/register.py'., referer:
>> http://87.98.218.86/appwsgi/www/register/register.htm
>> [Tue Nov 11 07:09:00 2008] [error] [client 80.200.217.89] Traceback
>> (most recent call last):, referer:
>> http://87.98.218.86/appwsgi/www/register/register.htm
>> [Tue Nov 11 07:09:00 2008] [error] [client 80.200.217.89] File "/srv/
>> www/appwsgi/www/register/register.py", line 3, in <module>, referer:
>> http://87.98.218.86/appwsgi/www/register/register.htm
>> [Tue Nov 11 07:09:00 2008] [error] [client 80.200.217.89] from
>> xmlframe import xmlframe, referer:
>> http://87.98.218.86/appwsgi/www/register/register.htm
>> [Tue Nov 11 07:09:00 2008] [error] [client 80.200.217.89] IOError:
>> [Errno 2] No such file or directory, referer:
>> http://87.98.218.86/appwsgi/www/register/register.htm
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---