gpt4 book ai didi

gitlab - 使用 bundle : command not found error 运行 gitlab 服务器

转载 作者:行者123 更新时间:2023-12-05 05:27:01 28 4
gpt4 key购买 nike

我不知道发生了什么

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

最佳答案

目前在 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

I've solved this issue after read this guide.
Gitlab service is executed as you expect...

GitLab 6.7.2 还不够


该期现在包括来自 Terry Wang 的消息:

I had exactly the same problem after upgrading to 6.8.x. Later on I figure out that it was the init script.

Ruby is installed via rbenv + ruby-build, looks like the gitlab init script is NOT able to

Workaround

  1. $HOME/.rbenv/shims 添加到 gitlab 初始化脚本的 PATH 中

  2. 或者简单地在 /usr/local/bin(或任何合适的)中为 bundle 创建一个符号链接(symbolic link),如下所示,而不更改任何内容

    su - gitln -s $(which bundle)/usr/local/bin

Hope rbenv support will be added soon.


Alexander Adam 在 5 月份补充道:

I have the same problem.
But in my case I used a local rbenv-installation for the gitlab user so I had to add PATH=/home/$app_user/.rbenv/bin:/home/$app_user/.rbenv/shims:$PATH so that the init-script will use the rbenv-bins.

关于gitlab - 使用 bundle : command not found error 运行 gitlab 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22213822/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com