Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve "Could not find i18n-0.6.5 in any of the sources (Bundler::GemNotFound)" AWS deploy

I am trying to deploy my application using AWS Elastic Beanstalk, but i get this error:

It looks like Bundler could not find a gem. This is probably because your
application is being run under a different environment than it's supposed to.
Please check the following:

* Is this app supposed to be run as the `webapp` user?
* Is this app being run on the correct Ruby interpreter? Below you will
see which Ruby interpreter Phusion Passenger attempted to use. If you 
are using RVM, please also check whether the correct gemset is being used.
 -------- The exception is as follows: -------
Could not find i18n-0.6.5 in any of the sources (Bundler::GemNotFound)
/usr/share/ruby/1.9/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize'
/usr/share/ruby/1.9/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!'
/usr/share/ruby/1.9/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize'
/usr/share/ruby/1.9/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
/usr/share/ruby/1.9/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
/usr/share/ruby/1.9/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
/usr/share/ruby/1.9/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
/usr/share/ruby/1.9/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
/usr/share/ruby/1.9/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
/usr/share/ruby/1.9/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `<top (required)>'
/usr/share/rubygems1.9/rubygems/custom_require.rb:60:in `require'
/usr/share/rubygems1.9/rubygems/custom_require.rb:60:in `rescue in require'
/usr/share/rubygems1.9/rubygems/custom_require.rb:35:in `require'
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code'
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler'
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/lib/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code'
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/helper-scripts/rack-preloader.rb:96:in `preload_app'
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/helper-scripts/rack-preloader.rb:150:in `<module:App>'
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-4.0.20/helper-scripts/rack-preloader.rb:28:in `<main>'

I've tried bundle install --path vendor/cache, bundle package and committed Gemfile and Gemfile.lock.

Any help would be appreciated.

like image 903
torresomar Avatar asked Dec 15 '13 21:12

torresomar


2 Answers

The problem was solved using the following:

 bundle pack
 bundle install --path vendor/cache

I got the answer from this : Installing Gems with Bundler == Big problem

Hope it helps someone with the same issue.

like image 139
torresomar Avatar answered Oct 05 '22 12:10

torresomar


have you tried

bundle update i18n

verify the version in Gemfile.lock

cat Gemfile.lock | grep i18n

commit the Gemfile.lock and redeploy

like image 28
house9 Avatar answered Oct 05 '22 11:10

house9