Note that there are some explanatory texts on larger screens.

plurals
  1. POPhusion Passenger Standalone seems to be on but nothing appears in browser
    text
    copied!<p>I ssh to the dev box where I am suppose to setup Redmine. Or rather, downgrade Redmine. In January I was asked to upgrade Redmine from 1.2 to 2.2. But the plugins we wanted did not work with 2.2. So now I'm being asked to setup Redmine 1.3.3. We figure we can upgrade from 1.2 to 1.3.3. </p> <p>In January I had trouble getting Passenger to work with Nginx. This was on a CentOS box. I tried several installs of Nginx. I'm left with different error logs:</p> <p>This:</p> <p>whereis nginx.conf</p> <p>gives me:</p> <p>nginx: /etc/nginx</p> <p>but I don't think that is in use. </p> <p>This: </p> <p>find / -name <em>error.log</em></p> <p>gives me:</p> <p>/opt/nginx/logs/error.log /var/log/nginx/error.log</p> <p>When I tried to start Passenger again I was told something was already running on port 80. But if I did "passenger stop" I was told that passenger was not running.</p> <p>So I did: </p> <p>passenger start -p 81</p> <p>If I run netstat I see something is listening on port 81:</p> <p>netstat Active Internet connections (w/o servers)</p> <p>Proto Recv-Q Send-Q Local Address Foreign Address State </p> <p>tcp 0 0 localhost:81 localhost:42967 ESTABLISHED </p> <p>tcp 0 0 10.0.1.253:ssh 10.0.1.91:51874 ESTABLISHED </p> <p>tcp 0 0 10.0.1.253:ssh 10.0.1.91:62993 ESTABLISHED </p> <p>tcp 0 0 10.0.1.253:ssh 10.0.1.91:62905 ESTABLISHED </p> <p>tcp 0 0 10.0.1.253:ssh 10.0.1.91:50886 ESTABLISHED </p> <p>tcp 0 0 localhost:81 localhost:42966 TIME_WAIT </p> <p>tcp 0 0 10.0.1.253:ssh 10.0.1.91:62992 ESTABLISHED </p> <p>tcp 0 0 localhost:42967 localhost:81 ESTABLISHED </p> <p>but if I point my browser here:</p> <p>http: // 10.0.1.253:81 /</p> <p>(StackOverFlow does not want me to publish the IP address, so I have to malform it. There is no harm here as it is an internal IP that no one outside my company could reach.)</p> <p>In Google all I get is "Oops! Google Chrome could not connect to 10.0.1.253:81".</p> <p>I started Phusion Passenger at the command line, and the output is verbose, and I expect to see any error messages in the terminal. But I'm not seeing anything. It's as if my browser request is not being heard, even though netstat seems to indicate the app is listening on port 81. </p> <p>A lot of other things could be wrong with this app (I still need to reverse migrate the database schema) but I'm not seeing any of the error messages that I expect to see. Actually, I'm not seeing any error messages, which is very odd. </p> <hr> <p>UPDATE:</p> <p>If I do this:</p> <p>ps aux | grep nginx</p> <p>I get:</p> <p>root 20643 0.0 0.0 103244 832 pts/8 S+ 17:17 0:00 grep nginx</p> <p>root 23968 0.0 0.0 29920 740 ? Ss Feb13 0:00 nginx: master process /var/lib/passenger-standalone/3.0.19-x86_64-ruby1.9.3-linux-gcc4.4.6-1002/nginx-1.2.6/sbin/nginx -c /tmp/passenger-standalone.23917/config -p /tmp/passenger-standalone.23917/</p> <p>nobody 23969 0.0 0.0 30588 2276 ? S Feb13 0:34 nginx: worker process </p> <p>I tried to cat the file /tmp/passenger-standalone.23917/config but it does not seem to exist. </p> <p>I also killed every session of "screen" and every terminal window where Phusion Passenger might be running, but clearly, looking at ps aux, it looks like something is running. </p> <p>Could the Nginx be running even if the Passenger is killed? </p> <p>This:</p> <p>ps aux | grep phusion</p> <p>brings back nothing</p> <p>and this:</p> <p>ps aux | grep passenger</p> <p>Only brings back the line with nginx. </p> <p>If I do this:</p> <p>service nginx stop</p> <p>I get: </p> <p>nginx: unrecognized service</p> <p>and:</p> <p>service nginx start</p> <p>gives me:</p> <p>nginx: unrecognized service</p> <p>This is a CentOS machine, so if I had Nginx installed normally, this would work. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload