Welcome Guest | Login

Mongrel cluster configuration failed.

Hi,

I followed the guide at http://www.hostingrails.com/forums/wiki_thread/46.

I capified my application, edited the deploy.rb and Capify files and commited them to the svn. I then ran cap deploy:setup on my local machine and that succeeded. This is for mongrel clusters.

However, when I came to run cap deploy:cold, I received the following error:

 * executing "cd /home/*****/6tackles/current && mongrel_rails cluster::configure -e production -p ****0 -N {mongrel_nodes} -c /home/******/6tackles/current --user ****** --group ******"
   servers: ["6tackles.com"]
   [6tackles.com] executing command
** [out :: 6tackles.com] !!! Must give a valid number of servers
** [out :: 6tackles.com]
** [out :: 6tackles.com] cluster::configure reported an error. Use mongrel_rails cluster::configure -h to
** [out :: 6tackles.com] get help.
** [out :: 6tackles.com]
   command finished
command "cd /home/******/6tackles/current && mongrel_rails cluster::configure -e production -p ******0 -N {mongrel_nodes} -c /home/******/6tackles/current --user ****** --group ******" failed on 6tackles.com

In the deploy.rb file, I set mongrel_nodes to 5 as I have 250mb static memory and set the port number correctly but it doesn't seem to want to configure.

Please help.

Paul

2007-09-19 10:47 AM

The configure command should look like below.
mongrel_rails cluster::configure -e production -p 46370 -N 4 -c /home/cooluser/app --user cooluser --group cooluser

You should give your first mongrel port after -p.

Could you verify this again ?
If you think you,ve entered it correctly, could you pot the relevant entries in your deploy.rb to here ?

2007-09-19 01:26 PM

I fixed it. I missed a # off the {} in the Capfile for mongrel_nodes :D

2007-09-19 05:39 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.