<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]nginx 模块 Empty reply from server，是因磁盘满了导致的。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Web服务器]]></category>
<pubDate>Sat, 22 Nov 2014 05:31:39 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：curl &quot;http://jackxiang.com/post/7634/&quot; curl: (52) Empty reply from server，我估计是Nginx的缓存cgi动态为静态的模块可能出了点问题。<br/><br/>今天调试nginx 模块，使用 curl 发http 请求，结果得到这么个错“Empty reply from server”，死活不得其解。<br/><br/>后来，使用gdb调试另外一个东西，还没到断点处就停了，执行下一步，就挂掉了。这时看curl的返回，正是“Empty reply from server”。<br/><br/>ps 发现原来nginx子进程已经没了，换成了新的（如果有子进程挂掉，nginx会启动一个新的）。<br/><br/><br/>就这两个模块：<br/>http://www.grid.net.ru/nginx/upload.en.html<br/>http://labs.frickle.com/nginx_ngx_cache_purge/<br/><br/>顺带升级了一下nginx为1.7.7好像就有上面这个问题，加一个nginx_upload_module模块（编译不过去，后来去了。），重新编译一次nginx，问题依旧：<br/><textarea name="code" class="php" rows="15" cols="100">
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module
--add-module=../ngx_cache_purge-2.1 --add-module=../nginx_upload_module-2.2.0
</textarea><br/><br/>最终问题从nginx的error里查到：<br/>2014/11/22 14:38:14 [crit] 8855#0: *260 writev() &quot;/usr/local/nginx/fastcgi_temp/9/08/0000000089&quot; failed (28: No space left on device) while reading upstream, client: 27.150.222.72, server: jackxiang.com, request: &quot;GET / HTTP/1.1&quot;, upstream: &quot;fastcgi://unix:/tmp/php-cgi.sock:&quot;, host: &quot;www.jackxiang.com&quot;, referrer: &quot;http://www.jackxiang.com/&quot;<br/>是nginx中fastcgi的一个缓存文件,磁盘满了，我靠，查了好一会喔。<br/><textarea name="code" class="php" rows="15" cols="100">
 df -h
Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size&nbsp;&nbsp;Used Avail Use% Mounted on
/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;14G&nbsp;&nbsp; 13G&nbsp;&nbsp; 16M 100% /

</textarea><br/>___________________________________________________________<br/>Nginx-1.3.X，Nginx-1.4.X安装nginx_upload_module-2.2.0.tar.gz会有点问题，报<br/><br/>/opt/nginx_upload_module-2.2.0/ngx_http_upload_module.c: In function ‘ngx_http_read_upload_client_request_body’: /opt/nginx_upload_module-2.2.0/ngx_http_upload_module.c:2628: 错误：‘ngx_http_request_body_t’ 没有名为 ‘to_write’ 的成员<br/> ../nginx_upload_module-2.2.0/ngx_http_upload_module.c: 在函数‘ngx_http_read_upload_client_request_body’中:<br/>../nginx_upload_module-2.2.0/ngx_http_upload_module.c:2628: 错误：‘ngx_http_request_body_t’没有名为‘to_write’的成员<br/>../nginx_upload_module-2.2.0/ngx_http_upload_module.c:2687: 错误：‘ngx_http_request_body_t’没有名为‘to_write’的成员<br/>../nginx_upload_module-2.2.0/ngx_http_upload_module.c: 在函数‘ngx_http_do_read_upload_client_request_body’中:<br/>../nginx_upload_module-2.2.0/ngx_http_upload_module.c:2769: 错误：‘ngx_http_request_body_t’没有名为‘to_write’的成员<br/>../nginx_upload_module-2.2.0/ngx_http_upload_module.c:2785: 错误：‘ngx_http_request_body_t’没有名为‘to_write’的成员<br/>../nginx_upload_module-2.2.0/ngx_http_upload_module.c:2877: 错误：‘ngx_http_request_body_t’没有名为‘to_write’的成员<br/><br/><br/>选择Nginx-1.2.X的就没问题。<br/><br/><br/>来自：http://gcoder.blogbus.com/logs/44505794.html
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]nginx 模块 Empty reply from server，是因磁盘满了导致的。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>