New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passenger doesn't work with rvm in mixed mode #1121

FooBarWidget opened this Issue May 29, 2014 · 0 comments


None yet
1 participant

FooBarWidget commented May 29, 2014

From yuri.kanivetsky on November 18, 2013 18:54:50

What I've figured out. Passenger doesn't consider ~/.rvm to be a viable option for searching for wrapper scripts, because it doesn't contain rubies subdirectory. And in mixed mode it doesn't contain one. As such it can't find wrapper scripts for rubies like ruby-1.9.3-p385@g1: Steps to reproduce the problem:

  1. Install nginx with passenger from repository.
  2. Install rvm in mixed mode.
  3. Create g1 gemset with sinatra gem installed.
  4. Set up test application:

    server {
        server_name a1;
        root   /home/yuri/a1/public;
        access_log   /var/log/nginx/a1-access.log;
        error_log   /var/log/nginx/a1-error.log;
        passenger_ruby   /home/yuri/.rvm/wrappers/ruby-1.9.3-p385@g1/ruby;
        passenger_enabled   on;


    require './app'
    run Sinatra::Application


    require 'sinatra'
    get '/' do
        "Hello World!"
  1. Test it.

    $ curl http://a1

Expected output:

Hello World!

Actual Output:

passenger's error page, see relevant parts of error.log in attached file

I'm running debian 6 (squeeze) and passenger-4.0.24. For more information please take a look at this stackoverflow question:

Attachment: error.log

Original issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment