简体   繁体   中英

Powder and RVM Bundler : GemNotFound

I have a rails app running with rvm(1.21) and pow(0.2.0).

I recently had to uninstall/reinstall my app and surprisingly the app has now an error :

Your Rack app raised an exception when Pow tried to run it.
Bundler::GemNotFound: Could not find rake-10.0.4 in any of the sources
~/.rvm/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92
...

I googled and stackoverflowed it and did some actions :

but with all of these, I always have this error. I couldn't match any other solution to help me test it. Do you have any other idea to make it working ?

Versions :

  • RVM 1.21 then 1.9.2 then rvm get head (so 1.22)

  • Rails : 3.2.13

  • Ruby: 2.0.0 p247

  • powder : 0.2.0

I'm on a Mac OS X Lion (migrated from Snow Leopard)

Any idea ?


UPDATE :

source 'https://rubygems.org'

  gem 'rails', '3.2.13'
  gem 'pg', '0.15.1'
  gem 'jquery-rails', '2.2.1'
  gem 'rmagick', '2.13.2'
  gem 'carrierwave', '0.8.0'
  gem "localeapp", '0.6.9'
  gem 'globalize3', '0.3.0'
  gem 'strong_parameters', '0.2.0'
  gem 'devise', '2.2.4'
  gem 'devise_invitable', '~> 1.1.0'
  gem "therubyracer", "0.11.4"
  gem "jbuilder", "1.4.1"
  gem "angular-rails", "0.0.12"
  gem "jquery-ui-rails", "4.0.2"
  gem "font-awesome-rails", "3.1.1.2"
  gem "fog", "1.3.1"
  gem "underscore-rails", "1.4.4"
  gem "rake", "10.0.4"

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

group :assets do
   gem 'uglifier', '2.0.1'
end

group :test do
  gem 'mocha', '0.13.3', require: false
  gem 'factory_girl_rails', '4.2.1'
  gem 'minitest', '4.7.1'
  gem 'simplecov', '0.7.1', require: false
end

group :development do
  gem 'magic_encoding', '0.0.2'
  gem 'quiet_assets', '1.0.2'
end

Ok. We fixed the issue. The only solution we had was to drop DB, kill all pow and PG processes and restart all servers.

Seems there was a mess between what the server wanted and what the app proposed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM