Ruby on Rails (Redmine) on Apache - 503 Error

Posted by andrewtweber on Server Fault See other posts from Server Fault or by andrewtweber
Published on 2011-11-21T17:09:32Z Indexed on 2011/11/21 17:54 UTC
Read the original article Hit count: 497

I am running a Ruby on Rails application called Redmine. It's been working fine, but today it's giving a 503 Service Temporarily Unavailable error. (It was initially set up by an employee who is now gone.)

I check the error log and it says:

[Mon Nov 21 11:03:30 2011] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:3000 (127.0.0.1) failed
[Mon Nov 21 11:03:30 2011] [error] ap_proxy_connect_backend disabling worker for (127.0.0.1)

Here's a chunk of my Apache config

<VirtualHost *:80>
  ServerName redmine.{domain}.com
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA,L]
</VirtualHost>

<Proxy balancer://redminecluster>
  BalancerMember http://127.0.0.1:3000
</Proxy>

I found this link: http://www.redmine.org/boards/2/topics/20561 which suggests I simply need to "start the redmine server." I've tried /etc/init.d/redmine start which gives me this output

=> Booting Mongrel
=> Rails 2.3.11 application starting on http://0.0.0.0:3000

The contents of /etc/init.d/redmine:

cd /var/redmine
sudo ruby script/server -d -e production

One thing I immediately notice is that it says 0.0.0.0 instead of 127.0.0.1. In addition, running top or ps -ef shows no record of a "mongrel" or "redmine" process. I've also tried restarting Apache before and after starting redmine. Not sure where to go from here.

© Server Fault or respective owner

Related posts about apache2

Related posts about ruby-on-rails