2011-04-18 10 views
12

유니콘 서버가 정상적으로 작동하지만 작동이 멈췄으므로 다시 시작하는 방법을 알 수 없습니다. https://gist.github.com/926006unicorn nginx 업스트림 서버가 시작되지 않음

어떤 도움을 크게 감상 할 수 무엇을 내 문제 해결 옵션이어야에 같이

 
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" 

내 설정 파일은 있습니다.

최고의

,

+0

같은 문제가 있습니다.이 오류의 원인을 찾을 수 있습니까? – sparrovv

+0

이 ServerFault 질문은 동일한 주제를 다루는 것 같습니다 : http://serverfault.com/questions/398972/need-to-increase-nginx-throughput-to-an-upstream-unix-socket-linux-kernel -tun – Tilo

+0

이 자습서를 보시기 바랍니다 http://haidrali.com/lets-debug-nginx-unicorn-errors/ –

답변

8

나는의 nginx와 유니콘 설정과 유사한 문제가 있었다.

내가 nginx를하는 error.log이 오류 검색된 매일 : 나는 TCP 소켓에 유닉스 소켓을 변경하는 것이었다 고정

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

방법. 그래서 대신

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

가 지금은

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

을 사용하고

은 사람을 도움이되기를 바랍니다.

+7

어떻게 해결 되었는가 보지 못합니다 ... – Tilo

+0

"unicorn_app"가있는 곳, 앱 자체의 이름일까요? 아니면 문자 그대로 "unicorn_app"을 넣으시겠습니까? –

관련 문제