RE: Apache translates 500 to 502 from haproxy

2011-09-19 Thread Sachin Shetty
achin -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Tuesday, September 20, 2011 10:31 AM To: Sachin Shetty Cc: 'Cassidy, Bryan'; haproxy@formilux.org; 'Amrit Jassal' Subject: Re: Apache translates 500 to 502 from haproxy Hi Sachin, On Mon, Sep 19, 2011 at

Re: Apache translates 500 to 502 from haproxy

2011-09-19 Thread Willy Tarreau
Hi Sachin, On Mon, Sep 19, 2011 at 01:47:28PM +0530, Sachin Shetty wrote: > Hey Willy, > > So we are now hit by the side effect of this fix i.e. disabling httpclose. > > Two problems: > > 1. Entries in the log are missing, I guess you already warned me about it. > Do you think if we disable ke

RE: Apache translates 500 to 502 from haproxy

2011-09-19 Thread Sachin Shetty
Message- From: Sachin Shetty [mailto:sshe...@egnyte.com] Sent: Wednesday, June 15, 2011 5:23 PM To: 'Willy Tarreau' Cc: 'Cassidy, Bryan'; 'haproxy@formilux.org' Subject: RE: Apache translates 500 to 502 from haproxy tried with option http-server-close instead of opti

RE: Apache translates 500 to 502 from haproxy

2011-06-15 Thread Sachin Shetty
: 'Cassidy, Bryan'; haproxy@formilux.org Subject: Re: Apache translates 500 to 502 from haproxy On Wed, Jun 15, 2011 at 12:11:58PM +0530, Sachin Shetty wrote: > I also think apache is the issue. I think we have a few mischievous modules > like mod_rpaf that I need to disable and test.

Re: Apache translates 500 to 502 from haproxy

2011-06-15 Thread Willy Tarreau
On Wed, Jun 15, 2011 at 01:09:13PM +0530, Sachin Shetty wrote: > Does disabling httpclose also mean that haproxy will not even log subsequent > requests on the same connection? Exactly. But that's only an issue if that ever happens. Willy

RE: Apache translates 500 to 502 from haproxy

2011-06-15 Thread Sachin Shetty
rmilux.org Subject: Re: Apache translates 500 to 502 from haproxy On Wed, Jun 15, 2011 at 12:11:58PM +0530, Sachin Shetty wrote: > I also think apache is the issue. I think we have a few mischievous modules > like mod_rpaf that I need to disable and test. I will keep you posted. > >

Re: Apache translates 500 to 502 from haproxy

2011-06-15 Thread Willy Tarreau
On Wed, Jun 15, 2011 at 12:11:58PM +0530, Sachin Shetty wrote: > I also think apache is the issue. I think we have a few mischievous modules > like mod_rpaf that I need to disable and test. I will keep you posted. > > For now do you see any severe problem if I disabe httpclose as a workaround? A

RE: Apache translates 500 to 502 from haproxy

2011-06-14 Thread Sachin Shetty
...@1wt.eu] Sent: Wednesday, June 15, 2011 11:08 AM To: Sachin Shetty Cc: 'Cassidy, Bryan'; haproxy@formilux.org Subject: Re: Apache translates 500 to 502 from haproxy On Tue, Jun 14, 2011 at 06:16:23PM +0530, Sachin Shetty wrote: > man > > We already had option httpclos

Re: Apache translates 500 to 502 from haproxy

2011-06-14 Thread Willy Tarreau
On Tue, Jun 14, 2011 at 06:16:23PM +0530, Sachin Shetty wrote: > man > > We already had option httpclose in our config and removing it fixed it. We > haven't tweaked any configs for a few months, I dont even know why we had > this in the first place :) > > I read through the documentation, I

RE: Apache translates 500 to 502 from haproxy

2011-06-14 Thread Sachin Shetty
t out? Thanks Sachin -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Tuesday, June 14, 2011 5:15 PM To: Sachin Shetty Cc: 'Cassidy, Bryan'; haproxy@formilux.org Subject: Re: Apache translates 500 to 502 from haproxy On Tue, Jun 14, 2011 at 04:27:00PM +0530, Sach

Re: Apache translates 500 to 502 from haproxy

2011-06-14 Thread Willy Tarreau
On Tue, Jun 14, 2011 at 04:27:00PM +0530, Sachin Shetty wrote: > Yeah, I understand. > > So what could we do? I am really stuck with this and not able to figure out > any workaround either. I really have no idea, because the server already replies before the data are sent. Maybe you could disable

RE: Apache translates 500 to 502 from haproxy

2011-06-14 Thread Sachin Shetty
rg Subject: Re: Apache translates 500 to 502 from haproxy On Tue, Jun 14, 2011 at 02:14:15PM +0530, Sachin Shetty wrote: > I looked at all the apache modules we have and haven't seen anything glaring > there. > > Attached tcpdump from cherrypy server when Apache is bypassing

Re: Apache translates 500 to 502 from haproxy

