lighttpd forum lighty > error in mod_fastcgi

Posted by Felipe Román (Guest)
on 03.10.2008 05:05
Hi, I have this error many times a day.

the error log says

[code]
2008-10-02 22:29:05: (mod_fastcgi.c.2494) unexpected end-of-file 
(perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:1026
2008-10-02 22:29:05: (mod_fastcgi.c.3325) response not received, request 
sent: 996 on socket: tcp:127.0.0.1:1026 for /foro/vbseo.php , closing 
connection
2008-10-02 22:29:05: (mod_fastcgi.c.2494) unexpected end-of-file 
(perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:1028
2008-10-02 22:29:05: (mod_fastcgi.c.3325) response not received, request 
sent: 1806 on socket: tcp:127.0.0.1:1028 for /foro/vbseo.php , closing 
connection
2008-10-02 22:29:05: (mod_fastcgi.c.2494) unexpected end-of-file 
(perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:1027
2008-10-02 22:29:05: (mod_fastcgi.c.3325) response not received, request 
sent: 1285 on socket: tcp:127.0.0.1:1027 for /foro/vbseo.php , closing 
connection
2008-10-02 22:29:05: (mod_fastcgi.c.2494) unexpected end-of-file 
(perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:1028
2008-10-02 22:29:05: (mod_fastcgi.c.3325) response not received, request 
sent: 621 on socket: tcp:127.0.0.1:1028 for /foro/vbseo.php , closing 
connection [/code]

until I have to restart the lighttpd server.


my machine:
CPU: double Xeon quadcore 2.0gz
RAM: 4gb ecc FBDIMM

my software:
php-5.2.6-1
lighttpd-1.4.20  (with 1.4.19 I had the same error)
lua-5.1.2-1

I would really appreciate any help
Posted by trn (Guest)
on 16.10.2008 06:49
I have similar problems on freebsd too ;/

FreeBSD 7.1-PRERELEASE #7
lighttpd-1.4.20 (and lighttpd-1.4.19)
php5-5.2.6_2
xcache-1.2.2

i think problems started when i enabled xcache...

2008-10-15 20:21:50: (response.c.221) -- splitting Request-URI
2008-10-15 20:21:50: (response.c.222) Request-URI  :  /
2008-10-15 20:21:50: (response.c.223) URI-scheme   :  http
2008-10-15 20:21:50: (response.c.224) URI-authority:  www.dulksna.org
2008-10-15 20:21:50: (response.c.225) URI-path     :  /
2008-10-15 20:21:50: (response.c.226) URI-query    :
2008-10-15 20:21:50: (response.c.254) -- sanatising URI
2008-10-15 20:21:50: (response.c.255) URI-path     :  /
2008-10-15 20:21:50: (response.c.221) -- splitting Request-URI
2008-10-15 20:21:50: (response.c.222) Request-URI  :  /index.php//
2008-10-15 20:21:50: (response.c.223) URI-scheme   :  http
2008-10-15 20:21:50: (response.c.224) URI-authority:  www.dulksna.org
2008-10-15 20:21:50: (response.c.225) URI-path     :  /index.php//
2008-10-15 20:21:50: (response.c.226) URI-query    :
2008-10-15 20:21:50: (response.c.254) -- sanatising URI
2008-10-15 20:21:50: (response.c.255) URI-path     :  /index.php/
2008-10-15 20:21:50: (mod_access.c.135) -- mod_access_uri_handler called
2008-10-15 20:21:50: (response.c.391) -- before doc_root
2008-10-15 20:21:50: (response.c.392) Doc-Root     : /data/web/main/
2008-10-15 20:21:50: (response.c.393) Rel-Path     : /index.php/
2008-10-15 20:21:50: (response.c.394) Path         :
2008-10-15 20:21:50: (response.c.442) -- after doc_root
2008-10-15 20:21:50: (response.c.443) Doc-Root     : /data/web/main/
2008-10-15 20:21:50: (response.c.444) Rel-Path     : /index.php/
2008-10-15 20:21:50: (response.c.445) Path         : 
/data/web/main/index.php/
2008-10-15 20:21:50: (response.c.462) -- logical -> physical
2008-10-15 20:21:50: (response.c.463) Doc-Root     : /data/web/main/
2008-10-15 20:21:50: (response.c.464) Rel-Path     : /index.php/
2008-10-15 20:21:50: (response.c.465) Path         : 
/data/web/main/index.php/
2008-10-15 20:21:50: (response.c.482) -- handling physical path
2008-10-15 20:21:50: (response.c.483) Path         : 
/data/web/main/index.php/
2008-10-15 20:21:50: (response.c.632) -- after pathinfo check
2008-10-15 20:21:50: (response.c.633) Path         : 
/data/web/main/index.php
2008-10-15 20:21:50: (response.c.634) URI          : /index.php
2008-10-15 20:21:50: (response.c.635) Pathinfo     : /
2008-10-15 20:21:50: (response.c.640) -- handling subrequest
2008-10-15 20:21:50: (response.c.641) Path         : 
/data/web/main/index.php
2008-10-15 20:21:50: (mod_access.c.135) -- mod_access_uri_handler called
2008-10-15 20:21:50: (mod_fastcgi.c.3671) handling it in mod_fastcgi
2008-10-15 20:21:52: (mod_fastcgi.c.2494) unexpected end-of-file 
(perhaps the fastcgi process died): pid: 1196 socket: 
unix:/tmp/php.socket-3
2008-10-15 20:21:52: (mod_fastcgi.c.3325) response not received, request 
sent: 695 on socket: unix:/tmp/php.socket-3 for /index.php , closing 
connection
2008-10-15 20:21:52: (response.c.121) Response-Header:
HTTP/1.1 500 Internal Server Error
Content-Type: text/html
Content-Length: 369
Date: Wed, 15 Oct 2008 17:21:52 GMT
Server: lighttpd

xcache configuration in php.ini:
[xcache]

xcache.shm_scheme =        "mmap"
xcache.size  =               128M
xcache.count =                2
xcache.slots =                8K
xcache.ttl   =                 0
xcache.gc_interval =           0

xcache.var_size  =            0M
xcache.var_count =             1
xcache.var_slots =            8K
xcache.var_ttl   =             0
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300

xcache.test =                Off
xcache.readonly_protection = Off
xcache.mmap_path =    "/tmp/xcache"
xcache.coredump_directory =   ""

xcache.cacher =               On
xcache.stat   =               On
xcache.optimizer =           On

[xcache.coverager]
xcache.coverager =          Off

xcache.coveragedump_directory = ""


lighttpd configuration:

fastcgi.server             = ( ".php" =>
                               ( "localhost" =>
                                 (
                                   "socket" => "/tmp/php.socket",
                                   "bin-path" => 
"/usr/local/bin/php-cgi",
                                   "max-procs" => 4,
                                   "bin-environment" => (
                                        "PHP_FCGI_CHILDREN" => "16",
                                        "PHP_FCGI_MAX_REQUESTS" => "100"
                                   )
                                 )
                               )
                            )


Felipe Román wrote:
> Hi, I have this error many times a day.
> 
> the error log says
> 
> [code]
> 2008-10-02 22:29:05: (mod_fastcgi.c.2494) unexpected end-of-file 
> (perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:1026
> 2008-10-02 22:29:05: (mod_fastcgi.c.3325) response not received, request 
> sent: 996 on socket: tcp:127.0.0.1:1026 for /foro/vbseo.php , closing 
> connection
> 2008-10-02 22:29:05: (mod_fastcgi.c.2494) unexpected end-of-file 
> (perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:1028
> 2008-10-02 22:29:05: (mod_fastcgi.c.3325) response not received, request 
> sent: 1806 on socket: tcp:127.0.0.1:1028 for /foro/vbseo.php , closing 
> connection
> 2008-10-02 22:29:05: (mod_fastcgi.c.2494) unexpected end-of-file 
> (perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:1027
> 2008-10-02 22:29:05: (mod_fastcgi.c.3325) response not received, request 
> sent: 1285 on socket: tcp:127.0.0.1:1027 for /foro/vbseo.php , closing 
> connection
> 2008-10-02 22:29:05: (mod_fastcgi.c.2494) unexpected end-of-file 
> (perhaps the fastcgi process died): pid: 0 socket: tcp:127.0.0.1:1028
> 2008-10-02 22:29:05: (mod_fastcgi.c.3325) response not received, request 
> sent: 621 on socket: tcp:127.0.0.1:1028 for /foro/vbseo.php , closing 
> connection [/code]
> 
> until I have to restart the lighttpd server.
> 
> 
> my machine:
> CPU: double Xeon quadcore 2.0gz
> RAM: 4gb ecc FBDIMM
> 
> my software:
> php-5.2.6-1
> lighttpd-1.4.20  (with 1.4.19 I had the same error)
> lua-5.1.2-1
> 
> I would really appreciate any help