安装GitLab后,“gitlab-shell自检失败”

所以我安装了GitLab和nginx,现在我在访问它的时候出现了502 Bad Gateway错误。 我通过检查sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production ,发现我有一个错误,读取:

  Check GitLab API access: FAILED. code: 502 gitlab-shell self-check failed Try fixing it: Make sure GitLab is running; Check the gitlab-shell configuration file: sudo -u git -H editor /home/git/gitlab-shell/config.yml Please fix the error above and rerun the checks. 

我有同样的问题。 在错误日志文件(log / unicorn.stderr.log)中,我发现了这个问题。 我的是一个已经在文件(config / unicorn.rb)中使用的端口问题,我改变了:默认listen "localhost: 8081"在8080