4.0.1, multiple rubies (1.8.7 w/ rvm)

643 views
Skip to first unread message

Lele Forzani

unread,
May 7, 2013, 11:31:42 AM5/7/13
to phusion-...@googlegroups.com

Hello,
I am trying to use Passenger 4.0.1 to run a legacy rails 2.x application which wouldn't work with ruby > 1.8.7.
The host uses ruby 1.9.3 with nginx + passenger 4.0.1, applications using default ruby instance are all working fine.

what I did is to configure nginx with  the rvm path for the 1.8.7 ruby

    passenger_ruby /usr/local/rvm/bin/ruby-1.8.7-p371@helpdesk;

however, request will fail because:

[ 2013-05-07 17:14:39.9150 8240/7f1b5283f700 Pool2/Implementation.cpp:1163 ]: [App 8466 stderr] [ 2013-05-07 17:14:39.9149 8529/0x7f03d58dc130(Worker 1) request_handler/thread_handler.rb:180 ]: *** Passenger RequestHandler warning: someone tried to connect with an invalid connect password.


(there's a full initialization and request log attached)


Any idea of where to look?


passenger-log.txt

Hongli Lai

unread,
May 9, 2013, 4:31:33 AM5/9/13
to phusion-passenger
Can you set Passenger_log_level to 3, trigger the problem, and send the error_log again?




--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Lele Forzani

unread,
May 9, 2013, 9:10:13 AM5/9/13
to phusion-...@googlegroups.com


On Thursday, May 9, 2013 10:31:33 AM UTC+2, Hongli Lai wrote:
 
Can you set Passenger_log_level to 3, trigger the problem, and send the error_log again?

There it is. Hope I've managed to capture it all.

Thank you,
passenger-log3.txt

Scott Stambaugh

unread,
May 14, 2013, 4:30:53 PM5/14/13
to phusion-...@googlegroups.com
I'm also experiencing this error with 4.0.2 + apache + 1.9.3-p392 with one rails 2.3.16 app configured to run on 1.8.7-p358.
 
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p392/gems/passenger-4.0.2/libout/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p392/gems/passenger-4.0.2
PassengerDefaultRuby /usr/local/rvm/wrappers/ruby-1.9.3-p392/ruby
<VirtualHost *:*>
  <Location /myApp>
    PassengerRuby /usr/local/rvm/wrappers/ruby-1.8.7-p358/ruby
  </Location>
</VirtualHost>

Martijn Storck

unread,
May 15, 2013, 3:06:53 AM5/15/13
to phusion-...@googlegroups.com
Just to chime in.. I'm having the same issue on CentOS 6.4 (SELinux disabled), with Passenger 4.0.2 under Apache and Ruby 2.0.0p0 when trying to run a Rails 2 app on Ruby 1.8.7. Logs are identical to Lele's. The application starts fine when running it on WEBrick.

- Martijn

Op dinsdag 7 mei 2013 17:31:42 UTC+2 schreef Lele Forzani het volgende:

Hongli Lai

unread,
May 31, 2013, 8:22:59 AM5/31/13
to phusion-passenger
I noticed that you are both using Rails 2. Does this problem occur
with Rails 3 or Rack apps too?

Maximilian Herold

unread,
Jul 2, 2013, 9:31:12 AM7/2/13
to phusion-...@googlegroups.com
Hi,

I can confirm this behavior with rails 3 on ruby 1.8.7 (rails 3.1.12, apache, passenger 4.0.5 installed on ruby 1.9.3-p392). 

Same problem with a sinatra app on ruby 1.8.7.

Any ideas yet?

Thanks,
Max

Maximilian Herold

unread,
Jul 2, 2013, 10:12:28 AM7/2/13
to phusion-...@googlegroups.com
If it helps, it does work the other way around: If I install passenger on ruby 1.8.7, I have no problems running both 1.8.7 and 1.9.3 apps.

- Max

Hongli Lai

unread,
Jul 7, 2013, 4:13:27 PM7/7/13
to phusion-passenger
I think this is because you set the passenger_ruby/PassengerRuby directive wrong. For example in in Lele's configuration I see this:

passenger_ruby /usr/local/rvm/bin/ruby-1.8.7-p371@helpdesk;

But you're supposed to set passenger_ruby to the RVM *wrapper script*, not the raw binary. For example, the correct config would be:

passenger_ruby /usr/local/rvm/wrappers/ruby-1.8.7-p371@helpdesk/ruby;

There's an entire section in the manual devoted to finding out the correct passenger_ruby command when using RVM.



For more options, visit https://groups.google.com/groups/opt_out.
 
 

Massimo Pegoraro

unread,
Aug 2, 2013, 6:05:21 AM8/2/13
to phusion-...@googlegroups.com
Hi,

I'm experiencing the same problem.

My passenger ruby conf is:
passenger_ruby /usr/local/rvm/wrappers/ree-1.8.7-2012.02/ruby;

With ruby 1.9.2 everything is ok:
passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.2-p320/ruby;

Any ideas?

thanks

tigaszzz

unread,
Aug 20, 2013, 1:40:37 PM8/20/13
to phusion-...@googlegroups.com
Same thing here with /usr/local/rvm/wrappers/ree-1.8.7-2011.01/ruby ... 

tigaszzz

Hongli Lai

unread,
Aug 20, 2013, 1:41:56 PM8/20/13
to phusion-...@googlegroups.com

What happens if you start your app with 'passenger start'?

Sent from my Android phone.

Op 20 aug. 2013 19:40 schreef "tigaszzz" <tiago....@excentric.pt> het volgende:

tigaszzz

unread,
Aug 20, 2013, 2:06:39 PM8/20/13
to phusion-...@googlegroups.com
After installing Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Downloading precompiled binary from the Phusion server (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)... the site started to work.... do i have do do that in every site with diferent ruby versions ?

regards 

Hongli Lai

unread,
Aug 20, 2013, 2:13:54 PM8/20/13
to phusion-passenger
On Tue, Aug 20, 2013 at 8:06 PM, tigaszzz <tiago....@excentric.pt> wrote:
> After installing Phusion Passenger: no passenger_native_support.so found for
> the current Ruby interpreter. Downloading precompiled binary from the
> Phusion server (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to
> disable)... the site started to work.... do i have do do that in every site
> with diferent ruby versions ?

Yes. That is the easiest way for you.

Fabrizio Monti

unread,
Jan 14, 2014, 6:03:49 AM1/14/14
to phusion-...@googlegroups.com
Where am I supposed to set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 ? Thank you :)

Hongli Lai

unread,
Jan 14, 2014, 2:01:16 PM1/14/14
to phusion-passenger
On Tue, Jan 14, 2014 at 12:03 PM, Fabrizio Monti
<monti.f...@gmail.com> wrote:
> Where am I supposed to set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 ?
> Thank you :)

If you're using Passenger Standalone, just set it in your shell. If
you're using Apache or Nginx, see
http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_making_environment_variables_permanent
Reply all
Reply to author
Forward
0 new messages