Getting 502 Bad Gateway when requesting gitlab
Created by: ghost
When I access gitlab, I get back a 502 error (Bad Gateway). The setup is as described in the install manual with nginx as a server in front of gitlab. In the gitlab_erorr.log I find the following info.
2012/09/21 23:42:29 [error] 19689#0: *5 connect() to unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket failed (111: Connection refused) while connecting to upstream, client: 213.49.87.113, server: gitlab.inceptum.eu, request: "GET / HTTP/1.1", upstream: "http://unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket:/", host: "gitlab.inceptum.eu:8080" 2012/09/21 23:42:31 [error] 19689#0: *5 connect() to unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket failed (111: Connection refused) while connecting to upstream, client: 213.49.87.113, server: gitlab.inceptum.eu, request: "GET / HTTP/1.1", upstream: "http://unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket:/", host: "gitlab.inceptum.eu:8080" 2012/09/21 23:42:37 [error] 19689#0: *5 connect() to unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket failed (111: Connection refused) while connecting to upstream, client: 213.49.87.113, server: gitlab.inceptum.eu, request: "GET / HTTP/1.1", upstream: "http://unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket:/", host: "gitlab.inceptum.eu:8080" 2012/09/21 23:42:45 [error] 19689#0: *5 connect() to unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket failed (111: Connection refused) while connecting to upstream, client: 213.49.87.113, server: gitlab.inceptum.eu, request: "GET / HTTP/1.1", upstream: "http://unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket:/", host: "gitlab.inceptum.eu:8080"
I have never worked with nginx or resque or gitlab before, so I have no idea on how I can fix this, definitely not permanently.
THanks in advance!