Project

General

Profile

After updating: Could not find rake-10.0.4 in any of the sources (Bundler::GemNotFound)

Added by Marco Behnke almost 11 years ago

Hi, I 've already browsed the web and tried every solution on that topic but it seems I am stuck.

After upgrading nearly everything around ruby, rake, gems and stuff, I did not manage to get my redmine up and working. As I am not into ruby but only a redmine user, I don't get the meanings of all the error messages.

This is what redmine says in the browser

Could not find rake-10.0.4 in any of the sources (Bundler::GemNotFound)
  /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:90:in `block in materialize'
  /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:83:in `map!'
  /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb:83:in `materialize'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:127:in `specs'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:172:in `specs_for'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:161:in `requested_specs'
  /usr/lib/ruby/vendor_ruby/bundler/environment.rb:23:in `requested_specs'
  /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:11:in `setup'
  /usr/lib/ruby/vendor_ruby/bundler.rb:107:in `setup'
  /usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `<top (required)>'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/share/redmine-1.2/config/boot.rb:6:in `<top (required)>'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/share/redmine-1.2/config/application.rb:1:in `<top (required)>'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/share/redmine-1.2/config/environment.rb:2:in `<top (required)>'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /var/lib/gems/1.9.1/gems/passenger-4.0.0.rc6/helper-scripts/classic-rails-preloader.rb:69:in `preload_app'
  /var/lib/gems/1.9.1/gems/passenger-4.0.0.rc6/helper-scripts/classic-rails-preloader.rb:156:in `<module:App>'
  /var/lib/gems/1.9.1/gems/passenger-4.0.0.rc6/helper-scripts/classic-rails-preloader.rb:6:in `<module:PhusionPassenger>'
  /var/lib/gems/1.9.1/gems/passenger-4.0.0.rc6/helper-scripts/classic-rails-preloader.rb:5:in `<main>'

What more information can I supply for you to help me out of this situation? I am really desperate trying to get my system up and running for 2 weeks now.

root@vs367:/var/www/redmine-1.2# which rake
/usr/local/rvm/gems/ruby-1.9.2-p320/bin/rake
root@vs367:/var/www/redmine-1.2# rake --version
rake, version 10.0.4
root@vs367:/var/www/redmine-1.2# svn info
Path: .
URL: http://redmine.rubyforge.org/svn/branches/2.3-stable/public
Repository Root: http://redmine.rubyforge.org/svn
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 11903
Node Kind: directory
Schedule: normal
Last Changed Author: jplang
Last Changed Rev: 11751
Last Changed Date: 2013-05-01 14:53:10 +0200 (Wed, 01 May 2013)

Replies (6)

RE: After updating: Could not find rake-10.0.4 in any of the sources (Bundler::GemNotFound) - Added by Marco Behnke almost 11 years ago

Nobody who can point me in the right direction? I really need to get access to my data.

RE: After updating: Could not find rake-10.0.4 in any of the sources (Bundler::GemNotFound) - Added by Mischa The Evil almost 11 years ago

Marco,

The error means that rake is not available. It seems like you have a configuration problem with passenger and rvm.

The output of which rake above shows that rake 10.0.4 is installed for ruby 1.9.2-p320. OTOH, in redmine-broken.txt it is shown that passenger is not using the previously mentioned rvm ruby. It even looks like it is trying to use your system ruby.

I suggest:
  1. review the rubies you have installed (both rvm-managed and system rubies) and select which one you want passenger to use
  2. open a shell, rvm use the selected ruby (and optionally the preferred gemset), invoke passenger-config --ruby-command and modify your apache virtual host configuration, using the PassengerRuby directive, accordingly (see the passenger manual for more info about this)
  3. check if all needed gems (including rake) are installed in the selected and configured ruby (gem list) and if not, bundle install --without ... to get these installed (do all this while still rvm use -ing the wanted interpreter)
  4. restart passenger

RE: After updating: Could not find rake-10.0.4 in any of the sources (Bundler::GemNotFound) - Added by Marco Behnke almost 11 years ago

Thanks for showing me a stairway to heaven.
I'll try this out and come back with the results.

:) Marco

    (1-6/6)