ruby on rails - Unknown error when nginx is starting? -
when started , configtest nginx . got unknown error below
sudo service nginx configtest nginx: configuration file /opt/nginx/conf/nginx.conf syntax ok nginx: [alert] unable start phusion passenger watchdog because encountered following error during startup: unable start phusion passenger helper agent: seems have crashed during startup unknown reason, exit code 1 (-1: unknown error)
my configuration file looks
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { passenger_root /home/sarath/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.53; passenger_ruby /home/sarath/.rvm/gems/ruby-2.1.0/wrappers/ruby; include mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; gzip on; gzip_vary on; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; server { listen 81; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } server { listen 8989; server_name xxxxxxxxxx; root /home/sarath/ruby_project/rub/public; client_max_body_size 128m; passenger_enabled on; rails_env production; location ~ ^/(assets|fonts|images|javascripts|stylesheets|system)/ { expires max; add_header cache-control public; } } }
and output in browser :
we're sorry, went wrong. we've been notified issue , we'll take @ shortly.
and application in ruby on rails tested ok production environemnt
Comments
Post a Comment