开发者

unicorn nginx upstream server not starting

开发者 https://www.devze.com 2023-02-27 09:37 出处:网络
My unicorn server was running fine, but has stopped working and I can\'t figure out how to get it restarted.

My unicorn server was running fine, but has stopped working and I can't figure out how to get it restarted.

2011/04/18 15:23:42 [error] 11907#0: *4 connect() to unix:/tmp/sockets/unicorn.sock failed (111: Connection refused) while connecting to upstream, client: 71.131.237.122, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/sockets/unicorn.sock:/", host: "tacitus"

my config files are at: https://gist.github.com/926006

any help as to what my开发者_C百科 troubleshooting options should be would be greatly appreciated.

best,

Tim


I had similar issue with nginx and unicorn setup.

Every day I've seen in nginx error.log this error:

failed (11: Resource temporarily unavailable) while connecting to upstream

The way I fixed it was to change unix socket to tcp socket.

so instead

upstream unicorn_app {
  server unix:/tmp/sockets/unicorn.sock fail_timeout=0;
}

now I'm using

upstream unicorn_app {
  server 127.0.0.1:3000 fail_timeout=0;
}

Hope it will help someone.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号