<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: #000000; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.7601.18835"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>
<DIV style="FONT-SIZE: 12pt">Hi list</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt">My topology is :</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt">client ---> nginx 1.6.2 (port 80) ---> nginx 0.7.69 with mogilefs module (port 2080) ---> mogilefs .</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt">I want to upload a 8G file to mogilefs , the uploading URL is </DIV>
<DIV
style="FONT-SIZE: 12pt">http://dfs.myclouds.com/upload/glance_prod_env/d29a0a4a-7888-487e-91b5-57e9bbf351e7</DIV>
<DIV
style="FONT-SIZE: 12pt">There are errors , I have enabled debuging in both nginx instances , but seems that they are not detailed enough.</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt">nginx 1.6.2</DIV>
<DIV style="FONT-SIZE: 12pt">======</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt">config</DIV>
<DIV style="FONT-SIZE: 12pt">-------</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt">server {</DIV>
<DIV
style="FONT-SIZE: 12pt"> listen 80;</DIV>
<DIV
style="FONT-SIZE: 12pt"> listen 8081;</DIV>
<DIV
style="FONT-SIZE: 12pt"> server_name dfs.myclouds.com;</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt"> charset utf-8;</DIV>
<DIV style="FONT-SIZE: 12pt"> ssi on;</DIV>
<DIV
style="FONT-SIZE: 12pt"> access_log /data2/log/nginx/dfs-1.6.2.access.log main;</DIV>
<DIV
style="FONT-SIZE: 12pt"> error_log /data2/log/nginx/dfs-1.6.2-debug.log debug;</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt"> client_max_body_size 30g;</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt"> send_timeout 1800;</DIV>
<DIV
style="FONT-SIZE: 12pt"> keepalive_timeout 1800;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_read_timeout 1800;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_send_timeout 1800;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_connect_timeout 1800;</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt"> location /upload/ {</DIV>
<DIV
style="FONT-SIZE: 12pt"> expires -1;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_http_version 1.1;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_set_header Connection "";</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_set_header Host $host;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_set_header X-Real-IP $remote_addr;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_read_timeout 3600;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_send_timeout 3600;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_pass http://127.0.0.1:2080;</DIV>
<DIV style="FONT-SIZE: 12pt"> }</DIV>
<DIV style="FONT-SIZE: 12pt">}</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt"> debug log</DIV>
<DIV style="FONT-SIZE: 12pt"> -------------</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt">2016/09/13 15:57:14 [warn] 20096#0: *6140596434 a client request body is buffered to a temporary file /usr/local/nginx-1.6.2/client_body_temp/0001956429, client: 10.21.176.4, server: dfs.myclouds.com, request: "PUT /upload/glance_prod_env/d29a0a4a-7888-487e-91b5-57e9bbf351e7 HTTP/1.1", host: "dfs.myclouds.com"</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt">2016/09/13 16:00:17 [error] 20096#0: *6140596434 upstream prematurely closed connection while reading response header from upstream, client: 10.21.176.4, server: dfs.myclouds.com, request: "PUT /upload/glance_prod_env/d29a0a4a-7888-487e-91b5-57e9bbf351e7 HTTP/1.1", upstream: "http://127.0.0.1:2080/upload/glance_prod_env/d29a0a4a-7888-487e-91b5-57e9bbf351e7", host: "dfs.myclouds.com"</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt">nginx 0.7.69</DIV>
<DIV style="FONT-SIZE: 12pt">=========</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt">config</DIV>
<DIV style="FONT-SIZE: 12pt">------</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt">server {</DIV>
<DIV
style="FONT-SIZE: 12pt"> listen 2080;</DIV>
<DIV
style="FONT-SIZE: 12pt"> server_name dfs.myclouds.com;</DIV>
<DIV style="FONT-SIZE: 12pt"> charset utf-8;</DIV>
<DIV style="FONT-SIZE: 12pt"> ssi on;</DIV>
<DIV
style="FONT-SIZE: 12pt"> access_log /data2/log/nginx/dfs2.access.log main;</DIV>
<DIV
style="FONT-SIZE: 12pt"> error_log /data2/log/nginx/error2.log debug;</DIV>
<DIV
style="FONT-SIZE: 12pt"> client_max_body_size 30g;</DIV>
<DIV
style="FONT-SIZE: 12pt"> send_timeout 1800;</DIV>
<DIV
style="FONT-SIZE: 12pt"> keepalive_timeout 1800;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_read_timeout 1800;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_send_timeout 1800;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_connect_timeout 1800;</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt"> location /upload/ {</DIV>
<DIV
style="FONT-SIZE: 12pt"> mogilefs_tracker 127.0.0.1:7001;</DIV>
<DIV
style="FONT-SIZE: 12pt"> mogilefs_domain mycloudsdfs;</DIV>
<DIV
style="FONT-SIZE: 12pt"> mogilefs_methods PUT DELETE;</DIV>
<DIV
style="FONT-SIZE: 12pt"> mogilefs_pass {</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_pass $mogilefs_path;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_hide_header Content-Type;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_buffering off;</DIV>
<DIV
style="FONT-SIZE: 12pt"> }</DIV>
<DIV style="FONT-SIZE: 12pt"> }</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt"> client_body_temp_path /data/nginx-0.7.69-client_body_temp;</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt"> mogilefs_tracker 127.0.0.1:7001;</DIV>
<DIV
style="FONT-SIZE: 12pt"> mogilefs_domain mycloudsdfs;</DIV>
<DIV
style="FONT-SIZE: 12pt"> mogilefs_methods PUT DELETE;</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt"> mogilefs_pass {</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_pass $mogilefs_path;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_hide_header Content-Type;</DIV>
<DIV
style="FONT-SIZE: 12pt"> proxy_buffering off;</DIV>
<DIV
style="FONT-SIZE: 12pt"> }</DIV>
<DIV style="FONT-SIZE: 12pt"> }</DIV>
<DIV style="FONT-SIZE: 12pt">}</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt">debug log</DIV>
<DIV style="FONT-SIZE: 12pt">------------</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV
style="FONT-SIZE: 12pt">2016/09/13 15:58:43 [warn] 8786#0: *3629426 a client request body is buffered to a temporary file /data/nginx-0.7.69-client_body_temp/0000007407, client: 127.0.0.1, server: dfs.myclouds.com, request: "PUT /upload/glance_prod_env/d29a0a4a-7888-487e-91b5-57e9bbf351e7 HTTP/1.1", host: "dfs.myclouds.com"</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt">My question is that :</DIV>
<DIV
style="FONT-SIZE: 12pt">How can I find out what cause this problem "upstream prematurely closed connection while reading response header from upstream".</DIV>
<DIV style="FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-SIZE: 12pt">Thank you !</DIV></DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>sosogh</SPAN></DIV></BODY></HTML>