Project

General

Profile

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

Added by Roland Giesler over 11 years ago

I installed a plug-in (redmine-people-plugin) which claimed it needed ruby >= 1.9.3, so I upgraded ruby to 1.9.3 on my Ubuntu 12.04 server.

I did the plugin installation:

bundle install --without development test
bundle exec rake redmine:plugins NAME=redmine_people RAILS_ENV=production

and it completed without errors, but now when I try to access Redmine I get this error:

Ruby on Rails application could not be started

Error message:
Could not find rake-10.1.0 in any of the sources (Bundler::GemNotFound)
Exception class:
PhusionPassenger::UnknownError
Application root:
/usr/share/redmine
Backtrace:
#    File    Line    Location
0    /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb    90    in `block in materialize'
1    /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb    83    in `map!'
2    /usr/lib/ruby/vendor_ruby/bundler/spec_set.rb    83    in `materialize'
3    /usr/lib/ruby/vendor_ruby/bundler/definition.rb    127    in `specs'
4    /usr/lib/ruby/vendor_ruby/bundler/definition.rb    172    in `specs_for'
5    /usr/lib/ruby/vendor_ruby/bundler/definition.rb    161    in `requested_specs'
6    /usr/lib/ruby/vendor_ruby/bundler/environment.rb    23    in `requested_specs'
7    /usr/lib/ruby/vendor_ruby/bundler/runtime.rb    11    in `setup'
8    /usr/lib/ruby/vendor_ruby/bundler.rb    107    in `setup'
9    /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb    326    in `prepare_app_process'
10    /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb    176    in `block in initialize_server'
11    /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb    572    in `report_app_init_status'
12    /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb    174    in `initialize_server'
13    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb    204    in `start_synchronously'
14    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb    180    in `start'
15    /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb    149    in `start'
16    /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb    219    in `block (2 levels) in spawn_rails_application'
17    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb    132    in `lookup_or_add'
18    /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb    214    in `block in spawn_rails_application'
19    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb    82    in `block in synchronize'
20        prelude>    10:in `synchronize'
21    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb    79    in `synchronize'
22    /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb    213    in `spawn_rails_application'
23    /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb    132    in `spawn_application'
24    /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb    275    in `handle_spawn_application'
25    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb    357    in `server_main_loop'
26    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb    206    in `start_synchronously'
27    /usr/share/phusion-passenger/helper-scripts/passenger-spawn-server    99    in `
'

Oh,

$ sudo bundle list rake
/var/lib/gems/1.8/gems/rake-10.1.0

How can I troubleshoot this?


Replies (2)

RE: Could not find rake-10.1.0 in any of the sources (Bundler::GemNotFound) - Added by Alex Notset over 11 years ago

I have same problem too.

I build new mod_passenger for apache and I see home page (/var/lib/gems/1.9.1/gems/passenger-3.0.18/bin/passenger-install-apache2-module, and install them to apache2). But after login trying, I have 500 Error:

Started POST "/login" for x.x.x.x at 2013-07-22 12:33:10 +0400
Processing by AccountController#login as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"aaMSdj1f0p4trN0PsWYQOB9Qf9ttiXS0xBfpaYApIvg=", "back_url"=>"http://example.com/", "username"=>"admin", "password"=>"[FILTERED]", "login"=>"Login »"}
  Current user: anonymous
Successful authentication for 'admin' from x.x.x.x at 2013-07-22 08:33:10 UTC
Redirected to http://example.com/
Completed 302 Found in 118ms (ActiveRecord: 46.0ms)

NoMethodError (undefined method `options' for {:user_id=>13, :ctime=>1374481990, :atime=>1374481990}:Hash):
  /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:329:in `commit_session'
  /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:226:in `context'
  /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:220:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/cookies.rb:341:in `call'
  /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:64:in `call'
  /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/callbacks.rb:28:in `block in call'
  /usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:405:in `_run__2504388697065258266__call__2542788570073683377__callbacks'
  /usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:405:in `__run_callback'
  /usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:385:in `_run_call_callbacks'
  /usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:81:in `run_callbacks'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/callbacks.rb:27:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/remote_ip.rb:31:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  /usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:32:in `call_app'
  /usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:16:in `block in call'
  /usr/lib/ruby/vendor_ruby/active_support/tagged_logging.rb:22:in `tagged'
  /usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:16:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/request_id.rb:22:in `call'
  /usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:21:in `call'
  /usr/lib/ruby/vendor_ruby/rack/runtime.rb:17:in `call'
  /usr/lib/ruby/vendor_ruby/active_support/cache/strategy/local_cache.rb:72:in `call'
  /usr/lib/ruby/vendor_ruby/rack/lock.rb:17:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/static.rb:63:in `call'
  rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
  rack-cache (1.2) lib/rack/cache/context.rb:143:in `pass'
  rack-cache (1.2) lib/rack/cache/context.rb:155:in `invalidate'
  rack-cache (1.2) lib/rack/cache/context.rb:71:in `call!'
  rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
  /usr/lib/ruby/vendor_ruby/rails/engine.rb:479:in `call'
  /usr/lib/ruby/vendor_ruby/rails/application.rb:223:in `call'
  /usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb:30:in `method_missing'
  passenger (4.0.10) lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
  passenger (4.0.10) lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
  passenger (4.0.10) lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
  passenger (4.0.10) lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'

UPD: I googled, this error from rack version 1.5.2, I downgrade my rack to 1.4.5 (Edited Gemfile: gem "rack", "1.4.5" and execute "bundle udpate"). This resolve my problem.
P.S. Sorry for my bad English...

    (1-2/2)