seems related to apache and timeouts.......

https://groups.google.com/forum/#!topic/modwsgi/UqmMeV0lhC8

BTW: odd errors and unforgiving syntax complexity is what moved me (among 
many others) to nginx+uwsgi. Things there are far more understandable, 
debuggable and reproduceable.

BTW2: how many processes and threads are running for web2py ? How much time 
a request takes to be processed ?

On Sunday, February 2, 2014 8:52:21 PM UTC+1, Encompass solutions wrote:
>
> To give more information I looked in the error logs and found the 
> following:
> I am not sure if it is related, but it seems to happen around the same 
> time as the error.
> Ideas?
>
> -----------------------------------------
> [Sun Feb 02 17:38:52 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:38:52 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:38:52 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:38:58 2014] [error] [client 83.145.241.129] Script timed 
> out before returning headers: wsgihandler.py
> [Sun Feb 02 17:40:29 2014] [error] [client 83.145.241.129] Script timed 
> out before returning headers: wsgihandler.py
> [Sun Feb 02 17:40:29 2014] [error] [client 83.145.241.129] Script timed 
> out before returning headers: wsgihandler.py
> [Sun Feb 02 17:40:35 2014] [error] [client 83.145.241.129] Script timed 
> out before returning headers: wsgihandler.py
> [Sun Feb 02 17:40:42 2014] [error] [client 83.145.241.129] (70007)The 
> timeout specified has expired: mod_wsgi (pid=10727): Unable to get bucket 
> brigade for request.
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:40:44 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:40:46 2014] [error] [client 83.145.241.129] (70014)End of 
> file found: mod_wsgi (pid=10727): Unable to get bucket brigade for request.
> [Sun Feb 02 17:40:46 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:40:46 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:40:46 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:40:46 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:40:46 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:40:46 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:40:46 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:40:48 2014] [error] [client 83.145.241.129] (70014)End of 
> file found: mod_wsgi (pid=10726): Unable to get bucket brigade for request.
> [Sun Feb 02 17:40:48 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:40:48 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:40:48 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:40:48 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:40:48 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:40:48 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:40:48 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:40:52 2014] [error] [client 83.145.241.129] (70014)End of 
> file found: mod_wsgi (pid=10727): Unable to get bucket brigade for request.
> [Sun Feb 02 17:40:52 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:40:52 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:40:52 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:40:52 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:40:52 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:40:52 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:40:52 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:40:54 2014] [error] [client 83.145.241.129] (70014)End of 
> file found: mod_wsgi (pid=10726): Unable to get bucket brigade for request.
> [Sun Feb 02 17:40:54 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:40:54 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:40:54 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:40:54 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:40:54 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:40:54 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:40:54 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:40:56 2014] [error] [client 83.145.241.129] (70014)End of 
> file found: mod_wsgi (pid=10727): Unable to get bucket brigade for request.
> [Sun Feb 02 17:40:56 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:40:56 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:40:56 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:40:56 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:40:56 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:40:56 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:40:56 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:42:46 2014] [error] [client 83.145.241.129] (70007)The 
> timeout specified has expired: mod_wsgi (pid=10726): Unable to get bucket 
> brigade for request.
> [Sun Feb 02 17:42:48 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:42:48 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:42:48 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:42:48 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:42:48 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:42:48 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:42:48 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> [Sun Feb 02 17:44:37 2014] [error] [client 83.145.241.129] (70007)The 
> timeout specified has expired: mod_wsgi (pid=10727): Unable to get bucket 
> brigade for request.
> [Sun Feb 02 17:44:39 2014] [error] [client 83.145.241.129] mod_wsgi 
> (pid=10725): Exception occurred processing WSGI script 
> '/home/www-data/web2py/wsgihandler.py'.
> [Sun Feb 02 17:44:39 2014] [error] [client 83.145.241.129] Traceback (most 
> recent call last):
> [Sun Feb 02 17:44:39 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/main.py", line 532, in wsgibase
> [Sun Feb 02 17:44:39 2014] [error] [client 83.145.241.129]     if 
> request.body:
> [Sun Feb 02 17:44:39 2014] [error] [client 83.145.241.129]   File 
> "/home/www-data/web2py/gluon/globals.py", line 252, in body
> [Sun Feb 02 17:44:39 2014] [error] [client 83.145.241.129]     raise 
> HTTP(400, "Bad Request - HTTP body is incomplete")
> [Sun Feb 02 17:44:39 2014] [error] [client 83.145.241.129] HTTP: 400 BAD 
> REQUEST
> avconv version 0.8.9-4:0.8.9-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the 
> Libav developers
>   built on Nov  9 2013 19:08:00 with gcc 4.6.3
> .....
>
> On Sunday, February 2, 2014 8:14:21 PM UTC+2, Encompass solutions wrote:
>>
>> It seems that I have an issue I can't resolve. 
>> Every once in a while at seemingly the worst and most random times, the 
>> service will stall out.  It simply doesn't respond to anything. 
>> Going into the computer and running htop shows that the computer is 
>> doing nothing. 
>> I am not running the server with a compiled version of my code. 
>> I am running: 
>> 2.8.2-stable+timestamp.2013.11.28.13.54.07 
>> (Running on Apache/2.2.22 (Ubuntu), Python 2.7.3) 
>> The application does only basic uploading and loading of a single item. 
>> Here is an example of the webplayer: 
>>
>> melodigram.com/melodigram/default/gram/b662a1da-8c2b-11e3-b0dc-1231390a0101 
>> I can run F5 reloads on the site for 15 minutes straight, not have 
>> anyone access the system then then try to load something, be it the 
>> admin interface or the page I show you here and it site for a very long 
>> time.  The time it is unresponsive seems random, but that's because I 
>> haven't discovered how to replicate the problem. 
>> If I restart apache and try, it seems to work every time. 
>> This issue is very annoying and I seem to hit this kind of thing in many 
>> of the sites I am making and working on.  We really need to figure out 
>> what is going on. 
>> I am running ubuntu 12.04 and set up the server using the scripts found 
>> in web2py for postgres and so forth.  I am using postgres and the issue 
>> happens in both sqlite and postgres database setups. 
>> I can't seem to replicate the issue when running locally with rocket 
>> rather than apache. 
>> The amazon server is a Medium instance. I thought maybe it was because 
>> of the microinstance issues, but I seem to be wrong? 
>> Any ideas into this? 
>> Our app goes live next week and I really hope to resolve this issue. 
>> The server is currently stalling out and has actually stopped mid page. 
>> I have the htop running on the server on the right. 
>> Last, is how do you think I could setup the server to better see what is 
>> going on and solve the issue.  It's really annoying knowing how simple 
>> my service is, but seeing how very slow or inresponsive the site is. 
>> BR, 
>> Jason Brower 
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to