Upstream time out

Maxim Dounin mdounin at mdounin.ru
Thu Nov 3 16:58:42 UTC 2011


Hello!

On Thu, Nov 03, 2011 at 04:29:45PM +0100, Roger Gue wrote:

> I am using NGINX 1.0.4 on Redhat Linux 5 and I am having the error
> message: 504 Gateway Time out NGINX 1.0.4
> 
> HERE IS THE DETAIL OF MY ERROR.LOG FILE;
> 
> 2011/11/03 09:05:11 [error] 22348#0: *898 upstream timed out (110
> Connection timed out) while reading response header from upstream,
> client:172.16.19.180, server: mcb-http-t.jlg.com, request: "POST
> /ole/findshipto.jsp HTTP/1.1", upstream:
> "http://172.21.68:80/ole/findshipto.jsp", host: "mcb-htp-t.jlg.com",
> referrer: :https://mcb-http-t.jlg.com/ole/findshipto.jsp"

[...]

> proxy_read_timeout      300;

The error suggests you backend doesn't handle requests properly/in 
time.  If it's expected that request may take longer than 300 
seconds to complete - you may want to tune proxy_read_timeout.  If 
not - your backend is probably overloaded or not working at all, 
and you may want to fix it or add more backends.

Maxim Dounin



More information about the nginx mailing list