Nginx 错误码以及原因 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zhengji
V2EX    NGINX

Nginx 错误码以及原因

  •  1
     
  •   zhengji
    zheng-ji 2015-07-20 22:56:53 +08:00 4511 次点击
    这是一个创建于 3804 天前的主题,其中的信息可能已经有所发展或是发生改变。

    source: http://zheng-ji.info/blog/2014/12/13/nginxcuo-wu-ma/

    在定位线上服务问题的时候,通常会去查看Nginx 的 error log,
    那么 error 的定义, 对查找问题就显得很有帮助

    upstream prematurely closed connection
    请求uri的时候出现的异常,是由于 upstream 还未返回应答给用户时用户断掉连接造成的,对系统没有影响,可以忽略.

    recv() failed (104: Connection reset by peer)
    服务器的并发连接数超过了其承载量,服务器会将其中一些连接Down掉;客户关掉了浏览器,而服务器还在给客户端发送数据;

    (111: Connection refused) while connecting to upstream
    用户在连接时,若遇到后端 upstream 挂掉或者不通,会收到该错误

    (111: Connection refused) while reading response header from upstream
    用户在连接成功后读取数据时,若遇到后端 upstream 挂掉或者不通,会收到该错误

    (111: Connection refused) while sending request to upstream
    Nginx 和 upstream 连接成功后发送数据时,若遇到后端 upstream 挂掉或者不通,会收到该错误

    (110: Connection timed out) while connecting to upstream
    nginx 连接后面的 upstream 时超时

    (110: Connection timed out) while reading upstream
    nginx 读取来自 upstream 的响应时超时

    (110: Connection timed out) while reading response header from upstream
    nginx 读取来自 upstream 的响应头时超时

    (110: Connection timed out) while reading upstream
    nginx读取来自 upstream 的响应时超时

    (104: Connection reset by peer) while connecting to upstream
    upstream发送了 RST,将连接重置

    upstream sent invalid header while reading response header from upstream
    upstream 发送的响应头无效

    upstream sent no valid HTTP/1.0 header while reading response header from upstream
    upstream 发送的响应头无效

    client intended to send too large body
    用于设置允许接受的客户端请求内容的最大值,默认值是1M,client 发送的 body 超过了设置值

    reopening logs
    用户发送kill -USR1命令

    gracefully shutting down
    用户发送kill -WINCH命令

    no live upstreams while connecting to upstream
    upstream 下的 server 全都挂了

    SSL_do_handshake() failed
    SSL握手失败

    ngx_slab_alloc() failed: no memory in SSL session shared cache
    ssl_session_cache大小不够等原因造成

    could not add new SSL session to the session cache while SSL handshaking
    ssl_session_cache 大小不够等原因造成

    目前尚无回复
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5312 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 31ms UTC 06:31 PVG 14:31 LAX 22:31 JFK 01:31
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86