cherokee / webserver

Cherokee Web Server
GNU General Public License v2.0
562 stars 105 forks source link

504 Gateway error #502

Open danielniccoli opened 11 years ago

danielniccoli commented 11 years ago

Original author: plundis@areaindex.com (June 23, 2009 16:37:25)

What steps will reproduce the problem?

  1. Run Cherokee in reverse proxy mode
  2. Randomly see 504 Gateway error even though backend server seems fine and responsive.

What is the expected output? What do you see instead? Expect to see content from the backend server behind Cherokee.

What version of the product are you using? On what operating system? .99-19 Ubuntu 8.04

Please provide any additional information below. Few items to improve with the 504 Gateway error:

  1. Are we retrying the processing of the request more than once before throwing this error?
  2. Can we provide a user setting to provide a custom HTML screen should such error occur?

Original issue: http://code.google.com/p/cherokee/issues/detail?id=504

danielniccoli commented 11 years ago

From dait...@gmail.com on November 29, 2010 18:39:35 Okay, been doing some more tinkering and testing and whatnot.

The current conclusion is that the error must be in the second Django app, because if I point the second uwsgi source to the first app instead, it correctly displays that one.

So something must be different so that uwsgi cannot serve that one but the Django dev server can. Either way, it seems Cherokee is not at fault here, so thank you for the help.

danielniccoli commented 11 years ago

From tripo...@gmail.com on February 04, 2011 11:30:02 I always get "504 Gateway Timeout" in a php application that does sleep(35) when using https. It works fine when using http.

A php application that receives data works fine even if the upload takes longer than 35 seconds as long as no time consuming post processing is done.

Timeout is set to: server!timeout = 900

danielniccoli commented 11 years ago

From tripo...@gmail.com on February 04, 2011 11:30:49 Note: Tested with versions: 1.0.10 1.0.19 1.0.20

danielniccoli commented 11 years ago

From alan...@gmail.com on May 17, 2011 14:02:48 I think this is related: I have been getting "504 Gateway Timeout" messages since installing a new web server with Cherokee for the last 6 months, over several apt-distributed versions for Ubuntu 10.04. I fixed the timeouts each reboot by restarting iptables or re-loading/applying its configuration after Cherokee loads. After that, everything is fine. In the meantime I've just added a script that resets IPTables after Cherokee loads.

danielniccoli commented 11 years ago

From Wienc...@gmail.com on May 25, 2011 21:36:40 Is this fixed by "FIX: Better handling of unresponsive interpreters (sources)" in 1.2.98?

danielniccoli commented 11 years ago

From renich@woralelandia.com on September 14, 2011 08:02:11 I am getting 504 randomly with no error messages... my version is:

​ rpm -q cherokee

cherokee-1.2.99-1.fc15.x86_64