我不知道发生了什么
sudo 服务 gitlab 启动
Starting both the GitLab Unicorn and Sidekiqscript/web: line 21: bundle: command not found
......
查看我的系统信息
System information
System: Ubuntu 12.04
Current User: git
Using RVM: yes
RVM Version: 1.25.19
Ruby Version: 1.9.3p545
Gem Version: 2.2.2
Bundler Version:1.5.3
Rake Version: 10.1.1
GitLab information
Version: 6.6.4
Revision: 42e34ae
Directory: /home/git/gitlab
DB Adapter: postgresql
URL: http://localhost:1680
HTTP Clone URL: http://localhost:1680/some-project.git
SSH Clone URL: git@localhost:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.8.0
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
目前正在遵循这一点第6019期 https://github.com/gitlabhq/gitlabhq/issues/6019,目前还没有明确的解决办法。
它也会在重新启动时发生,服务器在以下情况后挂起并出现越来越多的点:
Shutting down both Unicorn and Sidekiq........
启动时,您可以看到:
Removing stale Sidekiq web server pid. This is most likely caused by the Sidekiq crashing the last time it ran.
问题 6019 现在包括这条评论 https://github.com/gitlabhq/gitlabhq/issues/6019#issuecomment-40658748:
rvmsudo -u git bundle exec unicorn_rails -c config/unicorn.rb -E production -D
阅读后我已经解决了这个问题本指南 http://blog.compunet.co.za/gitlab-installation-on-ubuntu-server-12-04/.
Gitlab 服务按照你的预期执行...
但仍然不够,使用 GitLab 6.7.2
该问题现在包括来自 Terry Wang 的消息:
升级到 6.8.x 后我遇到了完全相同的问题。后来我发现这是init脚本。
Ruby 是通过安装的rbenv
+ ruby-build
,看起来 gitlab init 脚本无法
解决方法
-
add $HOME/.rbenv/shims
到 gitlab init 脚本中的 PATH
-
或者简单地为捆绑创建一个符号链接/usr/local/bin
(或任何适当的)如下所示,无需更改任何内容
苏-git
ln -s $(哪个包) /usr/local/bin
Hope rbenv
很快就会添加支持。
亚历山大·亚当 (Alexander Adam) 在五月份补充道:
我也有同样的问题。
但就我而言,我使用了本地rbenv-installation
对于 gitlab 用户,所以我必须添加PATH=/home/$app_user/.rbenv/bin:/home/$app_user/.rbenv/shims:$PATH
这样初始化脚本将使用rbenv-bins
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)