Nginx报错:upstream timed out (110: Connection timed out)和client intended to send too large body【转】
2018-01-26 21:09
661 查看
nginx日志报错
2018/01/2616:36:49[error]23327#0:*54953upstreamtimedout(110:Connectiontimedout)whilereadingresponseheaderfromupstream,client:10.68.16.37,server:10.70.35.119,request:"POST/ApprovalManagement.do?method=approveShow&listType=A&approveType=change&opdb=mod&opinionId=15056HTTP/1.1",upstream:"http://10.70.35.120:8080/ApprovalManagement.do?method=approveShow&listType=A&approveType=change&opdb=mod&opinionId=15056",host:"10.72.35.119",referrer:"http://10.70.35.119/ApprovalManagement.do?method=flowToList&listType=A"
2018/01/2617:14:53[error]23325#0:*57462clientintendedtosendtoolargebody:2008762bytes,client:10.2.176.48,server:10.70.35.119,request:"POST/ApprovalManagement.do?method=checkFileSizeHTTP/1.1",host:"10.70.35.119",referrer:"http://10.70.35.119/ApprovalManagement.do?method=approveShow&listType=B&approveType=new&opdb=mod&opinionId=15014"
第一个错误,为代理超时
第二个错误,为client发送bodysize太大了
解决办法(见绿色部分):
然后重新加载nginx配置文件
后续记录,设置完以上俩项后,nginx错误日志还是有以上俩个错误,解决办法增加以下参数设置成600s。client_max_body_size参数大于报错大小,暂不调整。
转自
nginxproxy超时报错upstreamtimedout(110:Connec...-深海蓝精灵-博客园https://www.cnblogs.com/zhangkaimin/p/4201453.html
2018/01/2616:36:49[error]23327#0:*54953upstreamtimedout(110:Connectiontimedout)whilereadingresponseheaderfromupstream,client:10.68.16.37,server:10.70.35.119,request:"POST/ApprovalManagement.do?method=approveShow&listType=A&approveType=change&opdb=mod&opinionId=15056HTTP/1.1",upstream:"http://10.70.35.120:8080/ApprovalManagement.do?method=approveShow&listType=A&approveType=change&opdb=mod&opinionId=15056",host:"10.72.35.119",referrer:"http://10.70.35.119/ApprovalManagement.do?method=flowToList&listType=A"
2018/01/2617:14:53[error]23325#0:*57462clientintendedtosendtoolargebody:2008762bytes,client:10.2.176.48,server:10.70.35.119,request:"POST/ApprovalManagement.do?method=checkFileSizeHTTP/1.1",host:"10.70.35.119",referrer:"http://10.70.35.119/ApprovalManagement.do?method=approveShow&listType=B&approveType=new&opdb=mod&opinionId=15014"
第一个错误,为代理超时
第二个错误,为client发送bodysize太大了
解决办法(见绿色部分):
server{
listen80;
server_name10.70.35.119;
#rewrite^(.*)https://$10.72.16.112$1permanent;
#rewrite^(.*)https://$server_name$1permanent;
location/{
proxy_passhttp://jboss;proxy_redirectoff;
proxy_set_headerHost$host;
#proxy_set_headerHost$proxy_host;
#proxy_set_headerHost$host:$server_port;
proxy_hide_headerServer;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For$remote_addr;
client_max_body_size10m;
client_body_buffer_size328k;
#proxy_bufferingoff
proxy_connect_timeout600;
proxy_send_timeout600;
proxy_read_timeout600;
proxy_buffer_size320k;
proxy_buffers4320k;
proxy_busy_buffers_size640k;
proxy_temp_file_write_size640k;
}
然后重新加载nginx配置文件
servicenginxreload
后续记录,设置完以上俩项后,nginx错误日志还是有以上俩个错误,解决办法增加以下参数设置成600s。client_max_body_size参数大于报错大小,暂不调整。
proxy_connect_timeout600;
proxy_send_timeout600;
proxy_read_timeout600;
转自
nginxproxy超时报错upstreamtimedout(110:Connec...-深海蓝精灵-博客园
相关文章推荐
- 文件上传失败 -nginx报错 client intended to send too large body: 1331696 bytes
- nginx报错 client intended to send too large body: 1331696 bytes
- nginx报错 client intended to send too large body: 1331696 bytes
- android文件上传413 nginx [error] 9679#0: *318855 client intended to send too large body: 1593409 bytes
- nginx: client intended to send too large body
- nginx php-fpm 110: Connection timed out) while connecting to upstream 错误
- Nginx错误:[error] 106793#0: *46318 client intended to send too large body: 3738202 bytes
- nginx之connect() failed (110: Connection timed out) while connecting to upstream
- 解决nginx报错信息 client intended to send too large body: 1331696 bytes
- client intended to send too large body
- nginx 报错 upstream timed out (110: Connection timed out)解决方案
- nginx upstream timed out (110: Connection timed out) while reading response header from upstream
- Nginx报错:upstream timed out (110: Connection timed out)
- Nginx Upstream timed out (110: Connection timed out)
- Nginx报错:upstream timed out (110: Connection timed out)
- nginx 报错 upstream timed out (110: Connection timed out)解决方案【转】
- nginx 报错 upstream timed out (110: Connection timed out)解决方案
- nginx 报错 upstream timed out (110: Connection timed out)解决方案
- (110) Connection timed out的错HttpClient 每次请求未close导致 Nginx connect failed (110- Connection timed out)
- An attempt by a client to checkout a Connection has timed out.