安装gitlab5.0出错


按照官方安装文档 https://github.com/gitlabhq/gitlabhq/...

执行到这一步

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

会出现以下错误:

Init script up-to-date? ... no
  Try fixing it:
  Redownload the init script
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  Please fix the error above and rerun the checks.

但是重新‘Install Init Script’后仍然存在这个错误,然后虽然service gitlab start成功,但gitlab还是不能用,查看netstat看不到在gitlab.yml里设置的端口,但gitlab进程存在。

----------------------------------------------
问题解决了:

  • 原来不能访问gitlab是因为nginx配置出错了。
  • 不用nginx也是可以的,不使用80端口(不使用unix socket), 同时 更改 unicorn.rb 和gitlab.ym里的端口号,之后直接以 IP:端口号 的形式访问即可

gitlab git

扭曲的信仰 11 years, 12 months ago

Your Answer