Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with 3.x ? #59

Open
LeDistordu opened this issue Apr 15, 2015 · 1 comment
Open

Compatibility with 3.x ? #59

LeDistordu opened this issue Apr 15, 2015 · 1 comment

Comments

@LeDistordu
Copy link

App 18984 stdout:
App 18984 stdout:
[ 2015-04-15 19:49:43.9170 15177/7f5bbdfc5700 App/Implementation.cpp:287 ]: Could not spawn process for application /var/redmine: An error occured while starting up the preloader.
Error ID: fabc71ed
Error details saved to: /tmp/passenger-error-tn5wJ2.html
Message from application:

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:

bundle install

If that didn't work, then maybe the problem is that your gems are installed to /var/www/.rvm/gems, while at the same time you set PassengerRuby (Apache) or passenger_ruby (Nginx) to /usr/local/rvm/gems/ruby-2.0.0-p643/wrappers/ruby. Because of the latter, RVM does not load gems from the home directory.

To make RVM load gems from the home directory, you need to set PassengerRuby/passenger_ruby to an RVM wrapper script inside the home directory:

  1. Login as www-data.
  2. Enable RVM mixed mode by running:
    rvm user gemsets
  3. Run this to find out what to set PassengerRuby/passenger_ruby to:
    /usr/local/rvm/gems/ruby-2.0.0-p643/wrappers/ruby \
    /usr/local/rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.6/bin/passenger-config --detect-ruby

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:

  1. Is this app supposed to be run as the www-data user?
  2. Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter Phusion Passenger attempted to use.
  3. Please check whether the correct RVM gemset is being used.
  4. Sometimes, RVM gemsets may be broken. Try resetting them.

-------- The exception is as follows: -------

Could not find webrat-0.7.3 in any of the sources (Bundler::GemNotFound)

  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.9.2/lib/bundler/spec_set.rb:92:in `block in materialize'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.9.2/lib/bundler/spec_set.rb:85:in `map!'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.9.2/lib/bundler/spec_set.rb:85:in `materialize'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.9.2/lib/bundler/definition.rb:132:in `specs'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.9.2/lib/bundler/definition.rb:177:in `specs_for'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.9.2/lib/bundler/definition.rb:166:in `requested_specs'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.9.2/lib/bundler/environment.rb:18:in `requested_specs'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.9.2/lib/bundler/runtime.rb:13:in `setup'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.9.2/lib/bundler.rb:122:in `setup'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.9.2/lib/bundler/setup.rb:18: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:128:in `require'
  /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
  /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:39:in `require'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.6/lib/phusion_passenger/loader_shared_helpers.rb:278:in `block in run_load_path_setup_code'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.6/lib/phusion_passenger/loader_shared_helpers.rb:381:in `running_bundler'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.6/lib/phusion_passenger/loader_shared_helpers.rb:276:in `run_load_path_setup_code'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.6/helper-scripts/rack-preloader.rb:99:in `preload_app'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.6/helper-scripts/rack-preloader.rb:157:in `<module:App>'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.6/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/local/rvm/gems/ruby-2.0.0-p643/gems/passenger-5.0.6/helper-scripts/rack-preloader.rb:28:in `<main>'

[ 2015-04-15 19:49:43.9209 15177/7f5bbffff700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 2-154195] Cannot checkout session because a spawning error occurred. The identifier of the error is fabc71ed. Please see earlier logs for details about the error.

@LeDistordu
Copy link
Author

After

gem install webrat -v '0.7.3'

No change, i'm noob with ruby / gem .... :o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant