Do you schedule regular Apache restarts during the day, or do it
manually due to Apache configuration changes? Would any restarts
coincide with when you see the issue?
Are you using mod_ssl in Apache and accepting requests via HTTPS?
Other than that, that error can arise when HTTP client connection is
broken before complete response is returned. Usually this would with
daemon mode necessitate the response being quite large though.
BTW, if all your Django instances are actually the same, you should
really force them to run in same sub interpreter, otherwise you could
be using up much more memory than you need based on your multiple
WSGIScriptAlias directives. Ie., try setting 'WSGIApplicationGroup
%{GLOBAL}'. This has nothing to do with your issue however.
Graham
On 10 December 2010 02:47, Haes <[email protected]> wrote:
> Hi,
>
> I am getting the following two Apache log errors on all my Django
> (v1.2.3) apps served by mod_wsgi, periodically (a couple of times a
> day):
>
> [Thu Dec 09 01:55:51 2010] [error] [client xxx] mod_wsgi (pid=6141):
> Exception occurred processing WSGI script '/path/to/apache.wsgi'
> [Thu Dec 09 01:55:51 2010] [error] [client xxx] IOError: failed to
> write data
>
> When it once happened to me, I just got an empty page on my browser.
> Just touch-ing the wsgi script [1] didn't resolve the issue but
> reloading Apache did.
>
> Any idea's what could cause this error?
>
>
> This is on Debian Lenny, Apache 2.2.9 and mod_wsgi 2.8. The Apache
> virtualhost hosts an old, big PHP application, where some parts are
> rewritten in Django and served as different projects, see [2].
>
> [1] Django wsgi source: http://pastebin.com/NhshyUC6
> [2] Apache config: http://pastebin.com/CuWqxBL2
>
> --
> 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.
>
>
--
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.