"Could not spawn process for application" - Phusion Passenger or Bundler issue?

2,880 views
Skip to first unread message

PhillyMost

unread,
Jun 9, 2016, 2:09:59 PM6/9/16
to ruby-bundler

Error ID: d75c4450

  Error details saved to: /tmp/passenger-error-K9M2hi.html

  Message from application: Your Ruby version is 1.9.3, but your Gemfile specified 2.3.1 (Bundler::RubyVersionMismatch)

  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:361:in `validate_ruby!'

  /usr/lib/ruby/vendor_ruby/bundler.rb:116:in `setup'

  /usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `<top (required)>'

  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'

  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'

  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem'

  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code'

  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler'

  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code'

  /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'

  /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `<module:App>'

  /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'

  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'



[ 2016-06-06 19:27:20.8586 7425/7f0220ebe700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The 

identifier of the error is d75c4450. Please see earlier logs for details about the error.



Ruby versions match but there seems to be some hang up that's keeping Phusion from loading the application. Does this look like a Phusion or Bundler issue? Nowhere in the app or server am I referencing version 1.9.3.


Stack:


Bundler version 1.12.5
Phusion Passenger 5.0.28
nginx version: nginx/1.10.0
Ubuntu 14.04: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
rbenv 1.0.0-21-g9fdce5d
Capistrano Version: 3.4.1 (Rake Version: 11.1.2)

Tim Moore

unread,
Jun 9, 2016, 3:58:09 PM6/9/16
to ruby-b...@googlegroups.com
This looks like Passenger hasn't been configured to use the Ruby you installed with rbenv, so it's defaulting to the system Ruby (which is 1.9.3).

You might need to edit your passenger_ruby configuration to point to the right version.


So I think Bundler is working as intended, catching the accidental misconfiguration and raising an error :)

Cheers,
Tim

--
You received this message because you are subscribed to the Google Groups "ruby-bundler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-bundler...@googlegroups.com.
To post to this group, send email to ruby-b...@googlegroups.com.
Visit this group at https://groups.google.com/group/ruby-bundler.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages