# Deploy: mongrel cluster problem

**URL:** <https://www.ruby-forum.com/t/deploy-mongrel-cluster-problem/116352>\
**Category:** Rails\
**Created:** [October 4, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/deploy-mongrel-cluster-problem/116352 "2007-10-04T18:32:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![phirefly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9a140/32.png) [@phirefly](https://www.ruby-forum.com/u/phirefly)\
**Post date:** [October 4, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/deploy-mongrel-cluster-problem/116352/1 "2007-10-04T18:32:17Z")

</div>

Hello,  
I don’t know if this is really the right forum to be asking about  
Rails deployment, but just in case someone has experience with this…

I’m attempting to deploy a rails site for the first time, using  
mongrel, mongrel clusters, and capistrano. So far, I have been able to  
deploy the files to the site and start up the mongrel server, viewing  
the files on port 3000.

The problem happens when I go to fire up the clusters. From the  
command line, they appear to be running fine, showing up when I do a  
‘ps aux | grep mongrel’. But when I try to view in a browser, they  
don’t show up.

I have add to my httpd.conf file to look like this:

\<VirtualHost \*:80\>  
ServerName [dev.mydomain.com](http://dev.mydomain.com)  
ServerAlias [dev.mydomain.com](http://dev.mydomain.com)  
DocumentRoot /var/www/html/dev/mydomain/current/public  
ProxyPass / [http://127.0.0.1:80](http://127.0.0.1:80)  
ProxyPassReverse / [http://127.0.0.1:8000](http://127.0.0.1:8000)  
ProxyPreserveHost on

The symlink setup by Capistrano works, so I don’t think it’s that.

One strange thing: At one point, the files were visible on the  
8000-80003 ports, but I noticed they were pointing to a specific cap  
release. Once that release was cleaned up from the subsequent file  
releases, the pages broke. I only mention this because, although I’ve  
redone the cap setup, I wonder if this is a related issue that still  
remains.

fyi, here are some of the reference i’m using:  
[mongrel.rubyforge.org/docs/mongrel\_cluster.html](http://mongrel.rubyforge.org/docs/mongrel_cluster.html)  
[mongrel.rubyforge.org/docs/apache.html](http://mongrel.rubyforge.org/docs/apache.html)  
[capify.com](http://capify.com)  
[peepcode.com](http://peepcode.com)

I’m really new to to rails deployment, so any thoughts/feedback are  
appreciated.

---

<div class="post-metadata">

**Author:** ![phirefly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9a140/32.png) [@phirefly](https://www.ruby-forum.com/u/phirefly)\
**Post date:** [October 4, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/deploy-mongrel-cluster-problem/116352/2 "2007-10-04T18:36:58Z")

</div>

On 4 Oct 2007, at 17:31, phirefly wrote:

> Hello,  
> I don’t know if this is really the right forum to be asking about  
> Rails deployment, but just in case someone has experience with this…

I’m not sure about the answer to your question (I only know enough  
about apache to do stuff with our setup, which is a little different  
and uses mod\_proxy\_balancer) but thought I’d point out that there’s a  
special rails-deployment list.  
In the spirit of checking the obvious, what does your  
mongrel\_cluster.yml file say ?

Fred

---

<div class="post-metadata">

**Author:** ![phirefly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9a140/32.png) [@phirefly](https://www.ruby-forum.com/u/phirefly)\
**Post date:** [October 4, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/deploy-mongrel-cluster-problem/116352/3 "2007-10-04T19:37:57Z")

</div>

Thanks for the response. the yml looks like this:

user: mongrel  
cwd: /var/www/html/dev/mydomain/current  
log\_file: log/mongrel.log  
port: “8000”  
environment: production  
group: mongrel  
address: 127.0.0.1  
pid\_file: tmp/pids/mongrel/pid  
servers: 2

I’m still trying to retrace my steps of why it’s there, but I also  
have a yml file in my etc/mongrel\_cluster/ directory titled  
.yml with the same config.

raph

On Oct 4, 11:35 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![phirefly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9a140/32.png) [@phirefly](https://www.ruby-forum.com/u/phirefly)\
**Post date:** [October 6, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/deploy-mongrel-cluster-problem/116352/4 "2007-10-06T18:09:07Z")

</div>

On Oct 4, 10:37 am, phirefly [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> servers: 2  
> I’m not an expert by any means but shouldn’t this line

pid\_file: tmp/pids/mongrel/pid

be

pid\_file: tmp/pids/mongrel.pid

---

<div class="post-metadata">

**Author:** ![phirefly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9a140/32.png) [@phirefly](https://www.ruby-forum.com/u/phirefly)\
**Post date:** [October 8, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/deploy-mongrel-cluster-problem/116352/5 "2007-10-08T14:38:16Z")

</div>

The file in /etc/mongrel\_cluster should be a symbolic link to the  
mongrel\_cluster.yml file in your config dir. I’m also using  
mod\_proxy\_balancer for several production sites and I would recommend  
you check that option out.
