# Rails Capistrano Joyent deployment...failure at the last sec

**URL:** <https://www.ruby-forum.com/t/rails-capistrano-joyent-deployment-failure-at-the-last-sec/109485>\
**Category:** Rails\
**Created:** [July 15, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/rails-capistrano-joyent-deployment-failure-at-the-last-sec/109485 "2007-07-15T17:41:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 15, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/rails-capistrano-joyent-deployment-failure-at-the-last-sec/109485/1 "2007-07-15T17:41:53Z")

</div>

Help! Problems at the last second!

After some toiling, I managed to get everything installed on a Joyent  
Accelerator; “mongrel\_rails” installed in the “/opt/csw/bin/”  
directory, so I had to modify my “deploy.rb” file accordingly:

set :mongrel\_rails, “/opt/csw/bin/”

It executes, but this is where the problems come:

- executing task start\_mongrel\_cluster
- executing “/opt/csw/bin/mongrel\_rails cluster::start -C /home/  
[mysite.com/rails/current/config/mongrel\_cluster.yml](http://mysite.com/rails/current/config/mongrel_cluster.yml)”  
servers: [“[www.mysite.com](http://www.mysite.com)”]  
[[www.mysite.com](http://www.mysite.com)] executing command  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] starting port 8000  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] sh:  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] myprivateip:  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] not found  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] sh: mongrel\_rails: not found  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] starting port 8001  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] sh: myprivateip:  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] not found  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] sh: mongrel\_rails: not found  
\*\* [out :: [www.mysite.com](http://www.mysite.com)]  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] starting port 8002  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] sh: myprivateip: not found  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] sh: mongrel\_rails: not found  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] starting port 8003  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] sh: myprivateip:  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] not found  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] sh: mongrel\_rails:  
\*\* [out :: [www.mysite.com](http://www.mysite.com)] not found  
command finished

It looks like the command runs, but when it tries to set up individual  
instances, it forgets the path from the “deploy.rb” file.

Also noted: “myprivateip” is, according to Joyent and the following  
site, a command that should hook up the IP address correctly, but it  
too appears to be failing.

Ref: [http://wiki.joyent.com/accelerators:apache\_rails\_mongrel?s=private](http://wiki.joyent.com/accelerators:apache_rails_mongrel?s=private)

I’d love any insight!  
S
