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

Closed
FooBarWidget opened this Issue May 29, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@FooBarWidget
Member

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: https://github.com/phusion/passenger/blob/master/lib/phusion_passenger/platform_info/ruby.rb#L220 https://github.com/phusion/passenger/blob/master/lib/phusion_passenger/platform_info/ruby.rb#L53 Steps to reproduce the problem:

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

    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;
    }

~/a1/config.ru:

    require './app'
    run Sinatra::Application

~/a1/app.rb:

    require 'sinatra'
    get '/' do
        "Hello World!"
    end
  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: http://stackoverflow.com/questions/20025158/your-rvm-wrapper-scripts-are-too-old-and-mixed-mode-install

Attachment: error.log

Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=1022

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