nginx日志报错

  1. 2018/01/26 16:36:49 [error] 23327#0: *54953 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 10.68.16.37, server: 10.70.35.119, request: "POST /ApprovalManagement.do?method=approveShow&listType=A&approveType=change&opdb=mod&opinionId=15056 HTTP/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/26 17:14:53 [error] 23325#0: *57462 client intended to send too large body: 2008762 bytes, client: 10.2.176.48, server: 10.70.35.119, request: "POST /ApprovalManagement.do?method=checkFileSize HTTP/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"

  1.  

第一个错误,为代理超时

第二个错误,为client发送body size太大了

解决办法(见绿色部分):

  1. server {
  2. listen ;
  3. server_name 10.70.35.119;
  4. #rewrite ^(.*) https://$10.72.16.112$1 permanent;
  5. #rewrite ^(.*) https://$server_name$1 permanent;
  6. location / {
  7. proxy_pass http://jboss;
  8. proxy_redirect off;
  9. proxy_set_header Host $host;
  10. # proxy_set_header Host $proxy_host;
  11. # proxy_set_header Host $host:$server_port;
  12. proxy_hide_header Server;
  13. proxy_set_header X-Real-IP $remote_addr;
  14. proxy_set_header X-Forwarded-For $remote_addr;
  15. client_max_body_size 10m;
  16. client_body_buffer_size 328k;
  17. #proxy_buffering off
  18. proxy_connect_timeout ;
  19. proxy_send_timeout ;
  20. proxy_read_timeout ;
  21. proxy_buffer_size 320k;
  22. proxy_buffers 320k;
  23. proxy_busy_buffers_size 640k;
  24. proxy_temp_file_write_size 640k;
  25.  
  26. }

然后重新加载nginx配置文件

  1. service nginx reload

后续记录,设置完以上俩项后,nginx错误日志还是有以上俩个错误,解决办法增加以下参数设置成600s。client_max_body_size参数大于报错大小,暂不调整。

  1. proxy_connect_timeout ;
  2. proxy_send_timeout ;
  3. proxy_read_timeout ;

转自

nginx proxy超时报错 upstream timed out (110: Connec... - 深海蓝精灵 - 博客园
https://www.cnblogs.com/zhangkaimin/p/4201453.html

Nginx报错:upstream timed out (110: Connection timed out)和client intended to send too large body【转】的更多相关文章

  1. nginx 报错 upstream timed out (110: Connection timed out)解决方案【转】

    转自 nginx 报错 upstream timed out (110: Connection timed out)解决方案 - 为程序员服务http://outofmemory.cn/code-sn ...

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

    nginx 作PHP的web接口服务器. 在线上发现时不时经常崩溃.504,导致接口访问无响应回复. 查看日志: [error] 11618#0: *324911 upstream timed out ...

  3. 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 ...

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

    环境介绍 服务器:centos6.5服务:nginx proxy 问题描述: 压测 开发同事 的开发环境项目没事,但是 线上机器 命中%50 ,大量502 php的某些页面打不开,页面提示gatewa ...

  5. Nginx Upstream timed out (110: Connection timed out)

    Nginx Upstream timed out (110: Connection timed out) – 运维生存时间 http://www.ttlsa.com/nginx/nginx-upstr ...

  6. nginx 超时问题: upstream timed out (110: Connection timed out) while reading response header from upstream

    目录 错误内容 错误原因 错误解决办法 错误内容 我们可以在error.log 里面可以看到 错误内容:upstream timed out (110: Connection timed out) w ...

  7. upstream timed out (110: Connection timed out) while reading response header from upstream

    Nginx报错日志有如下内容: upstream timed out (110: Connection timed out) while reading response header from up ...

  8. upstream timed out (110: Connection timed out) while reading response header from upstream, client:

    遇到的问题 之前没配置下面这段,访问时候偶尔会出现 504 gateway timeout,由于偶尔出现,所以不太好排查 proxy_connect_timeout 300s;proxy_read_t ...

  9. 文件上传失败 -nginx报错 client intended to send too large body: 1331696 bytes

    location / { root /data/fastdfs/data; include gzip.conf; ngx_fastdfs_module; client_max_body_size 10 ...

随机推荐

  1. ELK 性能(2) — 如何在大业务量下保持 Elasticsearch 集群的稳定

    ELK 性能(2) - 如何在大业务量下保持 Elasticsearch 集群的稳定 介绍 如何在大业务量下保持 Elasticsearch 集群的稳定? 内容 当我们使用 Elasticsearch ...

  2. 第十二周(12.01-12.04)----final评论I

    1.  约跑App——nice!:作为final发布讲说的第一组,nice团队很不容易.虽然很早就来到了发布场地,为发布做准备.但是准备上还是有些不足.对于摄像头的不稳定,nice没有很好的解决.在演 ...

  3. PHP 使用GD 库绘制图像,无法显示的问题

    根据官方GD 库绘制图像文档样式 原基本样式 $width = 120; $height = 50; $img = @imagecreatetruecolor($width, $height) or ...

  4. FuelPHP 系列(三) ------ Model 模型

    框架封装好的 model 类有几个,按需继承就好. 有:/fuel/core/classes/model/crud.php /fuel/packages/orm/classes/model.php / ...

  5. JIRA部署破解和confluence整合

    JIRA是一个项目跟踪管理工具,帮助团队创建计划任务.构建并发布优秀的产品.全球成千上万的团队选择JIRA,用JIRA来捕获.组织管理缺陷.分配任务,跟踪团队的活动.不论在桌面PC还是移动终端设备上, ...

  6. KSOA单据保护表中Clientid解析为mac和ip

    SELECT DISTINCT a.*,ISNULL(c.client_net_address,'') AS client_net_address FROM ( SELECT * ,),,) ) ), ...

  7. C# 妈妈再打我一下生成器

    设计背景 网上很火的一个"妈妈再打我一下"的漫画图片,给了网友无限的想象发挥空间,此小程序可以给图片添加配文的形式,快速生成图片 设计思路 GDI+ 绘图技术,在图片基础上添加文字 ...

  8. selenium_UI自动化——篇1(基础)

    元素定位的几种方式: (1)driver.find_element_by_id("idname") (2)driver.find_element_by_name("nam ...

  9. (转)远程连接webservice遇到无法访问的问题解决办法

    原帖:http://stu-xu.i.sohu.com/blog/view/170429191.htm 如果在本地测试webservice可以运行,在远程却显示“测试窗体只能用于来自本地计算机的请求” ...

  10. 【CF605E】Intergalaxy Trips(贪心,动态规划)

    [CF605E]Intergalaxy Trips(贪心,动态规划) 题面 Codeforces 洛谷 有\(n\)个点,每个时刻第\(i\)个点和第\(j\)个点之间有\(p_{ij}\)的概率存在 ...