Keep getting 502 Bad Gateway

Hi,

I have set up a drupal site using nginx. But after a few weeks it will
get 502 bad gateway error on the site. I’m still at the testing stage
and my site doesn’t receive any traffic but keeps going down. After I
reboot the server it became alright but after a few days the error will
come back. Any ideas what is wrong?

Error log file:
[error] 7563#0: *6 connect() failed (111: Connection refused) while
connecting to upstream, client: ip, server: mysite.com, request: “GET /
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “mysite.com

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,135848,135848#msg-135848

I persume you are using php-fpm, try using the static process manager
mode.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs