This message about "bucket brigade" is also appearing in the apache
error log:

[Mon Jul 19 19:01:53 2010] [error] [client 183.87.223.111] (9)Bad file
descriptor: mod_wsgi (pid=7940): Unable to get bucket brigade for
request., referer:
http://yuno.us/init/hits/hit?assignmentId=1WL68USPJR0HY1ENS50GN6IJ33ZY32&hitId=1TK6NH2ZSBU3RCI3F8FK7JE1YXMG96&workerId=AJ8R357DF74FF&turkSubmitTo=https%3A%2F%2Fwww.mturk.com


On Jul 19, 7:01 pm, Michael Toomim <too...@gmail.com> wrote:
> I'm getting errors like these in my apache error logs:
>
> [Mon Jul 19 18:55:20 2010] [error] [client 65.35.93.74] Premature end
> of script headers: wsgihandler.py, 
> referer:http://yuno.us/init/hits/hit?assignmentId=1A7KADKCHTB1IJS3Z5CR16OZM4V...
> [Mon Jul 19 18:55:20 2010] [error] [client 143.166.226.43] Premature
> end of script headers: wsgihandler.py, 
> referer:http://yuno.us/init/hits/hit?assignmentId=1A9FV5YBGVV54NALMIRILFKHPT1...
> [Mon Jul 19 18:55:50 2010] [error] [client 117.204.99.178] mod_wsgi
> (pid=7730): Exception occurred processing WSGI script '/home/toomim/
> projects/utility/web2py/wsgihandler.py'.
> [Mon Jul 19 18:55:50 2010] [error] [client 117.201.42.84] mod_wsgi
> (pid=7730): Exception occurred processing WSGI script '/home/toomim/
> projects/utility/web2py/wsgihandler.py'.
> [Mon Jul 19 18:55:50 2010] [error] [client 117.201.42.84] mod_wsgi
> (pid=7730): Exception occurred processing WSGI script '/home/toomim/
> projects/utility/web2py/wsgihandler.py'.
> [Mon Jul 19 18:55:50 2010] [error] [client 117.201.42.84] IOError:
> failed to write data
> [Mon Jul 19 18:55:50 2010] [error] [client 117.201.42.84] mod_wsgi
> (pid=7730): Exception occurred processing WSGI script '/home/toomim/
> projects/utility/web2py/wsgihandler.py'.
> [Mon Jul 19 18:55:50 2010] [error] [client 117.201.42.84] IOError:
> failed to write data
> [Mon Jul 19 18:55:50 2010] [error] [client 117.201.42.84] mod_wsgi
> (pid=7730): Exception occurred processing WSGI script '/home/toomim/
> projects/utility/web2py/wsgihandler.py'.
> [Mon Jul 19 18:55:50 2010] [error] [client 117.201.42.84] IOError:
> failed to write data
> [Mon Jul 19 18:55:50 2010] [error] [client 117.201.42.84] mod_wsgi
> (pid=7730): Exception occurred processing WSGI script '/home/toomim/
> projects/utility/web2py/wsgihandler.py'.
> [Mon Jul 19 18:55:50 2010] [error] [client 117.201.42.84] IOError:
> failed to write data
>
> My web app gets about 7 requests per second. At first, things work
> fine. Then after a while it seems like every request gets handled by
> MULTIPLE threads, because my logging.debug() statements print multiple
> copies of each message and it seems my database gets multiple entries.
> And I get these errors in the apache logs (with LogLevel debug).
>
> Any idea what to do? Where to look? I'm on ubuntu.

Reply via email to