# Mongrel\_rails cluster::restart task via capistrano mongrel\_cluster/recipes problem

**URL:** <https://www.ruby-forum.com/t/mongrel-rails-cluster-restart-task-via-capistrano-mongrel-cluster-recipes-problem/138911>\
**Category:** Mongrel\
**Created:** [May 28, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/mongrel-rails-cluster-restart-task-via-capistrano-mongrel-cluster-recipes-problem/138911 "2008-05-28T22:25:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stjohn\_goldfinger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f0a364/32.png) [@stjohn\_goldfinger](https://www.ruby-forum.com/u/stjohn_goldfinger)\
**Post date:** [May 28, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/mongrel-rails-cluster-restart-task-via-capistrano-mongrel-cluster-recipes-problem/138911/1 "2008-05-28T22:25:37Z")

</div>

Hi Guys,  
I hope its ok to post to this list. 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 to my remote host via ssh with agent and pass phrase.  
All is  
good until my first mongrel task, deploy:restart task. I have included  
the  
mongrel\_cluster/recipes via: require ‘mongrel\_cluster/recipes’ inside of  
my  
deploy.rb. 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 the  
sudoers  
on the server. I have put my deploy.rb here:

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

I think it must be some sort of permissions problem. I have mongrel set  
up as  
user ‘mongrel’ and a member of the ‘www-data’ group. I am deploying as  
the  
deployment user who is a member of the ‘www-data’ group and sudoers. If  
I  
login to the server as the deployment user and execute the mongrel\_rails  
cluster::restart command by hand it works fine. Any help or pointers  
would be  
greatly appreciated.

## many thanks, John

St.john Goldfinger  
Managing Director  
KidSafe Software LTD
