Passenger starting app using wrong Ruby interpreter

333 views
Skip to first unread message

Cameron Pope

unread,
Mar 11, 2014, 2:26:00 PM3/11/14
to phusion-...@googlegroups.com
Hello -

I am trying to get an Rails application up and running with Passenger Enterprise 4.0.37 + Apache 2.4.7, and I am running into an error where Passenger is using the wrong Ruby interpreter to start the Rails app.

This is the passenger configuration section of the virtual host:

  PassengerRuby /opt/app/jruby/bin/jruby
  PassengerSpawnMethod direct
  PassengerPoolIdleTime 0
  PassengerMinInstances 1
  PassengerMaxInstances 1
  PassengerConcurrencyModel thread

This overrides the Ruby version that is specified in the Apache configuration itself:

<IfModule mod_passenger.c>
  PassengerRoot /opt/app/passenger
  PassengerDefaultRuby /opt/app/ruby/bin/ruby
  PassengerSpawnMethod direct
</IfModule>

I've attached a screenshot of the error showing it's trying to launch the app with Apache's default interpreter instead of the one specified in the virtual host configuration. I feel like there's something obvious that I must be doing wrong, but I'm at a loss.

Thank you,
Cameron


Web_application_could_not_be_started.png

Hongli Lai

unread,
Mar 11, 2014, 2:51:02 PM3/11/14
to phusion-passenger
Phusion Passenger loads environment variables from your bashrc. If you
set RUBYLIB and related environment variables in your bashrc then they
will be used. Try disabling PassengerLoadShellEnvvars.
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phusion-passenger/d3158199-3bbe-412c-b5cc-9c94f4aedead%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Phusion | Web Application deployment, scaling, and monitoring solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages