Welcome! Log In Create A New Profile

Advanced

Re: Nginx and/or Passenger failing

September 27, 2011 04:56AM
Sergey A. Osokin Wrote:
-------------------------------------------------------
> On Tue, Sep 27, 2011 at 03:54:07AM -0400,
>
> Could you try very simple config with small
> application from passenger
> distro, i.e. something like this.
>
> http {
> include mime.types;
> default_type application/octet-stream;
>
> passenger_root
> /usr/local/rvm/gems/ruby-1.9.2-p136/gems/passenger
> -3.0.9;
> passenger_ruby
> /usr/local/rvm/wrappers/ruby-1.9.2-p136/ruby;
> passenger_default_user www;
>
> server {
> listen 127.0.0.1:80;
> server_name localhost;
>
> root
> /usr/local/rvm/gems/ruby-1.9.2-p136/gems/passenger
> -3.0.9/test/stub/rack/public;
> passenger_enabled on;
> passenger_use_global_queue on;
> }
> }
>
> After restart your nginx with passenger you should
> find nginx and passenger
> processes.
>
> % ps auxww | grep nginx | grep -v nginx
> root 18932 4,0 15,9 44464 39656 ?? Ss 8:46
> 0:00,01 nginx: master process
> /usr/local/sbin/nginx
> www 18933 4,0 16,0 44464 39904 ?? S 8:46
> 0:00,02 nginx: worker process (nginx)
> % ps uaxww | grep -i passenger | grep -v grep
> root 18923 0,0 1,0 5760 2508 ?? Is 8:46
> 0:00,07 PassengerWatchdog
> root 18926 0,0 1,5 15052 3820 ?? I 8:46
> 0:00,09 PassengerHelperAgent
> root 18929 0,0 2,7 13176 6620 ?? I 8:46
> 0:01,75 ruby: Passenger spawn server (ruby)
> nobody 18930 0,0 1,4 6688 3600 ?? I 8:46
> 0:00,07 PassengerLoggingAgent
>
> % telnet 127.0.0.1 80
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> GET / HTTP/1.0
>
> HTTP/1.1 200 OK
> Content-Type: text/html
> Connection: close
> Status: 200
> X-Powered-By: Phusion Passenger
> (mod_rails/mod_rack) 3.0.9
> Server: nginx/1.0.6 + Phusion Passenger 3.0.9
> (mod_rails/mod_rack)
>
> hello <b>world</b>Connection closed by foreign
> host.
>
> Does it possible reproduce your problem for simple
> configuration?
>
> --
> Sergey A. Osokin
> osa@FreeBSD.ORG.ru
> osa@FreeBSD.ORG
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Hi Sergey,

Thank you so much for the prompt reply.

Sorry I just can't get this working, nginx fires up ok but nothing happens when I telnet. I checked passenger using passenger-status --verbose
and it shows the details for passenger but when I check for running passenger processes it's not running.

When I do GET / HTTP/1.0 nothing happens.

Am I missing something?


user ....;
events {
multi_accept off;
worker_connections 4096;
}

http {
include mime.types;
default_type application/octet-stream;

passenger_root /usr/local/rvm/gems/ruby-1.9.2-p136/gems/passenger-3.0.9;
passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.2-p136/ruby;

passenger_default_user ...;

server {
listen 80;
server_name localhost;

root /home/etienne/test/stub/rack/public;
passenger_enabled on;
passenger_use_global_queue on;
}
}
Subject Author Posted

Nginx and/or Passenger failing

springbok September 27, 2011 03:54AM

Re: Nginx and/or Passenger failing

Sergey A. Osokin September 27, 2011 04:22AM

Re: Nginx and/or Passenger failing

springbok September 27, 2011 04:56AM

Re: Nginx and/or Passenger failing

springbok September 27, 2011 05:10AM

Re: Nginx and/or Passenger failing

springbok September 27, 2011 05:35AM

Re: Nginx and/or Passenger failing

Sergey A. Osokin September 27, 2011 07:02AM

Re: Nginx and/or Passenger failing

springbok September 27, 2011 10:03AM

Re: Nginx and/or Passenger failing

Sergey A. Osokin September 27, 2011 11:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready