502 Bad Gateway when requesting gitlab
Created by: jtherin
I've installed Gitlab CE on a fresh Ubuntu 14.04 via repository without error. But when I access to gitlab, I get back a 502 Bad Gateway.
tail /var/log/gitlab/nginx/gitlab_error.log : 2015/12/29 20:18:59 [crit] 4331#0: *1 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (13: Permission denied) while connecting to upstream, client: XX.XX.XX.XX, server: YY.YY.YY.YY, request: "GET / HTTP/1.1", upstream: "http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/", host: "YY.YY.YY.YY"
ls -al /var/opt/gitlab/gitlab-workhorse/socket srwxr-xr-x 1 git git 0 Dec 29 20:18 /var/opt/gitlab/gitlab-workhorse/socket if I change chmod to o+w, gitlab is now working (poor solution).
Any idea?
Best regards.