After successful attempt to update Redmine ( from 3.0.3 to 3.3.3 ) I tried to update Ruby version ( from 2.0.0 to 2.1.4 or 2.2.1 or 2.3.1 ) using rvm The commands that I used are :
After doing those steps successfully, I encounter below error
[ 2017-03-10 11:42:09.6397 1680/7f1db50ec700 App/Implementation.cpp:303 ]: Could not spawn process for application /srv/redmine: An error occured while starting up the preloader. Error ID: f1f723b1 Error details saved to: /tmp/passenger-error-NLN2oJ.html Message from application: <p>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:</p> <pre class="commands">bundle install</pre> <p>If that didn't work, then maybe the problem is that your gems are installed to <code>/var/www/.rvm/gems</code>, while at the same time you set <code>PassengerRuby</code> (Apache) or <code>passenger_ruby</code> (Nginx) to <code>/usr/local/rvm/wrappers/ruby-2.0.0-p643/ruby</code>. Because of the latter, RVM does not load gems from the home directory.</p> <p>To make RVM load gems from the home directory, you need to set <code>PassengerRuby</code>/<code>passenger_ruby</code> to an RVM wrapper script inside the home directory:</p> <ol> <li>Login as www-data.</li> <li>Enable RVM mixed mode by running: <pre class="commands">rvm user gemsets</pre></li> <li>Run this to find out what to set <code>PassengerRuby</code>/<code>passenger_ruby</code> to: <pre class="commands">/usr/local/rvm/gems/ruby-2.0.0-p643/wrappers/ruby \ /usr/bin/passenger-config --detect-ruby</pre></li> </ol> <p>If that didn't help either, then maybe your application is being run under a different environment than it's supposed to. Please check the following:</p> <ol> <li>Is this app supposed to be run as the <code>www-data</code> user?</li> <li>Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter Phusion Passenger attempted to use.</li> <li>Please check whether the correct RVM gemset is being used.</li> <li>Sometimes, RVM gemsets may be broken. <a href="https://github.com/phusion/passenger/wiki/Resetting-RVM-gemsets">Try resetting them.</a></li> </ol> <p>-------- The exception is as follows: -------</p> Could not find json-1.8.6 in any of the sources (Bundler::GemNotFound) <pre> /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.14.5/lib/bundler/spec_set.rb:87:in `block in materialize' /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.14.5/lib/bundler/spec_set.rb:80:in `map!' /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.14.5/lib/bundler/spec_set.rb:80:in `materialize' /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.14.5/lib/bundler/definition.rb:176:in `specs' /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.14.5/lib/bundler/definition.rb:235:in `specs_for' /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.14.5/lib/bundler/definition.rb:224:in `requested_specs' /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.14.5/lib/bundler/runtime.rb:118:in `block in definition_method' /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.14.5/lib/bundler/runtime.rb:19:in `setup' /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.14.5/lib/bundler.rb:100:in `setup' /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.14.5/lib/bundler/setup.rb:20:in `<top (required)>' /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require' /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:399:in `activate_gem' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:277:in `block in run_load_path_setup_code' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:404:in `running_bundler' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:276:in `run_load_path_setup_code' /usr/share/passenger/helper-scripts/rack-preloader.rb:99:in `preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:153:in `<module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'</pre> [ 2017-03-10 11:42:09.6570 1680/7f1db60ee700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 1-2] Cannot checkout session because a spawning error occurred.
I’m not too familiar with ruby & passenger but I think that my the passenger is still detecting ruby 2.0.0 as my main ruby installation ( even though rvm list already pointing into another ruby version )
Any help would be much appreciated :D
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.