Re: Rails' 302 redirect is being converted to 502

From: Willy Tarreau <w#1wt.eu>
Date: Tue, 7 Oct 2008 22:34:54 +0200


Hi Alexey,

On Tue, Oct 07, 2008 at 12:02:22AM -0400, Alexey Kovyrin wrote:
> Ah, and one more thing. When I look in the logs for this particular
> request I see the following:
>
> 127.0.0.1:44934 [06/Oct/2008:21:44:12.170] scribd.com
> scribd.com/mongrel01 0/0/0/-1/10 502 820 - - SH-- 0/0/0/0/0 0/0 "GET
> /word/document_url/6417541 HTTP/1.0"
>
> Btw, nginx/lighttpd/apache reverse proxy features work like a charm
> for this URL...

The problem is typically that the response appeared as truncated. The server appeared to close the connection just after the "Status:" header. Could you run "tcpdump -s0 -nnvvpi eth0 tcp port 8000 -w bug.cap" during the problem and send me the resulting bug.cap ? Either the server really closed and we need to find why it closes early when talking to haproxy, or it did not close and we have to find why haproxy thought it did.

Regards,
Willy Received on 2008/10/07 22:34

This archive was generated by hypermail 2.2.0 : 2008/10/07 22:46 CEST