# Problem launching mongrel

**URL:** <https://www.ruby-forum.com/t/problem-launching-mongrel/155788>\
**Category:** Mongrel\
**Created:** [December 16, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/problem-launching-mongrel/155788 "2008-12-16T21:32:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sobert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@sobert](https://www.ruby-forum.com/u/sobert)\
**Post date:** [December 16, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/problem-launching-mongrel/155788/1 "2008-12-16T21:32:12Z")

</div>

Hello.

I use capistrano with mongrel and apache.

When I cap deploy:start, It launches nothing. So I :  
sd-17133:/var/rails/canardps3/current# mongrel\_cluster\_ctl start  
Starting all mongrel\_clusters…  
/usr/local/bin/mongrel\_cluster\_ctl:7:in `chdir': No such file or directory - /etc/mongrel_cluster (Errno::ENOENT) from /usr/local/bin/mongrel_cluster_ctl:7:in`run’  
from /usr/local/bin/mongrel\_cluster\_ctl:55  
guess it may be the problem. Any idea on what can I do to fix this ?

---

<div class="post-metadata">

**Author:** ![sobert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@sobert](https://www.ruby-forum.com/u/sobert)\
**Post date:** [December 16, 2008, 9:40pm UTC](https://www.ruby-forum.com/t/problem-launching-mongrel/155788/2 "2008-12-16T21:40:26Z")

</div>

Have you tried passing a configuration file in?

I have my config file for prod, qa, etc. under  
./config/{environment}\_mongrel.conf

The cluster can be started with -c ./path/to/config/file (which has  
startup directory, ports, etc)…or you can create a directory in  
/etc/mongrel\_cluster that has symlinks to all your config files for  
each environment.

On Tue, Dec 16, 2008 at 12:30 PM, Sylvain P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> ```
> from /usr/local/bin/mongrel_cluster_ctl:55
> 
> ```
> 
> guess it may be the problem. Any idea on what can I do to fix this ?
> 
> * * *
> 
> Mongrel-users mailing list  
> removed\_email\_address@domain.invalid  
> [http://rubyforge.org/mailman/listinfo/mongrel-users](http://rubyforge.org/mailman/listinfo/mongrel-users)

–  
Anthony E.  
408-656-2473  
[http://anthony.ettinger.name](http://anthony.ettinger.name)

---

<div class="post-metadata">

**Author:** ![sobert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@sobert](https://www.ruby-forum.com/u/sobert)\
**Post date:** [December 16, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/problem-launching-mongrel/155788/3 "2008-12-16T21:42:12Z")

</div>

Sylvain, can you post your mongrel\_cluster\_ctl to the list? It looks  
like  
your start script is trying to find a file but it’s not there.

---

<div class="post-metadata">

**Author:** ![sobert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@sobert](https://www.ruby-forum.com/u/sobert)\
**Post date:** [December 16, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/problem-launching-mongrel/155788/4 "2008-12-16T21:42:48Z")

</div>

clearly you are missing a configuration file on the server. /etc/  
mongrel\_cluster… you need to create a configuration file to start  
your mongrel cluster. It first looks into your rails config directory  
and then in /etc/mongrel\_clusters.

Emmanuel

---

<div class="post-metadata">

**Author:** ![sobert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@sobert](https://www.ruby-forum.com/u/sobert)\
**Post date:** [December 16, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/problem-launching-mongrel/155788/5 "2008-12-16T21:48:05Z")

</div>

Ok, I get the config file, but in fact this don’t make the cap  
deploy:start  
working.

Some information :

my script/spin :

#!/bin/sh

/var/rails/canardps3/current/script/process/spawner \

mongrel \

–environment=production \

–instances=1 \

–address=127.0.0.1 \

–port=8000

my spawner :

#!/usr/bin/env ruby

require File.dirname(_ **FILE** _) + ‘/…/…/config/boot’

require ‘commands/process/spawner’

I got no error except  
C:\railsapp\canardps3\>cap deploy:start

- executing `deploy:start’
- executing “cd /var/rails/canardps3/current && sudo -p 'sudo  
password: ’  
-u s  
obert nohup script/spin”  
servers: [“[canardpsn.sobert.net](http://canardpsn.sobert.net)”]  
[[canardpsn.sobert.net](http://canardpsn.sobert.net)] executing command  
\*\*\* [err :: [canardpsn.sobert.net](http://canardpsn.sobert.net)] \*\* Ruby version is not up-to-date;  
loading  
cgi  
\_multipart\_eof\_fix  
\*\*\* [err :: [canardpsn.sobert.net](http://canardpsn.sobert.net)]  
\*\* [out :: [canardpsn.sobert.net](http://canardpsn.sobert.net)] =\> Starting mongrel dispatchers  
\*\* [out :: [canardpsn.sobert.net](http://canardpsn.sobert.net)] Checking if something is already  
running  
on 12  
7.0.0.1:8000…NO  
\*\* [out :: [canardpsn.sobert.net](http://canardpsn.sobert.net)] Starting dispatcher on port:  
127.0.0.1:8000  
\*\*\* [err :: [canardpsn.sobert.net](http://canardpsn.sobert.net)] \*\* Ruby version is not up-to-date;  
loading  
cgi  
\_multipart\_eof\_fix  
\*\*\* [err :: [canardpsn.sobert.net](http://canardpsn.sobert.net)]  
command finished

but a ps aux | grep mongrel isn’t returning a thing.

Were can I find some clue ?
