Is that the only error? Nothing else?
Which Phusion Passenger version by the way?
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Steel Fu, how does your PassengerRuby directive look like?
Joshua, does it happen to you with every request or only for some requests?
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Let's find out what's going on. Can you restart your web server and
type passenger-memory-stats? What do you see?
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
This error here tells you that Ruby cannot load RubyGems and so the
spawn server (which is written in Ruby) bails out. You need to fix
your RubyGems installation.
Do you get the same error with REE?
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To post to this group, send email to phusion-...@googlegroups.com.
To unsubscribe from this group, send email to phusion-passen...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en.
I'm guessing that your Ruby installation depends on some environment
variables that are set in the shell, but not in Apache/Nginx.
Apache/Nginx are usually started through a different mechanism and
doesn't inherit environment variables from the shell.
Let's compare the load paths between Ruby on the shell and Ruby as
started by the web server.
Can you type this in the shell and paste its output:
$ set
$ irb
>> require 'rubygems'
>> puts $LOAD_PATH
>> exit
Can you also modify
/home/web/.rvm/gems/ruby-1.9.2-preview3/gems/passenger-2.2.14/lib/phusion_passenger/utils.rb?
Just before "require 'rubygems'", insert:
puts ENV.each { |a, b| puts "#{a}=#{b}" }
puts $LOAD_PATH
Then start your web server. That will cause Passenger's environment
and load path to be printed to the web server error log. Can you paste
that?
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
"/home/web/.rvm/bin/passenger_ruby: 2: source: not found"
I think this means you didn't set RVM's passenger_ruby script
correctly. Can you re-run 'rvm <some ruby name> --passenger' to have
passenger_ruby regenerated and check whether the problem still occurs?
But does it fail for you with the exact same error? Emphasis on
*exact*; depending on the error message the reason why it fails can be
totally different.
Have you tried following the load path and environment check
instructions that I sent to Steel Fu?
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl