Ruby Gems与Gitlab没有这样的文件来加载——rb-inotify

时间:2021-06-07 00:18:05

I am using Gitlab and I am trying to follow these instructions to upgrade my gitolite v2 to v3:

我正在使用gitolite v2升级到v3:

"If this issue occurs in 2.9.x you should reinstall gitolite.

如果这个问题发生在2.9岁。你应该重新安装吉托利特。

1) backup all repositories. Just copy /home/git/repositories/* elsewhere.

1)备份所有存储库。复制/home/git/repositories / *。

2) Install new gitolite. See https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md

2)安装新的gitolite。参见https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md

3) copy repositories back.

3)存储库副本。

4) sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_keys && sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos

4) sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_keys && && sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos

That's all.

这是所有。

That steps also related to users who wants to update gitolite v2 to v3"

这些步骤也与想要更新gitolite v2到v3的用户有关

My Gemfile and Gemfile.lock have rb-inotify in them as shown below:

我的Gemfile和Gemfile。锁中有如下所示的rb-inotify:

gitlabhq@build:~/gitlabhq$ grep notify Gemfile
gem 'rb-inotify', :require => linux_only('rb-inotify')
gitlabhq@build:~/gitlabhq$ grep notify Gemfile.lock
rb-inotify (0.8.8)
rb-inotify

I am trying to update my keys and repos using the following commands but I always get the error "no such file to load --rb-inotify"

我正在尝试使用以下命令更新我的键和repos,但是我总是会得到一个错误“没有这样的文件要加载——rb-inotify”

gitlabhq@geminibuild:~/gitlabhq$ sudo -u gitlabhq -H bundle exec rake gitlab:gitolite:update_keys
rake aborted!
no such file to load -- rb-inotify
(See full trace by running task with --trace)

I've tried to do a bundle install , and the list of 'Using " does not contain the rb-notify gem.

我尝试过进行捆绑安装,而“使用”列表不包含rb-notify gem。

I've tried to install the rb-inotify gem like so:

我试着像这样安装rb-inotify gem:

sudo -u gitlabhq gem install rb-inotify

I've wiped the Gemfile.lock file and then run:

我擦Gemfile。锁定文件,然后运行:

sudo -u gitlabhq bundle install

Still no luck.

仍然没有运气。

How can I get Gitlab to recognize and use rb-inotify. Thank you -

我如何让Gitlab识别和使用rb-inotify。谢谢你- - - - - -

2 个解决方案

#1


19  

Recognizing that this is a bit old, I thought I'd leave something for posterity. In order to make these calls work you simply need to append:

意识到这有点旧了,我想留给后代一些东西。为了使这些调用工作,您只需追加:

RAILS_ENV=production

RAILS_ENV =生产

to your command. This is listed in the trouble shooting guide under the "Gitlab" section.

你的命令。这列在“Gitlab”部分的故障排除指南中。

#2


5  

I seemed to have fixed it by running:

我似乎用跑步的方式解决了这个问题:

bundle install --without production
bundle install

#1


19  

Recognizing that this is a bit old, I thought I'd leave something for posterity. In order to make these calls work you simply need to append:

意识到这有点旧了,我想留给后代一些东西。为了使这些调用工作,您只需追加:

RAILS_ENV=production

RAILS_ENV =生产

to your command. This is listed in the trouble shooting guide under the "Gitlab" section.

你的命令。这列在“Gitlab”部分的故障排除指南中。

#2


5  

I seemed to have fixed it by running:

我似乎用跑步的方式解决了这个问题:

bundle install --without production
bundle install