常见问题常见问题   搜索搜索   会员列表会员列表   团队团队   注册注册    个人资料个人资料   登录查看您的站内信件登录查看您的站内信件   登录登录 

lighttpd日志经常出现unexpected end-of-file错误

 
发表新文章   回复文章    FreeBSD China -> 技术交流
阅读上一个主题 :: 阅读下一个主题  
作者 留言
ilangilang
半仙


注册时间: 2006-03-31
文章: 104

文章发表于: Sun 2008-03-23 22:10:46    发表主题: lighttpd日志经常出现unexpected end-of-file错误 引用并回复

lighttpd运行一直很好,昨天查看日志的时候发现有大量的unexpected end-of-file错误,但是前台网站运行一切正常,检查了半天没发现是什么原因引起的,到lighttpd论坛找,好像也没有一个确切的原因。lighttpd版本是 1.4.19,php版本5.2.5
错误日志如下
代码:
2008-03-23 21:04:57: (server.c.1258) NOTE: a request for /bbs/attachment.php?aid=119325 timed out after writing 1747736 bytes. We waited 1440 seconds. If this a problem increase
2008-03-23 21:14:03: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60876 socket: unix:/tmp/php-fastcgi.socket-6
2008-03-23 21:14:03: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-6 for /bbs/gzoutput.php , terminating con
2008-03-23 21:22:53: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60876 socket: unix:/tmp/php-fastcgi.socket-6
2008-03-23 21:22:53: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-6 for /bbs/gzoutput.php , terminating con
2008-03-23 21:23:07: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60909 socket: unix:/tmp/php-fastcgi.socket-7
2008-03-23 21:23:07: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-7 for /bbs/post.php , terminating connect
2008-03-23 21:26:53: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60909 socket: unix:/tmp/php-fastcgi.socket-7
2008-03-23 21:26:53: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-7 for /bbs/gzoutput.php , terminating con
2008-03-23 21:32:57: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60909 socket: unix:/tmp/php-fastcgi.socket-7
2008-03-23 21:32:57: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-7 for /bbs/gzoutput.php , terminating con
2008-03-23 21:36:20: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60876 socket: unix:/tmp/php-fastcgi.socket-6
2008-03-23 21:36:20: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-6 for /bbs/gzoutput.php , terminating con
2008-03-23 21:40:58: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60843 socket: unix:/tmp/php-fastcgi.socket-5
2008-03-23 21:40:58: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-5 for /bbs/my.php , terminating connectio
2008-03-23 21:47:42: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60876 socket: unix:/tmp/php-fastcgi.socket-6
2008-03-23 21:47:42: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-6 for /bbs/gzoutput.php , terminating con
2008-03-23 21:49:24: (request.c.535) no uri specified -> 400
2008-03-23 21:49:25: (request.c.535) no uri specified -> 400
2008-03-23 21:50:51: (server.c.1258) NOTE: a request for /bbs/attachments/month_0803/20080322_be58238c4e10d29c8064wgOaOXtT8XvG.jpg timed out after writing 327917 bytes. We waite
2008-03-23 21:57:23: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60876 socket: unix:/tmp/php-fastcgi.socket-6
2008-03-23 21:57:23: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-6 for /bbs/gzoutput.php , terminating con
2008-03-23 21:57:27: (request.c.535) no uri specified -> 400
2008-03-23 21:57:27: (request.c.535) no uri specified -> 400
2008-03-23 21:57:58: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60876 socket: unix:/tmp/php-fastcgi.socket-6
2008-03-23 21:57:58: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-6 for /bbs/viewthread.php , terminating c
2008-03-23 21:58:22: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60909 socket: unix:/tmp/php-fastcgi.socket-7
2008-03-23 21:58:22: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-7 for /bbs/gzoutput.php , terminating con
2008-03-23 21:59:25: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60810 socket: unix:/tmp/php-fastcgi.socket-4
2008-03-23 21:59:25: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-4 for /bbs/gzoutput.php , terminating con
2008-03-23 22:03:22: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60876 socket: unix:/tmp/php-fastcgi.socket-6
2008-03-23 22:03:22: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-6 for /single_sidebox.php , terminating c
2008-03-23 22:03:22: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60876 socket: unix:/tmp/php-fastcgi.socket-6
2008-03-23 22:03:22: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-6 for /bbs/gzoutput.php , terminating con
2008-03-23 22:03:54: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60843 socket: unix:/tmp/php-fastcgi.socket-5
2008-03-23 22:03:54: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-5 for /bbs/gzoutput.php , terminating con
2008-03-23 22:03:55: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60843 socket: unix:/tmp/php-fastcgi.socket-5
2008-03-23 22:03:55: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-5 for /bbs/gzoutput.php , terminating con
2008-03-23 22:04:38: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60909 socket: unix:/tmp/php-fastcgi.socket-7
2008-03-23 22:04:38: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-7 for /bbs/gzoutput.php , terminating con
2008-03-23 22:05:26: (request.c.535) no uri specified -> 400
2008-03-23 22:05:26: (request.c.535) no uri specified -> 400
2008-03-23 22:06:53: (mod_fastcgi.c.2471) unexpected end-of-file (perhaps the fastcgi process died): pid: 60810 socket: unix:/tmp/php-fastcgi.socket-4
2008-03-23 22:06:53: (mod_fastcgi.c.3296) response already sent out, but backend returned error on socket: unix:/tmp/php-fastcgi.socket-4 for /bbs/gzoutput.php , terminating con

