GITLAB在debian 7中

时间:2014-06-11 14:08:28

标签: debian gitlab

重启服务器之后,我发现了这个错误:

看起来Bundler无法找到宝石。也许你没有安装这个应用程序需要的所有宝石。要安装宝石,请运行

捆绑安装

如果这不起作用,那么问题可能是由于您的应用程序在不同于预期的环境下运行而导致的。请检查以下

Is this app supposed to be run as the git user?
Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter Phusion Passenger attempted to use.

-------- The exception is as follows: -------
Could not find rake-10.3.1 in any of the sources (Bundler::GemNotFound)

  /usr/local/rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/spec_set.rb:92:in `block in materialize'
  /usr/local/rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/spec_set.rb:85:in `map!'
  /usr/local/rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/spec_set.rb:85:in `materialize'
  /usr/local/rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/definition.rb:133:in `specs'
  /usr/local/rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/definition.rb:178:in `specs_for'
  /usr/local/rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/definition.rb:167:in `requested_specs'
  /usr/local/rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/environment.rb:18:in `requested_specs'
  /usr/local/rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:13:in `setup'
  /usr/local/rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:120:in `setup'
  /usr/local/rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/setup.rb:17:in `<top (required)>'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
  /var/lib/gems/1.9.1/gems/passenger-4.0.44/lib/phusion_passenger/loader_shared_helpers.rb:248:in `block in run_load_path_setup_code'
  /var/lib/gems/1.9.1/gems/passenger-4.0.44/lib/phusion_passenger/loader_shared_helpers.rb:351:in `running_bundler'
  /var/lib/gems/1.9.1/gems/passenger-4.0.44/lib/phusion_passenger/loader_shared_helpers.rb:246:in `run_load_path_setup_code'
  /var/lib/gems/1.9.1/gems/passenger-4.0.44/helper-scripts/rack-preloader.rb:100:in `preload_app'
  /var/lib/gems/1.9.1/gems/passenger-4.0.44/helper-scripts/rack-preloader.rb:158:in `<module:App>'
  /var/lib/gems/1.9.1/gems/passenger-4.0.44/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /var/lib/gems/1.9.1/gems/passenger-4.0.44/helper-scripts/rack-preloader.rb:28:in `<main>'

我的问题是什么?。

1 个答案:

答案 0 :(得分:0)

您应该确保一些事项:

  1. 您是否将PassengerRuby指令设置为指向正确的Ruby版本?我看到你正在使用RVM,所以PassengerRuby应该指向一个RVM管理的Ruby。

  2. 您是否将生产模式中的宝石捆绑在Gitlab目录中?

    RAILS_ENV=production bundle install
    
  3. 我绝对不会在/ usr / bin下安装Ruby,如果是Ruby 1.9.1则完全没问题,因为它只需要运行Passenger。我假设您已经使用Debian软件包安装了Passenger?