A WSGI daemon on our public-facing web server died and required reloading apache configuration to start it again. All the error.log
says is:
Script timed out before returning headers: wsgi.py
(and the same message with ,referer:
url appendend). I can't find any other log and don't see any obvious way to enable other diagnostics in mod-wsgi. According to process listing the thread ceased to exit. Does anybody know where to look or what configuration to add to get more information next time it happens?
The daemon is configured like
WSGIScriptAlias /pootle /usr/share/doc/pootle/wsgi.py
WSGIDaemonProcess pootle user=pootle group=pootle processes=1 threads=3 stack-size=1048576 maximum-requests=10 inactivity-timeout=30 display-name=%{GROUP}
WSGIProcessGroup pootle
WSGIApplicationGroup pootle
WSGIPassAuthorization On
the maximum-requests being so low because the application seems to be leaking memory (fortunately this application is not that critical and has just few users). Apache, wsgi and django are versions (Debian Squeeze):
- apache2-mpm-prefork 2.2.16-6+squeeze11
- libapache2-mod-wsgi 3.3-2
- python-django 1.2.3-3+squeeze5
- python-django-djblets 0.5.10~alpha0+git201005030944-2
- python-django-registration 0.7-2
It is the only wsgi application running on this server; there are some other, more important applications on the same server, but in PHP.