Reputation: 31464
We are using Passenger locally on Mac OS X for development.
I switched to conservative spawn mode to try to debug a problem with the MongoDB ruby driver.
However, after I did this, Passenger can no longer find my gems. I get the application failed to start page with this message:
Missing these required gems: aws-s3 >= 0.6.2 ruby-units >= 1.1.3 mongo >= 0.15.1 You're running: ruby 1.8.6.111 at /opt/local/bin/ruby rubygems 1.3.5 at /Users/look/.gem/ruby/1.8, /opt/local/lib/ruby/gems/1.8 Run
rake gems:install
to install the missing gems.
I definitely have these gems installed in the gem paths mentioned, and the app works in the default spawn mode.
I found this thread with the same problem on the Passenger mailing list, but there was no resolution.
Any ideas?
Upvotes: 0
Views: 1191
Reputation: 11
In environment.rb, you have to specify the lib (I think because of the hyphen in the gem name):
config.gem "aws-s3", :lib => "aws/s3"
Upvotes: 1
Reputation: 41179
You may want to make sure the two modes are using the same ruby/rubygems installation. Perhaps you could print out, emit, or otherwise log your load paths, which are in the variable $:
(dollar colon) at some point above the gem initialization in environment.rb
Compare the output of that in the 2 modes to make sure they both include the same paths. If not, the issue is that conservative mode is picking up a different ruby/rubygems installation on your system.
Upvotes: 0