Re: ===== SPAM: Re: ===== SPAM: Re: ===== SPAM: Re: ===== SPAM: Apache / php / fastcgi help needed
Rob Lemley <rclemley-/[email protected]> Sat, 3 Aug 2013 01:18:07 -0700 (PDT)
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============3920115817166815373== Content-Type: multipart/alternative; boundary="-1109850712-991544138-1375517887=:71865" ---1109850712-991544138-1375517887=:71865 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The consensus here seems to be that the problem is in PHP or your PHP scrip= ts, hanging or crashing, and the recommendation is to verify the behaviour = of your script(s).=0A=0AOther forums will be more appropriate for your quer= y.=C2=A0 You appear to be running the fcgid package which is completely dif= ferent than the FastCGI package.=C2=A0 For example, we NEVER see messages s= uch as these:=0A=0A> Connection reset by peer: mod_fcgid: error reading dat= a from FastCGI server=0A> mod_fcgid: ap_pass_brigade failed in handle_reque= st_ipc function=0A=0Abecause we use mod_fastcgi, not mod_fcgid.=0A=0AI'd re= commend finding a way to debug or trace your scripts, most likely on a PHP = or PHP/fcgid list somewhere.=C2=A0 This list is for discussion of mod_fastc= gi, not mod_fcgid.=0A=0AQuestions about fcgid mistakenly show up here from = time to time.=0A=0A=0A=0A=0A>________________________________=0A> From: "ke= [email protected]" <[email protected]>=0A>To: David Birnbaum <d= [email protected]> =0A>Cc: fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org =0A>Sent: T= hursday, August 1, 2013 10:33 AM=0A>Subject: =3D=3D=3D=3D=3D SPAM: Re: [FAS= TCGI] =3D=3D=3D=3D=3D SPAM: Re: =3D=3D=3D=3D=3D SPAM: Re: =3D=3D=3D=3D=3D S= PAM: Apache /=09php / fastcgi help needed=0A> =0A>=0A>David - I would love = to .....=0A>=0A>..... if I knew what you were talking about :-)=0A>=0A>Plea= se dumb down a bit for a mere PHP Programmer - my only involvement with =0A= >FASTCGI is the fact that my server runs that version of APACHE.=0A>=0A>I'd= appreciate spoon feeding on this occasion if you can tell me what to do. = =0A>I'd rather find out exactly rather than tweak a few settings and see if= it =0A>works=0A>=0A>all tools of the trade as they say.=0A>=0A>-----Origin= al Message----- =0A>From: David Birnbaum=0A>Sent: Thursday, August 01, 2013= 4:14 PM=0A>To: <[email protected]>=0A>Cc: Thomas H Bowden Jr ; fast= [email protected]=0A>Subject: Re: =3D=3D=3D=3D=3D SPAM: Re= : [FASTCGI] =3D=3D=3D=3D=3D SPAM: Re: =3D=3D=3D=3D=3D SPAM: Apache / =0A>ph= p / fastcgi help needed=0A>=0A>Sounds like the application is dying. Might = want to attach a truss or strace =0A>to it and see what system calls are go= ing in when it fails.=0A>=0A>David.=0A>=0A>-----=0A>=0A>On Aug 1, 2013, at = 9:41 AM, <[email protected]> wrote:=0A>=0A>> Thanks - I'll have a lo= ok and post back=0A>>=0A>> -----Original Message----- From: Thomas H Bowden= Jr=0A>> Sent: Thursday, August 01, 2013 2:17 PM=0A>> To: kevin@rabbitdesig= n.co.uk=0A>> Cc: Jay Sprenkle ; fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org=0A>>= Subject: Re: =3D=3D=3D=3D=3D SPAM: Re: [FASTCGI] =3D=3D=3D=3D=3D SPAM: Apa= che / php / fastcgi =0A>> help needed=0A>>=0A>> Could it have something to = do with buffering on stdin/stdout?=0A>>=0A>> On Aug 1, 2013, at 7:43 AM, ke= [email protected] wrote:=0A>>=0A>>> Thanks Jay,=0A>>>=0A>>> But there'= s an almost identical script, that pulls less information from =0A>>> the d= atabase. That always works, but this one always fails.=0A>>>=0A>>> -----Ori= ginal Message----- From: Jay Sprenkle=0A>>> Sent: Thursday, August 01, 2013= 1:29 PM=0A>>> To: [email protected]=0A>>> Cc: fastcgi-developers@ma= ilman.fastcgi.com=0A>>> Subject: Re: =3D=3D=3D=3D=3D SPAM: [FASTCGI] Apache= / php / fastcgi help needed=0A>>>=0A>>> Your problem might be in the netwo= rking not the server. I believe=0A>>> 'connect reset by peer' is usually an= error caused when a tcp reset=0A>>> packet is sent. It might be your isp m= essing with your connections, a=0A>>> nat box, a load balancer, etc.=0A>>>= =0A>>>=0A>>> On Thu, Aug 1, 2013 at 3:14 AM,=C2=A0 <[email protected]= k> wrote:=0A>>>> I know at least one of you will know the answer to this fr= equently asked=0A>>>> question, so here I go....=0A>>>>=0A>>>> I=E2=80=99m = getting a whole host of errors when running log scripts on my =0A>>>> serve= r.=0A>>>> There=E2=80=99s a piece of code I really need to get into product= ion, but keeps=0A>>>> failing with the good old :=0A>>>>=0A>>>> timeout =E2= =80=93 45 seconds=0A>>>> Connection reset by peer: mod_fcgid: error reading= data from FastCGI =0A>>>> server=0A>>>> mod_fcgid: ap_pass_brigade failed = in handle_request_ipc function=0A>>>>=0A>>>> ...etc=0A>>>>=0A>>>> As I=E2= =80=99m not sure exactly what the problem is here =E2=80=93 I can=E2=80=99t= seem to fix =0A>>>> it.=0A>>>>=0A>>>> I=E2=80=99m using a VPS and overridi= ng the subdomain in the vhost.conf file with =0A>>>> the=0A>>>> following:= =0A>>>>=0A>>>> <IfModule mod_fcgid.c>=0A>>>> AddHandler fcgid-script .fcgi= =0A>>>> FcgidBusyTimeout 3600=0A>>>> FcgidProcessLifeTime 3600=0A>>>> Fcgid= IOTimeout 3600=0A>>>> </IfModule>=0A>>>>=0A>>>> It certainly isn=E2=80=99t = taking an hour to fail.=0A>>>>=0A>>>> I have made corresponding changes to = the PHP.INI file so that.=0A>>>>=0A>>>> max_execution_time =3D 600=0A>>>> m= ax_input_time =3D 600=0A>>>> memory_limit =3D 512M=0A>>>>=0A>>>> After the = above my process still fails :=0A>>>>=0A>>>> Connection reset by peer: mod_= fcgid: error reading data from FastCGI =0A>>>> server=0A>>>> mod_fcgid: ap_= pass_brigade failed in handle_request_ipc function=0A>>>>=0A>>>> Works fine= when running as mod_php=0A>>>>=0A>>>> ____________________________________= ___________=0A>>>> FastCGI-developers mailing list=0A>>>> FastCGI-developer= [email protected]=0A>>>> http://mailman.fastcgi.com/mailman/listinfo/fa= stcgi-developers=0A>>>>=0A>>>=0A>>>=0A>>>=0A>>> -- =0A>>> http://xkcd.com/1= 156/=0A>>> _______________________________________________=0A>>> FastCGI-de= velopers mailing list=0A>>> FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org=0A>>> ht= tp://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers=0A>>=0A>> ____= ___________________________________________=0A>> FastCGI-developers mailing= list=0A>> FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org=0A>> http://mailman.fastc= gi.com/mailman/listinfo/fastcgi-developers =0A>=0A>________________________= _______________________=0A>FastCGI-developers mailing list=0A>FastCGI-devel= [email protected]=0A>http://mailman.fastcgi.com/mailman/listinfo/fa= stcgi-developers=0A>=0A>=0A> ---1109850712-991544138-1375517887=:71865 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ar= ial, helvetica, sans-serif;font-size:10pt"><div><span>The consensus here se= ems to be that the problem is in PHP or your PHP scripts, hanging or crashi= ng, and the recommendation is to verify the behaviour of your script(s).</s= pan></div><div style=3D"color: rgb(0, 0, 0); font-size: 13.3333px; font-fam= ily: arial,helvetica,sans-serif; background-color: transparent; font-style:= normal;"><br><span></span></div><div style=3D"color: rgb(0, 0, 0); font-si= ze: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: t= ransparent; font-style: normal;"><span>Other forums will be more appropriat= e for your query. You appear to be running the fcgid package which is= completely different than the FastCGI package. For example, we NEVER= see messages such as these:</span></div><div style=3D"color: rgb(0, 0, 0);= font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br>> Connection re= set by peer: mod_fcgid: error reading data from FastCGI server<br>> mod_= fcgid: ap_pass_brigade failed in handle_request_ipc function</div><div styl= e=3D"color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetic= a,sans-serif; background-color: transparent; font-style: normal;"><br></div= ><div style=3D"color: rgb(0, 0, 0); font-size: 13.3333px; font-family: aria= l,helvetica,sans-serif; background-color: transparent; font-style: normal;"= >because we use mod_fastcgi, not mod_fcgid.</div><div style=3D"color: rgb(0= , 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; bac= kground-color: transparent; font-style: normal;"><br></div><div style=3D"co= lor: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-= serif; background-color: transparent; font-style: normal;">I'd recommend fi= nding a way to debug or trace your scripts, most likely on a PHP or PHP/fcgid list somewhere. This list is for discussion of mod_fastcgi= , not mod_fcgid.</div><div style=3D"color: rgb(0, 0, 0); font-size: 13.3333= px; font-family: arial,helvetica,sans-serif; background-color: transparent;= font-style: normal;"><br></div><div style=3D"color: rgb(0, 0, 0); font-siz= e: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: tr= ansparent; font-style: normal;">Questions about fcgid mistakenly show up he= re from time to time.<br></div><div><br><blockquote style=3D"border-left: 2= px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left:= 5px;"> <div style=3D"font-family: arial, helvetica, sans-serif; font-size= : 10pt;"> <div style=3D"font-family: times new roman, new york, times, seri= f; font-size: 12pt;"> <div dir=3D"ltr"> <hr size=3D"1"> <font face=3D"Aria= l" size=3D"2"> <b><span style=3D"font-weight:bold;">From:</span></b> "kevin= @rabbitdesign.co.uk" <[email protected]><br> <b><span style=3D= "font-weight: bold;">To:</span></b> David Birnbaum <[email protected]> <br><b><span= style=3D"font-weight: bold;">Cc:</span></b> [email protected]= tcgi.com <br> <b><span style=3D"font-weight: bold;">Sent:</span></b> Thursd= ay, August 1, 2013 10:33 AM<br> <b><span style=3D"font-weight: bold;">Subje= ct:</span></b> =3D=3D=3D=3D=3D SPAM: Re: [FASTCGI] =3D=3D=3D=3D=3D SPAM: Re= : =3D=3D=3D=3D=3D SPAM: Re: =3D=3D=3D=3D=3D SPAM: Apache /=09php / fastcgi = help needed<br> </font> </div> <div class=3D"y_msg_container"><br>David - I= would love to .....<br><br>..... if I knew what you were talking about :-)= <br><br>Please dumb down a bit for a mere PHP Programmer - my only involvem= ent with <br>FASTCGI is the fact that my server runs that version of APACHE= .<br><br>I'd appreciate spoon feeding on this occasion if you can tell me w= hat to do. <br>I'd rather find out exactly rather than tweak a few settings= and see if it <br>works<br><br>all tools of the trade as they say.<br><br>= -----Original Message----- <br>From: David Birnbaum<br>Sent: Thursday, August 01, 2013 4:14 PM<br>To: <<a ymailto= =3D"mailto:[email protected]" href=3D"mailto:[email protected]= k">[email protected]</a>><br>Cc: Thomas H Bowden Jr ; <a ymailto= =3D"mailto:fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org" href=3D"mailto:fastcgi-d= [email protected]">fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org</a><b= r>Subject: Re: =3D=3D=3D=3D=3D SPAM: Re: [FASTCGI] =3D=3D=3D=3D=3D SPAM: Re= : =3D=3D=3D=3D=3D SPAM: Apache / <br>php / fastcgi help needed<br><br>Sound= s like the application is dying. Might want to attach a truss or strace <br= >to it and see what system calls are going in when it fails.<br><br>David.<= br><br>-----<br><br>On Aug 1, 2013, at 9:41 AM, <<a ymailto=3D"mailto:ke= [email protected]" href=3D"mailto:[email protected]">kevin@rabb= itdesign.co.uk</a>> wrote:<br><br>> Thanks - I'll have a look and pos= t back<br>><br>> -----Original Message----- From: Thomas H Bowden Jr<= br>> Sent: Thursday, August 01, 2013 2:17 PM<br>> To: <a ymailto=3D"mailto:[email protected]" hr= ef=3D"mailto:[email protected]">[email protected]</a><br>>= Cc: Jay Sprenkle ; <a ymailto=3D"mailto:[email protected]= .com" href=3D"mailto:fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org">fastcgi-develo= [email protected]</a><br>> Subject: Re: =3D=3D=3D=3D=3D SPAM: Re:= [FASTCGI] =3D=3D=3D=3D=3D SPAM: Apache / php / fastcgi <br>> help neede= d<br>><br>> Could it have something to do with buffering on stdin/std= out?<br>><br>> On Aug 1, 2013, at 7:43 AM, <a ymailto=3D"mailto:kevin= @rabbitdesign.co.uk" href=3D"mailto:[email protected]">kevin@rabbitd= esign.co.uk</a> wrote:<br>><br>>> Thanks Jay,<br>>><br>>&= gt; But there's an almost identical script, that pulls less information fro= m <br>>> the database. That always works, but this one always fails.<= br>>><br>>> -----Original Message----- From: Jay Sprenkle<br>&g= t;> Sent: Thursday, August 01, 2013 1:29 PM<br>>> To: <a ymailto=3D"mailto:kevin@rabbitd= esign.co.uk" href=3D"mailto:[email protected]">[email protected]= .uk</a><br>>> Cc: <a ymailto=3D"mailto:[email protected]= tcgi.com" href=3D"mailto:fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org">fastcgi-de= [email protected]</a><br>>> Subject: Re: =3D=3D=3D=3D=3D S= PAM: [FASTCGI] Apache / php / fastcgi help needed<br>>><br>>> Y= our problem might be in the networking not the server. I believe<br>>>= ; 'connect reset by peer' is usually an error caused when a tcp reset<br>&g= t;> packet is sent. It might be your isp messing with your connections, = a<br>>> nat box, a load balancer, etc.<br>>><br>>><br>>= ;> On Thu, Aug 1, 2013 at 3:14 AM, <<a ymailto=3D"mailto:kevin@= rabbitdesign.co.uk" href=3D"mailto:[email protected]">kevin@rabbitde= sign.co.uk</a>> wrote:<br>>>> I know at least one of you will k= now the answer to this frequently asked<br>>>> question, so here I go....<br>>= ;>><br>>>> I=E2=80=99m getting a whole host of errors when r= unning log scripts on my <br>>>> server.<br>>>> There=E2= =80=99s a piece of code I really need to get into production, but keeps<br>= >>> failing with the good old :<br>>>><br>>>> ti= meout =E2=80=93 45 seconds<br>>>> Connection reset by peer: mod_fc= gid: error reading data from FastCGI <br>>>> server<br>>>>= ; mod_fcgid: ap_pass_brigade failed in handle_request_ipc function<br>>&= gt;><br>>>> ...etc<br>>>><br>>>> As I=E2=80= =99m not sure exactly what the problem is here =E2=80=93 I can=E2=80=99t se= em to fix <br>>>> it.<br>>>><br>>>> I=E2=80=99m = using a VPS and overriding the subdomain in the vhost.conf file with <br>&g= t;>> the<br>>>> following:<br>>>><br>>>> &= lt;IfModule mod_fcgid.c><br>>>> AddHandler fcgid-script .fcgi<br>>>&= gt; FcgidBusyTimeout 3600<br>>>> FcgidProcessLifeTime 3600<br>>= >> FcgidIOTimeout 3600<br>>>> </IfModule><br>>>&= gt;<br>>>> It certainly isn=E2=80=99t taking an hour to fail.<br>&= gt;>><br>>>> I have made corresponding changes to the PHP.IN= I file so that.<br>>>><br>>>> max_execution_time =3D 600<= br>>>> max_input_time =3D 600<br>>>> memory_limit =3D 512= M<br>>>><br>>>> After the above my process still fails :<= br>>>><br>>>> Connection reset by peer: mod_fcgid: error = reading data from FastCGI <br>>>> server<br>>>> mod_fcgid= : ap_pass_brigade failed in handle_request_ipc function<br>>>><br>= >>> Works fine when running as mod_php<br>>>><br>>>= > _______________________________________________<br>>>> FastCGI-developers mailing list<br>>>> <a ymailto=3D"mailto:FastC= [email protected]" href=3D"mailto:FastCGI-developers@mailma= n.fastcgi.com">FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org</a><br>>>> <= a href=3D"http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers" t= arget=3D"_blank">http://mailman.fastcgi.com/mailman/listinfo/fastcgi-develo= pers</a><br>>>><br>>><br>>><br>>><br>>> --= <br>>> <a href=3D"http://xkcd.com/1156/" target=3D"_blank">http://xk= cd.com/1156/</a><br>>> ______________________________________________= _<br>>> FastCGI-developers mailing list<br>>> <a ymailto=3D"mai= lto:FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org" href=3D"mailto:FastCGI-develope= [email protected]">FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org</a><br>>&= gt; <a href=3D"http://mailman.fastcgi.com/mailman/listinfo/fastcgi-develope= rs" target=3D"_blank">http://mailman.fastcgi.com/mailman/listinfo/fastcgi-deve= lopers</a><br>><br>> _______________________________________________<= br>> FastCGI-developers mailing list<br>> <a ymailto=3D"mailto:FastCG= [email protected]" href=3D"mailto:FastCGI-developers@mailman= .fastcgi.com">FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org</a><br>> <a href=3D= "http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers" target=3D"= _blank">http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers </a>= <br><br>_______________________________________________<br>FastCGI-develope= rs mailing list<br><a ymailto=3D"mailto:[email protected]= com" href=3D"mailto:FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org">FastCGI-develop= [email protected]</a><br><a href=3D"http://mailman.fastcgi.com/mailma= n/listinfo/fastcgi-developers" target=3D"_blank">http://mailman.fastcgi.com= /mailman/listinfo/fastcgi-developers</a><br><br><br></div> </div> </div> </blockquote></div> </div></body></html> ---1109850712-991544138-1375517887=:71865-- --===============3920115817166815373== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ FastCGI-developers mailing list FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers --===============3920115817166815373==--