So, I'm going a little mad trying to work out why I'm getting this error.
Probably serves me right for taking the Bitnami shortcut for installing Spree. I get the following error after trying to change the gemfile from gem 'spree', '2.0.1'
to gem 'spree', '2.0.2'
(or getting the latest stable version from github)
[agents/HelperAgent/RequestHandler.h:1888 ]: [Client 21] Cannot checkout session. An error occured while starting up the preloader.
Error page:
Could not find rake-10.0.4 in any of the sources (Bundler::GemNotFound)
<bitnami_install_dir>/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize'
...
<bitnami_install_dir>/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
...
<bitnami_install_dir>/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/lib/phusion_passenger/loader_shared_helpers.rb:212:in `run_load_path_setup_code'
...
<bitnami_install_dir>/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/helper-scripts/rack-preloader.rb:5:in `<main>'
I've deleted gemfile.lock
, re-run bundle install
and I can see that I have the correct version of rake installed (10.0.4). From researching on the web, I'm guessing that it's probably something to do with Passenger point to a different version of ruby to the one I'm trying to run (I'm using 1.9.3 and the stack trace is moaning about 1.9.1)
Unfortunately, I'm struggling to fix this.
I couldn't get passenger-config --ruby-command
to run, but I did find my passenger.conf
:
<bitnami_install_dir>\apache2\conf\bitnami\passenger.conf
I've been trying to change the following line:
PassengerRuby <bitnami_install_dir>/ruby/bin/ruby
but can't seem to find the right path (assuming I'm actually heading up the right path...).
I looked up my rvm env --path
=>
$ rvm env --path
/usr/local/rvm/environments/ruby-1.9.3-p194
Tried /usr/local/rvm/environments/ruby-1.9.3-p194
and /usr/local/rvm/environments/ruby-1.9.3-p194/ruby
but still no joy.
I've been staring at the screen too long, and it's starting to get late - would appreciate a nudge in the right direction if you can spot what I'm doing wrong.
gems/1.9.1
directory. – Insectivore'spree', '2.0.1'
worked. I did also trybundle update
- my bad for not mentioning it. My problem is not that it doesn't use the correct version of the spree gems, but passenger is using the wrong version of Ruby. – MieleInclude conf/bitnami/passenger.conf
in myhttpd.conf
– Miele