I've installed on my server Ubuntu 9.04 x64 and nginx + passenger.
Everything work fine, but after a reboot if i try to reach my
application i get:
502 Error - Bad Gateway
With this logs:
2009/05/02 18:42:31 [error] 2567#0: *3 connect() to unix:/tmp/
passenger.2514/master/helper_server.sock failed (111: Connection
refused) while connecting to upstream, client: 127.0.0.1, server:
domain1.com, request: "GET /favicon.ico HTTP/1.1", upstream: "unix:/
tmp/passenger.2514/master/helper_server.sock:", host: "
domain1.com"
2009/05/02 18:49:57 [error] 2567#0: *12 connect() to unix:/tmp/
passenger.2514/master/helper_server.sock failed (111: Connection
refused) while connecting to upstream, client: 127.0.0.1, server:
domain1.com, request: "GET / HTTP/1.1", upstream: "unix:/tmp/passenger.
2514/master/helper_server.sock:", host: "
domain1.com"
2009/05/02 18:50:00 [error] 2567#0: *12 connect() to unix:/tmp/
passenger.2514/master/helper_server.sock failed (111: Connection
refused) while connecting to upstream, client: 127.0.0.1, server:
domain1.com, request: "GET /favicon.ico HTTP/1.1", upstream: "unix:/
tmp/passenger.2514/master/helper_server.sock:", host: "
domain1.com"
If i then manually restart nginx, the application work again,
perfectly, so the problem is that everytime i reboot i need to
manually restart nginx...
If can help my application isin't using dns... i'm testing if
everything work adding the domain on the host file.
thanks, Andrea