重新启动gitlab时,我得到这个:
Starting both the GitLab Unicorn and Sidekiqbundler: command not found: unicorn_rails Install missing gem executables with `bundle install
我安装gitlab 6.3.0与ruby1.9.3在我6.3分钟6.3。
我试图从用户'git':
捆绑安装 – 无需开发testingpgsql – 不需要部署
我得到这个:
input您的密码以将捆绑的RubyGems安装到您的系统中:
这是要求sudo特权。 然后它为许多包(gem),并失败。
An error occurred while installing i18n (0.6.5), and Bundler cannot continue. Make sure that `gem install i18n -v '0.6.5'` succeeds before bundling.
任何帮助将不胜感激。 谢谢。
编辑1:
当我手动尝试安装任何gem(作为用户'混帐')我得到这个:(这里尝试与打包机)
gem install bundler错误:在执行gem时(Gem :: FilePermissionError)您没有/usr/local/rvm/gems/ruby-1.9.3-p448目录的写入权限。
目录的ls -l给我:
[git@jpvip gitlab]$ ls -la /usr/local/rvm/gems total 16 drwxrwsr-x 4 root rvm 4096 Nov 21 17:29 . drwxrwsr-x 24 root rvm 4096 Nov 21 17:21 .. drwxrwsr-x 2 root rvm 4096 Nov 21 17:29 cache drwxrwsr-x 8 root rvm 4096 Nov 21 17:29 ruby-1.9.3-p448 lrwxrwxrwx 1 root rvm 57 Nov 21 17:29 ruby-1.9.3-p448@global -> /usr/local/rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1
另外我检查用户'混帐'不是rvm的成员。 那么这是问题吗? 我从来没有改变文件/文件夹的所有权或组的文件。
我遇到过类似的错误bundler: command not found: unicorn_rails从Gitlab 5.4迁移到6.0之后。
问题是由于以前的Gitlab版本的捆绑器值caching –
root@2e7cc95677d2:/home/git/gitlab# sudo -u git -H bundle config Settings are listed in order of priority. The top value will be used. ... without Set for your local app (/home/git/gitlab/.bundle/config): "development:test:mysql:unicorn:aws" ...
我把它删除了
root@2e7cc95677d2:/home/git/gitlab# sudo -u git -H bundle config --delete without`
并再次执行bundle install (请注意,此string用于PostgreSQLconfiguration):
sudo -u git -H bundle install --without development test mysql --deployment