使用bundle运行gitlab服务器:找不到命令错误

时间:2014-03-06 02:42:46

标签: gitlab

我不知道发生了什么

sudo service gitlab start

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

1 个答案:

答案 0 :(得分:2)

目前此问题已在issue 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现在包括this comment

rvmsudo -u git bundle exec unicorn_rails -c config/unicorn.rb -E production -D
  

我在阅读this guide后解决了这个问题   Gitlab服务按预期执行......

仍然不够,使用GitLab 6.7.2


这个问题现在包括来自Terry Wang的消息:

  

升级到6.8.x后,我遇到了完全相同的问题。后来我发现它是init脚本。

     

Ruby通过rbenv + ruby-build安装,看起来像gitlab init脚本无法

     

解决方法

  1. 在gitlab init脚本中将$HOME/.rbenv/shims添加到PATH
  2. 或者只是在/usr/local/bin(或任何适当的话)中创建一个符号链接,如下所示,而不会改变任何内容

    苏格兰 ln -s $(捆绑)/ usr / local / bin

  3.   

    希望rbenv支持很快就会添加。


    亚历山大·亚当在五月补充说:

      

    我有同样的问题   但在我的情况下,我使用本地rbenv-installation作为gitlab用户,因此我必须添加PATH=/home/$app_user/.rbenv/bin:/home/$app_user/.rbenv/shims:$PATH,以便init脚本将使用rbenv-bins

相关问题