2011-06-14 Thread Willy Tarreau
On Tue, Jun 14, 2011 at 02:14:15PM +0530, Sachin Shetty wrote: > I looked at all the apache modules we have and haven't seen anything glaring > there. > > Attached tcpdump from cherrypy server when Apache is bypassing haproxy and > forwarding to cherrypy directly. Obviously cherrypy does it in ord

Re: Apache translates 500 to 502 from haproxy

2011-06-14 Thread Willy Tarreau
On Tue, Jun 14, 2011 at 01:09:12PM +0530, Sachin Shetty wrote: > here is the tcp dump containing that precise request: > > tcpdump -s0 -npi lo port 9910 -w trace1.cap There is nothing abnormal there, the response was complete and not truncated. The connection was eventually closed before all of t

Re: Apache translates 500 to 502 from haproxy

2011-06-13 Thread Willy Tarreau
On Tue, Jun 14, 2011 at 12:22:03PM +0530, Sachin Shetty wrote: > Hey Willy, > > tcpdump would be fine? Yes, for instance : tcpdump -s0 -npi eth0 port 80 -w trace1.cap Please note that -s0 is very important otherwise packets will be truncated. Regards, Willy

RE: Apache translates 500 to 502 from haproxy

2011-06-13 Thread Sachin Shetty
Hey Willy, tcpdump would be fine? Thanks Sachin -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Tuesday, June 14, 2011 12:14 PM To: Sachin Shetty Cc: 'Cassidy, Bryan'; haproxy@formilux.org Subject: Re: Apache translates 500 to 502 from haproxy On Tue, Jun 1

Re: Apache translates 500 to 502 from haproxy

2011-06-13 Thread Willy Tarreau
On Tue, Jun 14, 2011 at 11:25:19AM +0530, Sachin Shetty wrote: > Hey Willy, > > We have 1.4.11 - so how do we use the workaround - This is already in prod > and I need to work around it before we can get to the root cause. The workaround is part of the code, so you're hitting a different issue I

RE: Apache translates 500 to 502 from haproxy

2011-06-13 Thread Sachin Shetty
Tarreau [mailto:w...@1wt.eu] Sent: Tuesday, June 14, 2011 11:03 AM To: Sachin Shetty Cc: 'Cassidy, Bryan'; haproxy@formilux.org Subject: Re: Apache translates 500 to 502 from haproxy On Tue, Jun 14, 2011 at 12:28:55AM +0530, Sachin Shetty wrote: > Hey Bryan, > > I did check C

Re: Apache translates 500 to 502 from haproxy

2011-06-13 Thread Willy Tarreau
On Tue, Jun 14, 2011 at 12:28:55AM +0530, Sachin Shetty wrote: > Hey Bryan, > > I did check Cherrypy response by directly posting the same request via curl > and it looks ok to me. > > A few interesting things are: > 1. haproxy logs the response as 401 correctly - its apache which is calling >

RE: Apache translates 500 to 502 from haproxy

2011-06-13 Thread Sachin Shetty
is helps, Bryan -Original Message- From: Sachin Shetty [mailto:sshe...@egnyte.com] Sent: Monday, June 13, 2011 11:12 AM To: haproxy@formilux.org Subject: Re: Apache translates 500 to 502 from haproxy Willy Tarreau 1wt.eu> writes: > > On Fri, Jun 10, 2011 at 04:41:08PM +0530, Man

RE: Apache translates 500 to 502 from haproxy

2011-06-13 Thread Cassidy, Bryan
riginal Message- From: Sachin Shetty [mailto:sshe...@egnyte.com] Sent: Monday, June 13, 2011 11:12 AM To: haproxy@formilux.org Subject: Re: Apache translates 500 to 502 from haproxy Willy Tarreau 1wt.eu> writes: > > On Fri, Jun 10, 2011 at 04:41:08PM +0530, Manoj Kumar wrote:

Re: Apache translates 500 to 502 from haproxy

2011-06-13 Thread Sachin Shetty
Sachin Shetty writes: I see a similar thread here, no solution though https://forums.rightscale.com//showthread.php?t=210

Re: Apache translates 500 to 502 from haproxy

2011-06-13 Thread Sachin Shetty
Willy Tarreau 1wt.eu> writes: > > On Fri, Jun 10, 2011 at 04:41:08PM +0530, Manoj Kumar wrote: > > Hi, > > > > We are forwarding specific requests from apache to haproxy which > > interbally forwards it to a pool of cherry py servers. We have seen that > > certain requests end up in 500 in hapr

Re: Apache translates 500 to 502 from haproxy

2011-06-10 Thread Willy Tarreau
On Fri, Jun 10, 2011 at 04:41:08PM +0530, Manoj Kumar wrote: > Hi, > > We are forwarding specific requests from apache to haproxy which > interbally forwards it to a pool of cherry py servers. We have seen that > certain requests end up in 500 in haproxy and cherry py logs which is ok > and unders

Apache translates 500 to 502 from haproxy

2011-06-10 Thread Manoj Kumar
Hi, We are forwarding specific requests from apache to haproxy which interbally forwards it to a pool of cherry py servers. We have seen that certain requests end up in 500 in haproxy and cherry py logs which is ok and understood, but apache instead sends a 502 to the client. We see something lik