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.
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.
have you tried
bundle update i18n
verify the version in Gemfile.lock
cat Gemfile.lock | grep i18n
commit the Gemfile.lock and redeploy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With