部署 Passenger + Nginx + Capistrano Could not find rake-12.3.1

dccmmtop · 2018年05月24日 · 最后由 dccmmtop 回复于 2018年05月25日 · 6248 次阅读
App 11000 output: Error: The application encountered the following error: Could not find rake-12.3.1 in any of the sources (Bundler::GemNotFound)
App 11000 output:     /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/spec_set.rb:91:in `block in materialize'
App 11000 output:     /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/spec_set.rb:85:in `map!'
App 11000 output:     /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/spec_set.rb:85:in `materialize'
App 11000 output:     /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:171:in `specs'
App 11000 output:     /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:238:in `specs_for'
App 11000 output:     /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:227:in `requested_specs'
App 11000 output:     /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:108:in `block in definition_method'
App 11000 output:     /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:20:in `setup'
App 11000 output:     /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler.rb:107:in `setup'
App 11000 output:     /var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/setup.rb:20:in `<top (required)>'
App 11000 output:     /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
App 11000 output:     /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
App 11000 output:     /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:363:in `activate_gem'
App 11000 output:     /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:221:in `block in run_load_path_setup_code'
App 11000 output:     /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:527:in `running_bundler'
App 11000 output:     /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:220:in `run_load_path_setup_code'
App 11000 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:91:in `preload_app'
App 11000 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:189:in `block in <module:App>'
App 11000 output:     /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:380:in `run_block_and_record_step_progress'
App 11000 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:188:in `<module:App>'
App 11000 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
App 11000 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'
[ E 2018-05-24 01:27:11.0846 10979/Te age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /home/deploy/letu_lab_web/current: The application encountered the following error: Could not find rake-12.3.1 in any of the sources (Bundler::GemNotFound)
  Error ID: 870feb42
  Error details saved to: /tmp/passenger-error-uaKtp7.html

总是说 Could not find rake-12.3.1,服务器配置如下: bundle version 1.16.2

gem version 2.7.3

ruby version 2.5.0

rails version 5.2.0

搞不清哪里有问题

你这报错的 ruby 版本是用的 2.3.0 吗?

fage108 回复

ruby 用的是 2.5.0。该怎么办?

IChou 回复

多谢,已经解决了。是 passenger 的配置问题。

dccmmtop 关闭了讨论。 05月25日 11:39
需要 登录 后方可回复, 如果你还没有账号请 注册新账号