nginx proxy超时报错 upstream timed out (110: Connec...

环境介绍 
服务器:centos6.4
服务:nginx proxy

问题描述:

然后查找  /opt/usr/nginx/1.4.0/logs  错误 error.log日志提示如下

2015/01/04 15:44:13 [error] 10112#0: *994662 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 117.32.232.172, server: localhost, request: "POST /community-platform/datastatistics/datastatistics_exportAllUserDataDetail.action HTTP/1.1", upstream: "http://10.172.11.194:9080/community-platform/datastatistics/datastatistics_exportAllUserDataDetail.action", host: "admin.zhsqcn.com", referrer: "http://admin.zhsqcn.com/community-platform/datastatistics/datastatistics_communityStatistics.action?leftPid=98"
2015/01/04 15:45:22 [info] 10112#0: *994692 client closed connection while waiting for request, client: 117.32.232.172, server: 0.0.0.0:80

2015/01/04 15:57:10 [info] 10112#0: *994707 client 1.85.57.66 closed keepalive connection
2015/01/04 15:57:19 [info] 10112#0: *994711 client 1.85.57.66 closed keepalive connection
2015/01/04 15:57:19 [info] 10112#0: *994718 client closed connection while waiting for request, client: 1.85.57.66, server: 0.0.0.0:80

解决方法:vi  /opt/usr/nginx/1.4.0/conf/nginx.conf
原因在于nginx proxy的超时时间太短
proxy_connect_timeout    3;
proxy_read_timeout       30;
proxy_send_timeout       30;

更改为

proxy_connect_timeout    600;
proxy_read_timeout       600;
proxy_send_timeout       600;

然后重启nginx即可:

/opt/usr/nginx/1.4.0/sbin/nginx -s reload

时间: 2024-08-27 19:58:57

nginx proxy超时报错 upstream timed out (110: Connec...的相关文章

nginx 报错 upstream timed out (110: Connection timed out)解决方案

nginx 作PHP的web接口服务器. 在线上发现时不时经常崩溃.504,导致接口访问无响应回复. 查看日志: [error] 11618#0: *324911 upstream timed out (110: Connection timed out) while reading response header from upstream, client:然后百度看到都是修改nginx配置,解决超时问题. large_client_header_buffers 4 16k; client_m

nginx error_log报错upstream timed out (110: Connection timed out)

最近迁移服务器,在网站搬到新服务器第一天就报504错误,服务器及ip都能ping通,查看错误日志,发现upstream timed out (110: Connection timed out)的错误,上网百度了下,原因应该是nginx配置问题 打开/etc/php5/php-fpm/pool.d/www.conf 将pm.max_children修改为40 request_terminate_time修改为900 再修改php.ini max_execution_time = 30,把它修改得

xdebug 一直报错 upstream timed out (110: Connection timed out) while reading response header from upstream

本地主机(Windows环境192.168.66.1)访问虚拟机(192.168.66.139)里面的搭建的php环境(系统centos6.5版本,php版本是5.5.30 ,xdebug 2.4.0),通过命令行pecl install xdebug安装的xdebug, 在php.ini配置xdebug [Xdebug]zend_extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/xdebug.soxdeb

压测 502 日志报错 upstream timed out (110: Connection timed out)

环境介绍 服务器:centos6.5服务:nginx proxy 问题描述: 压测 开发同事 的开发环境项目没事,但是 线上机器 命中%50 ,大量502 php的某些页面打不开,页面提示gateway timeout,然后查找日志提示如下 2015/09/19 14:00:30 [error] 1811#0: *319 upstream timed out (110: Connection timed out) while reading response header from upstre

python 安装第三方库,超时报错--Read timed out.

Traceback (most recent call last): File "/home/xiaoduc/.pyenv/versions/3.5.0/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 228, in _error_catcher yield File "/home/xiaoduc/.pyenv/versions/3.5.0/lib/pyt

nginx error日志报错

经过与开发的不断协作,终于差不多把error日志的报错信息消灭的差不多了,但还是偶尔出现"*1939 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/2/00/0000000002 while reading upstream, client: 116.231.88.XX, server: _, request: "GET /time HTTP/1.1", ups

Nginx Upstream timed out (110: Connection timed out)

在Nginx错误日志中,有大量的下列信息: Upstream timed out (110: Connection timed out) while reading response header from upstream 这种情况主要在厦门两种情况下发生: 1. nginx proxy 需要适当的调整proxy_read_timeout值. location / { ... proxy_read_timeout 150; ... } 1 2 3 4 5 location / { ... pr

解决hue报错:timed out (code THRIFTSOCKET): None

报错栈: [15/Jun/2017 19:25:15 +0800] decorators ERROR error running <function execute at 0x7fba2804ecf8> Traceback (most recent call last): File "/home/work/hue-3.10.0/desktop/libs/notebook/src/notebook/decorators.py", line 81, in decorator r

hue报错StructuredException: timed out (code THRIFTSOCKET): None的处理

通过hue的web界面进行hive的sql查询,无法显示结果并报错timeout 报错如下:[28/Jul/2017 11:23:29 +0800] decorators ERROR error running <function execute at 0x7fa741ddc8c0>Traceback (most recent call last): File "/home/hadoop/.versions/hue-3.10.0/desktop/libs/notebook/src/n