Deploy:start issue

I am trying to deploy my first rails app to a dedicated server (using
capistrano).

The deployment goes fine (no errors) until the deploy:start step.

I get the following error message

I have installed mongrel 1.1.5 and mongrel cluster 1.0.5.

Any ideas, thoughts appreciated.

It does not look like a capistrano problem.

Take a look at:

http://www.urbanpuddle.com/articles/2007/08/17/mongrel-cluster-1-0-2-and-ruby-1-8-5

ssh into your server, cd to app/currect folder and try starting the
mongrel / mongrel cluster there.

Would you please post you config/deploy.rb ?


Aníbal Rojas

http://anibal.rojas.com.ve

On Jul 17, 5:15 am, Craig R. [email protected]

Craig,

Looks like like there is a problem with the Mongrel/Mongrel

Cluster installation. I would recommend uninstalling Mongrel Cluster,
and later Mongrel, and reinstalling them taking note of the output of
the $ sudo gem install commands.

Also you could consider running Thin as an alternative.

Please provide the output of your reinstallation process,


Aníbal Rojas

http://anibal.rojas.com.ve

Just tried to start the mongrel cluster and got the following msg:

/usr/local/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb:188:in
chdir': No such file or directory - /library/barmap/current (Errno::ENOENT) from /usr/local/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb:188:in chdir_cwd’
from
/usr/local/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb:161:in
pid_file_exists?' from /usr/local/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb:89:in start’
from
/usr/local/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb:80:in
each' from /usr/local/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb:80:in start’
from
/usr/local/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb:239:in
run' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in run’
from
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
from /usr/local/bin/mongrel_rails:19:in `load’
from /usr/local/bin/mongrel_rails:19

Deploy.rb is noted below

set :application, “barmap”
set :repository, “http://www.craigrees.co.uk/svn/trunk

If you aren’t deploying to /u/apps/#{application} on the target

servers (which is the default), you can specify the actual location

via the :deploy_to variable:

set :deploy_to,
“/home/default/barmap.craigrees.co.uk/user/htdocs/#{application}”
set :mongrel_conf, “# {current_path}/config/mongrel_cluster.yml”
#SVN user
set :scm_username, ‘craigrees_co_uk’
set :scm_password, proc{Capistrano::CLI.password_prompt(‘SVN pass:’)}

#Deployment user
set :user, “root”
set :runner, nil

If you aren’t using Subversion to manage your source code, specify

your SCM below:

set :scm, :subversion
set :deploy_via, :export

role :app, “barmap.craigrees.co.uk
role :web, “barmap.craigrees.co.uk
role :db, “barmap.craigrees.co.uk”, :primary => true

ssh_options[:paranoid] = false

namespace :deploy do
task :restart do
restart_mongrel_cluster
end
end

Thanks for your help.