Nginx Timeout - Appsembler

Nginx Timeout

Nginx’s error.log had a lot of entries that looked like:


2015/07/30 01:43:15 [error] 2098#0: *449 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 24.114.49.197, server: ~^((stage|prod)-)?studio.*, request: “POST /xblock/block-v1:BodyMindInstitute+dwnc01+Evergreen+type@sequential+block@b86e24be50b74a56ada9a9ca400a25e6 HTTP/1.1”, upstream: “http://127.0.0.1:8010/xblock/block-v1:BodyMindInstitute+dwnc01+Evergreen+type@sequential+block@b86e24be50b74a56ada9a9ca400a25e6”, host: “studio.bodymindinstitute.com”, referrer: “http://studio.bodymindinstitute.com/course/course-v1:BodyMindInstitute+dwnc01+Evergreen”

editing /edx/app/nginx/sites-available/cms and including:

location / {
    uwsgi_read_timeout 300; 
}
or some higher number seemed to fix things for the time being.
still not working. including the settings:
proxy_connect_timeout 300s;
proxy_read_timeout 300s;
Based on: 

http://stackoverflow.com/questions/16141610/nginx-timeouts-when-uwsgi-takes-long-to-process-request

http://stackoverflow.com/questions/6816215/gunicorn-nginx-timeout-problem