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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.