# Capistrano mongrel\_rails cluster::restart problem

**URL:** <https://www.ruby-forum.com/t/capistrano-mongrel-rails-cluster-restart-problem/138870>\
**Category:** Deployment\
**Created:** [May 28, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/capistrano-mongrel-rails-cluster-restart-problem/138870 "2008-05-28T15:21:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [May 28, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/capistrano-mongrel-rails-cluster-restart-problem/138870/1 "2008-05-28T15:21:00Z")

</div>

Hi,  
I have a rails on ubuntu deployment stack which consists of:  
locally: cap 2.3.0 and all latest deps  
server side: apache 2.3, mongrel\_cluster, mod\_proxy and git on the  
same host.

I am connecting via ssh with agent and pass phrase. All is good until  
my first deploy:restart task. I have included the mongrel\_cluster/  
recipes via:

require ‘mongrel\_cluster/recipes’

inside of my deploy.rb which I think is necessary. For some reason  
when the cap deploy hits the ‘deploy:restart’ task which is the first  
mongrel task I am prompted for a password and the task fails. I am not  
sure why. My :user and :runner are both members of thesudoers on the  
server. I have put my deploy.rb here:

[http://pastie.caboo.se/204609](http://pastie.caboo.se/204609)

Any help or pointers would be greatly appreciated.

many thanks,  
John

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [May 29, 2008, 12:56am UTC](https://www.ruby-forum.com/t/capistrano-mongrel-rails-cluster-restart-problem/138870/2 "2008-05-29T00:56:02Z")

</div>

Hi Guys,  
has anyone actually made a successful rails deployment stack using:

ubuntu linux, apache 2.2, mongrel\_cluster-1.0.5, mod\_proxy, cap 2.3.0  
and its deps, git and ssh key based login with agent.

I have the web server stuff playing nicely, the config files being  
created and deployed, the git repos syncing and deploying with  
capistrano happilly but getting cap 2.3.0 and mongrel\_cluster-1.0.5 to  
work together is an absolute nightmare. Has anyone got this working?  
If so I would be very greatfull to receive the details. Surely it  
can’t be this difficult to set up?

many thanks,  
John
