我正在升级我的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.
知道如何解决这个问题吗?
答案 0 :(得分:1)
我通过删除所有已安装的依赖项修复了它:
$ 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