# Deploy:start issue

**URL:** <https://www.ruby-forum.com/t/deploy-start-issue/143211>\
**Category:** Deployment\
**Created:** [July 16, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/deploy-start-issue/143211 "2008-07-16T12:15:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kobrakai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/8491ac/32.png) [@kobrakai](https://www.ruby-forum.com/u/kobrakai)\
**Post date:** [July 16, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/deploy-start-issue/143211/1 "2008-07-16T12:15:25Z")

</div>

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

- executing `deploy:start’
- executing “sudo -p 'sudo password: ’ sh -c ‘cd  
/home/default/barmap.craigrees.co.uk/user/htdocs/barmap/current && nohup  
script/spin’”  
servers: [“[barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)”]  
[[barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)] executing command  
\*\*\* [err :: [barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)] /usr/lib/ruby/1.8/thread.rb:5:in  
`require’  
\*\*\* [err :: [barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)] :  
\*\*\* [err :: [barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)] no such file to load – thread.so  
\*\*\* [err :: [barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)] (  
\*\*\* [err :: [barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)] LoadError  
\*\*\* [err :: [barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)] )  
\*\*\* [err :: [barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)] from /usr/lib/ruby/1.8/thread.rb:5  
\*\*\* [err :: [barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)] from  
/usr/local/lib/site\_ruby/1.8/rubygems.rb:10  
\*\*\* [err :: [barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)] from /usr/bin/mongrel\_rails:9  
command finished

I have installed mongrel 1.1.5 and mongrel cluster 1.0.5.

Any ideas, thoughts appreciated.

---

<div class="post-metadata">

**Author:** ![kobrakai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/8491ac/32.png) [@kobrakai](https://www.ruby-forum.com/u/kobrakai)\
**Post date:** [July 16, 2008, 1:43pm UTC](https://www.ruby-forum.com/t/deploy-start-issue/143211/2 "2008-07-16T13:43:51Z")

</div>

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](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

> **[Home - Has Many Developers](https://hasmanydevelopers.com/)**
>
> We are the best choice for your building design and development

> **[RUBYCORNER.COM](https://www.rubycorner.com/)**
>
> RUBYCORNER.COM - Contact us for any business inquiries

[http://anibal.rojas.com.ve](http://anibal.rojas.com.ve)

On Jul 17, 5:15 am, Craig R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![kobrakai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/8491ac/32.png) [@kobrakai](https://www.ruby-forum.com/u/kobrakai)\
**Post date:** [July 17, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/deploy-start-issue/143211/3 "2008-07-17T14:17:22Z")

</div>

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

> **[Home - Has Many Developers](https://hasmanydevelopers.com/)**
>
> We are the best choice for your building design and development

> **[RUBYCORNER.COM](https://www.rubycorner.com/)**
>
> RUBYCORNER.COM - Contact us for any business inquiries

[http://anibal.rojas.com.ve](http://anibal.rojas.com.ve)

---

<div class="post-metadata">

**Author:** ![kobrakai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/8491ac/32.png) [@kobrakai](https://www.ruby-forum.com/u/kobrakai)\
**Post date:** [July 16, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/deploy-start-issue/143211/4 "2008-07-16T14:22:25Z")

</div>

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](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](http://barmap.craigrees.co.uk)”  
role :web, “[barmap.craigrees.co.uk](http://barmap.craigrees.co.uk)”  
role :db, “[barmap.craigrees.co.uk](http://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.