_________________
串珠饰品批发网
手工爱好者
手工制作网站大全
返回页首
阅览会员资料 发送站内信件
ilangilang
半仙


注册时间: 2006-03-31
文章: 104

文章发表于: Sun 2008-03-23 22:12:11    发表主题: 引用并回复

lighttpd.conf设置如下
代码:
fastcgi.server             = ( ".php" =>
                               ( "localhost" =>
                                 (
                                   "socket" => "/tmp/php-fastcgi.socket",
                                   "bin-path" => "/usr/local/www/cgibin/php5cgi -v /usr/local/etc/php.ini",
                                   "min-procs" => 3,
                                   "max-procs" => 8,
                                   "max-load-per-proc" => 4,
                                   "idle-timeout" => 20,
                                   "bin-environment" => (
                                   "PHP_FCGI_CHILDREN" => "32",
                                   "PHP_FCGI_MAX_REQUESTS" => "1000",
                                  ),
                                   "broken-scriptfilename" => "enable"
                                )
                               ),
        ".cgi" =>
           ( "localhost" =>
             (
                "socket"   => "/tmp/dispatch.fcgi",
                "bin-path" => "/home/www/dispatch_lig.sh",
                "min-procs" => 1,
                "max-procs" => 4,
                "max-load-per-proc" => 4,
                "idle-timeout" => 20
              )
            )

                            )

_________________
串珠饰品批发网
手工爱好者
手工制作网站大全
返回页首
阅览会员资料 发送站内信件
ilangilang
半仙


注册时间: 2006-03-31
文章: 104

文章发表于: Tue 2008-03-25 09:01:41    发表主题: 引用并回复

没人遇到过吗?
_________________
串珠饰品批发网
手工爱好者
手工制作网站大全
返回页首
阅览会员资料 发送站内信件
ilangilang
半仙


注册时间: 2006-03-31
文章: 104

文章发表于: Tue 2008-03-25 09:34:05    发表主题: 引用并回复

google了一番,解决了
changing
"socket" => "/tmp/php.socket",
into
"socket" => "/tmp/php.socket" + var.PID,
ended my suffering Wink

_________________
串珠饰品批发网
手工爱好者
手工制作网站大全
返回页首
阅览会员资料 发送站内信件
ilangilang
半仙


注册时间: 2006-03-31
文章: 104

文章发表于: Tue 2008-03-25 11:15:25    发表主题: 引用并回复

不行,还是出现那个问题,好像是php5.2.5的bug
_________________
串珠饰品批发网
手工爱好者
手工制作网站大全
返回页首
阅览会员资料 发送站内信件
七星剑客
半仙


注册时间: 2008-04-05
文章: 1

文章发表于: Sat 2008-04-05 23:24:10    发表主题: 引用并回复

我也碰到了这个问题,从php 5.2.4就开始有了,我先前也以为是php的bug,但升级到php 5.2.5后,问题依然存在。不知哪位仁兄有解决办法。
返回页首
阅览会员资料 发送站内信件
从以前的文章开始显示:   
发表新文章   回复文章    FreeBSD China -> 技术交流 论坛时间为 北京时间
1页/共1

 
转跳到:  
不能发布新主题
不能在这个论坛回复主题
不能在这个论坛编辑自己的文章
不能在这个论坛删除自己的文章
不能在这个论坛发表投票


Powered by phpBB 2022cc © 2003 Opensource Steps; © 2003-2007 The FreeBSD Simplified Chinese Project
Powered by phpBB © 2001, 2005 phpBB Group
The FreeBSD China Project 网站: 中文计划网站 社区网站
The FreeBSD China Project 版权所有 (C) 1999 - 2003 网页设计版权 著作权和商标