By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,728 Members | 2,490 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,728 IT Pros & Developers. It's quick & easy.

broken pipe error

P: n/a
Hi,

occasionaly I find in my apache logs that fastcgi had a broken pipe
error with php running as fastcgi. the logs are like this:

--
[Wed Nov 5 18:21:31 2003] [error] [client %ip%] (32)Broken pipe:
FastCGI: comm with server /opt/guide/ppi.searchy.net/cgi-bin/php.fcgi"
aborted: write failed
[Wed Nov 5 18:21:31 2003] [error] [client %ip%] FastCGI: incomplete
headers (0 bytes) received from server
"/opt/guide/ppi.searchy.net/cgi-bin/php.fcgi" --
/opt/guide/ppi.searchy.net/cgi-bin/php.fcgi is the php binary itself.
The error occure randomly and can only me reproduced to visit the site
and "have luck" before an error occures (Once I had my site beat up with
simulteanious wget -m's and all request where perfect, next day I view
the site with my browser "ERROR!" and it suddenly occured :-S

the apache config is like this:
-- FastCgiSuexec on And in a virtualhost directive:
FastCgiConfig -multiThreshold 50 -maxProcesses 50 -minProcesses 5
-maxClassProcesses 50 -startDelay 5 -appConnTimeout 0
-listen-queue-depth 1000
FastCgiServer /opt/guide/ppi.searchy.net/cgi-bin/php.fcgi -processes 5
AddHandler php-fastcgi .fphp .php4 .php3 .php
Action php-fastcgi /cgi-bin/php.fcgi

--

php ignores it as a bug report :-/ When I run php as an external fastcgi
application the broken pipe errors seem to seaze, but webpages are
slowing down.
At the moment I'm running PHP4.3.4RC3 on FreeBSD 4.8

Can anyone tell me, WHY those broken pipe error occure and possible
solutions?

Thanks in advanced,

Frank!

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Frank de Bot" <ppi_doesnt_like_@spam_inhis_email_searchy.net> wrote in
message news:bo**********@news2.tilbu1.nb.home.nl...
Hi,

occasionaly I find in my apache logs that fastcgi had a broken pipe
error with php running as fastcgi. the logs are like this:

--
> [Wed Nov 5 18:21:31 2003] [error] [client %ip%] (32)Broken pipe:
> FastCGI: comm with server /opt/guide/ppi.searchy.net/cgi-bin/php.fcgi"
> aborted: write failed
> [Wed Nov 5 18:21:31 2003] [error] [client %ip%] FastCGI: incomplete
> headers (0 bytes) received from server
> "/opt/guide/ppi.searchy.net/cgi-bin/php.fcgi"

--
/opt/guide/ppi.searchy.net/cgi-bin/php.fcgi is the php binary itself.
The error occure randomly and can only me reproduced to visit the site
and "have luck" before an error occures (Once I had my site beat up with
simulteanious wget -m's and all request where perfect, next day I view
the site with my browser "ERROR!" and it suddenly occured :-S

the apache config is like this:
--
> FastCgiSuexec on

> And in a virtualhost directive:
> FastCgiConfig -multiThreshold 50 -maxProcesses 50 -minProcesses 5
> -maxClassProcesses 50 -startDelay 5 -appConnTimeout 0
> -listen-queue-depth 1000
> FastCgiServer /opt/guide/ppi.searchy.net/cgi-bin/php.fcgi -processes 5
> AddHandler php-fastcgi .fphp .php4 .php3 .php
> Action php-fastcgi /cgi-bin/php.fcgi

--

php ignores it as a bug report :-/ When I run php as an external fastcgi
application the broken pipe errors seem to seaze, but webpages are
slowing down.
At the moment I'm running PHP4.3.4RC3 on FreeBSD 4.8

Can anyone tell me, WHY those broken pipe error occure and possible
solutions?

Thanks in advanced,

Frank!


I'm not familiar running PHP as a CGI but... I'm wondering if your scripts
are timeing out. If the problem happens on occassions, it might be during
heavy load, and because of heavy load the script takes longer to run.

There is a function set_time_out() I think that you could try and use and
see if it helps fix the problem.

randelld
Jul 17 '05 #2

P: n/a
I've increased set_time_limit to 120, but the broken pipe error remains,
the server wasn't under a big load (5min avg: 0.05). I've once had the
error itself once and it gave a 500 error on the instand I loaded the
page, so I don't think it's caused by timeouts

Peeky wrote:
"Frank de Bot" <ppi_doesnt_like_@spam_inhis_email_searchy.net> wrote in
message news:bo**********@news2.tilbu1.nb.home.nl...
Hi,

occasionaly I find in my apache logs that fastcgi had a broken pipe
error with php running as fastcgi. the logs are like this:

--
> [Wed Nov 5 18:21:31 2003] [error] [client %ip%] (32)Broken pipe:
> FastCGI: comm with server /opt/guide/ppi.searchy.net/cgi-bin/php.fcgi"
> aborted: write failed
> [Wed Nov 5 18:21:31 2003] [error] [client %ip%] FastCGI: incomplete
> headers (0 bytes) received from server
> "/opt/guide/ppi.searchy.net/cgi-bin/php.fcgi"

--
/opt/guide/ppi.searchy.net/cgi-bin/php.fcgi is the php binary itself.
The error occure randomly and can only me reproduced to visit the site
and "have luck" before an error occures (Once I had my site beat up with
simulteanious wget -m's and all request where perfect, next day I view
the site with my browser "ERROR!" and it suddenly occured :-S

the apache config is like this:
--
> FastCgiSuexec on

> And in a virtualhost directive:
> FastCgiConfig -multiThreshold 50 -maxProcesses 50 -minProcesses 5
> -maxClassProcesses 50 -startDelay 5 -appConnTimeout 0
> -listen-queue-depth 1000
> FastCgiServer /opt/guide/ppi.searchy.net/cgi-bin/php.fcgi -processes 5
> AddHandler php-fastcgi .fphp .php4 .php3 .php
> Action php-fastcgi /cgi-bin/php.fcgi

--

php ignores it as a bug report :-/ When I run php as an external fastcgi
application the broken pipe errors seem to seaze, but webpages are
slowing down.
At the moment I'm running PHP4.3.4RC3 on FreeBSD 4.8

Can anyone tell me, WHY those broken pipe error occure and possible
solutions?

Thanks in advanced,

Frank!

I'm not familiar running PHP as a CGI but... I'm wondering if your scripts
are timeing out. If the problem happens on occassions, it might be during
heavy load, and because of heavy load the script takes longer to run.

There is a function set_time_out() I think that you could try and use and
see if it helps fix the problem.

randelld


Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.