2014-03-06 45 views
2

我不知道发生了什么与束运行gitlab服务器:命令未找到错误

须藤服务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: [email protected]: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 
+0

自问题6019以来已发布了一些解决方法。请参阅我的[已编辑的答案](http://stackoverflow.com/a/22217289/6309) – VonC

回答

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


这个问题现在包括王卫消息:

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

通过rbenv + ruby-build安装红宝石,貌似gitlab初始化脚本无法

解决方法

  1. 在gitlab启动脚本添加$HOME/.rbenv/shims到PATH
  2. 或者干脆在/usr/local/bin(或其他适当的方式)创建一个符号链接,如下所示,不需要改变任何内容

    苏 - 蹦 LN -S $(这束)在/ usr/local/bin目录

希望rbenv的支持我们会尽快添加。


亚历山大·亚当月新增回:

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