After upgrade from 3.2.0 to 4.0.4 Could not find rake-12.3.3 in any of the sources (Bundler::GemNotFound)

Added by Knut Krüger about 3 years ago

There are a lot oft similar questions but no answer was working for me .

Could not find rake-12.3.3 in any of the sources (Bundler::GemNotFound)

  /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:92:in `block in materialize'
  /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:85:in `map!'
  /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:85:in `materialize'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:132:in `specs'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:177:in `specs_for'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:166:in `requested_specs'
  /usr/lib/ruby/vendor_ruby/bundler/environment.rb:18:in `requested_specs'
  /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:13:in `setup'
  /usr/lib/ruby/vendor_ruby/bundler.rb:121:in `setup'
  /usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `<top (required)>'
  /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:263:in `block in run_load_path_setup_code'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:366:in `running_bundler'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:261:in `run_load_path_setup_code'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `<module:App>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'

Error ID
    a59f78da
bundle update rake
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
Fetching gem metadata from https://rubygems.org/.............
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.3.3

....

Bundler attempted to update rake but its version stayed the same
Bundle updated!