# Deploying mongrel\_cluster without sudo rights

**URL:** <https://www.ruby-forum.com/t/deploying-mongrel-cluster-without-sudo-rights/85714>\
**Category:** Deployment\
**Created:** [February 15, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/deploying-mongrel-cluster-without-sudo-rights/85714 "2007-02-15T19:23:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@steve](https://www.ruby-forum.com/u/steve)\
**Post date:** [February 15, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/deploying-mongrel-cluster-without-sudo-rights/85714/1 "2007-02-15T19:23:48Z")

</div>

Hello all,

I am in the looking at capistrano to deploy our near future Rails  
application on RHEL 4.4 servers. I followed the instructions at the  
site below and everything worked fine.  
[http://mongrel.rubyforge.org/docs/mongrel\_cluster.html](http://mongrel.rubyforge.org/docs/mongrel_cluster.html)

After meeting with the SAs I was told that username used to deploy the  
apps will not have access to sudo. Its seems that all the  
mongrel\_cluster recipes require sudo to start/stop/restart mongrel  
cluster.

When I run the mongrel cluster without sudo everything “looks” ok but  
the mongrel cluster does not start. No process is spawned. I get no  
errors or indication that a problem occurred:

Starting 2 Mongrel servers…  
mongrel\_rails start -d -e production -p 8000 -a 127.0.0.1 -P  
/opt/apps/subscribe/rails-test-app/shared/mongrel.8000.pid -c  
/opt/apps/subscribe/rails-test-app/current --user mongrel–group apps  
mongrel\_rails start -d -e production -p 8001 -a 127.0.0.1 -P  
/opt/apps/subscribe/rails-test-app/shared/mongrel.8001.pid -c  
/opt/apps/subscribe/rails-test-app/current --user mongrel --group apps

Does anyone know a way around this problem? I also need to the cluster  
to start whenever the machine starts. I am no Linux expert so I am not  
sure what my options are. Is sudo access something that I should fight  
over?

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![steve](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@steve](https://www.ruby-forum.com/u/steve)\
**Post date:** [February 15, 2007, 8:02pm UTC](https://www.ruby-forum.com/t/deploying-mongrel-cluster-without-sudo-rights/85714/2 "2007-02-15T20:02:57Z")

</div>

Hi all,

It turned out it was my fault for 2 reasons:

1. In the deploy.rb I needed to set :use\_sudo to false. Capistrano now  
deploys, and restarts the mongrel clusters successfully.
2. The user that I was testing at the command line on the Linux box  
was not the user I was using for the deployment and therefor did not  
have the same rights.

I hate making these stupid mistakes.

Steve
