Nginx error: connect() failed (111: Connection refused) while connecting to upstream
This morning I was faced with yet another 404 not found page when attempting to login to the Install Nginx on Ubuntu blog.
The logs revealed:
2012/02/15 17:17:33 [error] 13788#0: *5525 connect() failed (111: Connection refused) while connecting to upstream, client: 22.214.171.124, server: installnginxonubuntu.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "installnginxonubuntu.com"
This is not really an Nginx error. The problem is that the backend is not listening on port 9000 or its queue is filled up. I was unable to telnet to 127.0.0.1 9000. Restarting spawn-fcgi fixed this.
I’m not sure if this is a stability issue or configuration issue but will monitor the issue and post results.