Gem 已安装但不可用

Gem installed but unavailable

我正在升级我的 Gitlab 安装,但有一个问题:迁移失败,因为它缺少依赖项。哪位看装了。真奇怪。

$ sudo -u git -H bundle install --without postgres development test --deployment
Using timfel-krb5-auth 0.8.3
# ...
Using vmstat 2.3.0
Using webpack-rails 0.9.9
Using wikicloth 0.8.1
Bundle complete! 187 Gemfile dependencies, 266 gems now installed.
Gems in the groups postgres, development and test were not installed.
Bundled gems are installed into `./vendor/bundle`

似乎安装了 timfel-krb5-auth。但这里是迁移的输出:

$ sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
Could not find timfel-krb5-auth-0.8.3 in any of the sources
Run `bundle install` to install missing gems.

知道如何解决这个问题吗?

我通过删除所有已安装的依赖项来修复它:

$ rm -rf ./vendor ./.bundle/

然后重新安装:

$ sudo -u git -H bundle install --without postgres development test --deployment

最后,由于错误的 Gemfile,我遇到了错误。我在这里找到了解决方案:https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11787/diffs