I´m trying to run my Ruby on Rails project on my webserver, I´ve got this message from passenger:
Error message:
Could not find rake-0.9.2.2 in any of the sources (Bundler::GemNotFound)
this happens when I´m trying install budle in SSH.
passenger@web2:/var/www/clients/client11/web100/web$ bundle install .bundle
/home/passenger/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/settings.rb:101:in `initialize': Permission denied - /var/www/clients/client11/web100/web/.bundle/config (Errno::EACCES)
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/settings.rb:101:in `open'
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/settings.rb:101:in `set_key'
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/settings.rb:15:in `[]='
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/cli.rb:211:in `install'
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in `run'
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in `start'
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/bin/bundle:13:in `<top (required)>'
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/bin/bundle:19:in `load'
from /home/passenger/.rvm/gems/ruby-1.9.3-p0@global/bin/bundle:19:in `<main>'
or when i try
passenger@web2:/var/www/clients/client11/web100/web$ bundle install
Fetching source index for https://rubygems.org/
Errno::EACCES: Permission denied - /var/www/clients/client11/web100/web/bundler/ruby/1.9.1/cache
An error occured while installing rake (0.9.2.2), and Bundler cannot continue.
Make sure that `gem install rake -v '0.9.2.2'` succeeds before bundling.
but web is coded in ruby1.9.3 i tried install rake manually as suggested
passenger@web2:/var/www/clients/client11/web100/web$ gem install rake -v '0.9.2.2'
Fetching: rake-0.9.2.2.gem (100%)
Successfully installed rake-0.9.2.2
1 gem installed
Installing ri documentation for rake-0.9.2.2...
Installing RDoc documentation for rake-0.9.2.2...
passenger@web2:/var/www/clients/client11/web100/web$ bundle install Fetching source index for https://rubygems.org/
Errno::EACCES: Permission denied - /var/www/clients/client11/web100/web/bundler/ruby/1.9.1/cache
An error occured while installing rake (0.9.2.2), and Bundler cannot continue.
Make sure that `gem install rake -v '0.9.2.2'` succeeds before bundling.
Install BundlerSelect Tools | Bundler | Install Bundler from the main menu. Press Ctrl twice and execute the gem install bundler command in the invoked popup. Open the RubyMine terminal emulator and execute the gem install bundler command.
In addition, the user deploying the application may not have permission to install gems to the system, or the web server may not have permission to read them. As a result, bundle install --deployment installs gems to the vendor/bundle directory in the application. This may be overridden using the --path option.
It seems you have wrong BUNDLE_PATH value.
Check this article, may be it'll help you: http://blog.ninjahideout.com/posts/the-path-to-better-rvm-and-passenger-integration
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