Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nginx 504 Gateway Time-out

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
like image 292
ben Avatar asked May 21 '11 16:05

ben


1 Answers

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

like image 84
Glenn Snyder Avatar answered Sep 24 '22 22:09

Glenn Snyder