broken pipe error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank de Bot

    broken pipe error

    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:

    --[color=blue]
    > [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"[/color]
    --
    /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:
    --[color=blue]
    > FastCgiSuexec on[/color]
    [color=blue]
    > And in a virtualhost directive:
    > FastCgiConfig -multiThreshold 50 -maxProcesses 50 -minProcesses 5
    > -maxClassProcess es 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[/color]
    --

    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!

  • Peeky

    #2
    Re: broken pipe error


    "Frank de Bot" <ppi_doesnt_lik e_@spam_inhis_e mail_searchy.ne t> wrote in
    message news:bobr3c$g5g $1@news2.tilbu1 .nb.home.nl...[color=blue]
    > 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:
    >
    > --[color=green]
    > > [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"[/color]
    > --
    > /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:
    > --[color=green]
    > > FastCgiSuexec on[/color]
    >[color=green]
    > > And in a virtualhost directive:
    > > FastCgiConfig -multiThreshold 50 -maxProcesses 50 -minProcesses 5
    > > -maxClassProcess es 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[/color]
    > --
    >
    > 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!
    >[/color]

    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


    Comment

    • Frank de Bot

      #3
      Re: broken pipe error

      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:[color=blue]
      > "Frank de Bot" <ppi_doesnt_lik e_@spam_inhis_e mail_searchy.ne t> wrote in
      > message news:bobr3c$g5g $1@news2.tilbu1 .nb.home.nl...
      >[color=green]
      >>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:
      >>
      >>--[color=darkred]
      >> > [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"[/color]
      >>--
      >>/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
      >>simulteanio us 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:
      >>--[color=darkred]
      >> > FastCgiSuexec on[/color]
      >>[color=darkred]
      >> > And in a virtualhost directive:
      >> > FastCgiConfig -multiThreshold 50 -maxProcesses 50 -minProcesses 5
      >> > -maxClassProcess es 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[/color]
      >>--
      >>
      >>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!
      >>[/color]
      >
      >
      > 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
      >
      >[/color]

      Comment

      Working...