nginx 504 Gateway Time-out

ben picture ben · May 21, 2011 · Viewed 30.7k times · Source

I'm running a rails3.0.7 project with phusion-passenger on nginx. While I was doing a ajax which took about 15 mins to process. It jump up an error with firebug which said "504 Gateway Time-out" after 10 mins from calling the ajax.

Could someon give me some idea of how I could find the problem.

Thanks, ben

environment

  • OS: mac osx 10.6.7
  • ruby: 1.9.2p180 installed with rvm
  • gem: 1.6.2
  • passenger 3.0.7
  • rails: 3.0.7
  • mysql: 5.5.10 installed with brew
  • nginx: 1.0.0 stand alone installed with passender

Answer

Glenn Snyder picture Glenn Snyder · Aug 11, 2011

That's an nginx timeout error. Look at the following article for some clues as to which parameter you need to adjust to avoid the timeout, if you really want to allow more than 10 minutes to complete the task.

How do I prevent a gateway timeout with nginx