Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Ubuntu server (10.04) with nginx, and Passenger. I've installed RVM on it, and I have a global gemset with Passenger 3.02 installed. My application is within another gemset which has rails, etc installed. When I configure nginx to serve the application I get an error saying that Bundler cannot find the gem.

Could not find abstract-1.0.0 in any of the sources (Bundler::GemNotFound)

Running rvm info I see the following:

PATH: "/home/richard/.rvm/gems/"
GEM_HOME:     "/home/richard/.rvm/gems/ree-1.8.7-2010.02@richarddowden"
GEM_PATH:     "/home/richard/.rvm/gems/ree-1.8.7-2010.02@richarddowden:/home/richard/.rvm/gems/ree-1.8.7-2010.02@global"
MY_RUBY_HOME: "/home/richard/.rvm/rubies/ree-1.8.7-2010.02"
IRBRC:        "/home/richard/.rvm/rubies/ree-1.8.7-2010.02/.irbrc"
RUBYOPT:      ""
gemset:       "richarddowden"

and in my (global) nginx conf file I have the following:

http {
passenger_root /home/richard/.rvm/gems/ree-1.8.7-2010.02@global/gems/passenger-3.0.2;
passenger_ruby /home/richard/.rvm/wrappers/ree-1.8.7-2010.02@global/ruby;

What daft thing am I doing wrong? Do I need to duplicate the passenger_ruby variable in the application's nginx config file?

Thanks, Richard

share|improve this question
up vote 2 down vote accepted

Palm -> Face...


Still hoping for tighter integration between these two in future releases though. Deployment with Rails (outside of Heroku) is still tricky for the newcomer.

share|improve this answer
I'm still shocked that there isn't a "ready to go" VM to stick on a vps and off you go, similiar to LAMP with cpanel – Abe Petrillo Feb 6 '12 at 13:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.