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

安装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.

答案1

我遇到了同样的问题。在错误日志文件 (log/unicorn.stderr.log) 中,我发现了问题。我的问题是文件 (config/unicorn.rb) 中已经使用的端口问题,我更改了:listen "localhost: 8081"默认情况下为 8080

相关内容