# Capistrano Problem

**URL:** <https://www.ruby-forum.com/t/capistrano-problem/180266>\
**Category:** Deployment\
**Created:** [December 16, 2009, 6:08am UTC](https://www.ruby-forum.com/t/capistrano-problem/180266 "2009-12-16T06:08:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfeadler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@mfeadler](https://www.ruby-forum.com/u/mfeadler)\
**Post date:** [December 16, 2009, 6:08am UTC](https://www.ruby-forum.com/t/capistrano-problem/180266/1 "2009-12-16T06:08:33Z")

</div>

Hello all,

I am attempting to get Capistrano setup and working for the first time.  
This is very new to me. I am trying to deploy from a local Git  
repository to my shared host.

After running ‘cap deploy:setup’ and ‘cap deploy:check’ everything  
appears OK. But when I run ‘cap deploy’ it doesn’t seem like any of my  
file are getting uploaded. Here is what happens after running ‘cap  
deploy’. Does anything look weird?

* * *

cap deploy

- executing `deploy’
- executing `deploy:update’  
\*\* transaction: start
- executing `deploy:update\_code’  
executing locally: “git ls-remote . master”  
checking for git… yes
- executing “git clone -q .  
/home/username/appname/releases/20091216044729 && cd  
/home/username/appname/releases/20091216044729 && git checkout -q -b  
deploy 8939c285e969a7cdf5a59a86a25ef0c460d15a31 && (echo  
8939c285e969a7cdf5a59a86a25ef0c460d15a31 \>  
/home/username/appname/releases/20091216044729/REVISION)”  
servers: [“[mydomain.com](http://mydomain.com)”]  
[[mydomain.com](http://mydomain.com)] executing command  
\*\* [[mydomain.com](http://mydomain.com) :: err] fatal: failed to open /home/username/./objects  
command finished
- executing `deploy:finalize\_update’
- executing “chmod -R g+w  
/home/username/appname/releases/20091216044729”  
servers: [“[mydomain.com](http://mydomain.com)”]  
[[mydomain.com](http://mydomain.com)] executing command  
\*\*\* [err :: [mydomain.com](http://mydomain.com)] chmod: cannot access  
`/home/username/appname/releases/20091216044729’: No such file or  
directory  
command finished
- executing “rm -rf /home/username/appname/releases/20091216044729/log  
/home/username/appname/releases/20091216044729/public/system  
/home/username/appname/releases/20091216044729/tmp/pids &&\\n  
mkdir -p /home/username/appname/releases/20091216044729/public &&\\n  
mkdir -p /home/username/appname/releases/20091216044729/tmp &&\\n  
ln -s /home/username/appname/shared/log  
/home/username/appname/releases/20091216044729/log &&\\n ln -s  
/home/username/appname/shared/system  
/home/username/appname/releases/20091216044729/public/system &&\\n  
ln -s /home/username/appname/shared/pids  
/home/username/appname/releases/20091216044729/tmp/pids”  
servers: [“[mydomain.com](http://mydomain.com)”]  
[[mydomain.com](http://mydomain.com)] executing command  
command finished
- executing “find  
/home/username/appname/releases/20091216044729/public/images  
/home/username/appname/releases/20091216044729/public/stylesheets  
/home/username/appname/releases/20091216044729/public/javascripts -exec  
touch -t 200912160447.32 {} ‘;’; true”  
servers: [“[mydomain.com](http://mydomain.com)”]  
[[mydomain.com](http://mydomain.com)] executing command  
\*\*\* [err :: [mydomain.com](http://mydomain.com)] find:  
/home/username/appname/releases/20091216044729/public/images: No such  
file or directory  
\*\*\* [err :: [mydomain.com](http://mydomain.com)] find:  
/home/username/appname/releases/20091216044729/public/stylesheets: No  
such file or directory  
\*\*\* [err :: [mydomain.com](http://mydomain.com)] find:  
/home/username/appname/releases/20091216044729/public/javascripts: No  
such file or directory  
command finished
- executing `deploy:symlink’
- executing “rm -f /home/username/appname/current && ln -s  
/home/username/appname/releases/20091216044729  
/home/username/appname/current”  
servers: [“[mydomain.com](http://mydomain.com)”]  
[[mydomain.com](http://mydomain.com)] executing command  
command finished  
\*\* transaction: commit
- executing `deploy:restart' [DEPRECATED] `deploy:restart` is going to be changed to Passenger  
mod\_rails’ method after 2.5.9 - see [Lighthouse - Beautifully Simple Issue Tracking](http://is.gd/2BPeA)
- executing “/home/username/appname/current/script/process/reaper”  
servers: [“[mydomain.com](http://mydomain.com)”]  
[[mydomain.com](http://mydomain.com)] executing command  
\*\*\* [err :: [mydomain.com](http://mydomain.com)] sh:  
/home/username/appname/current/script/process/reaper: No such file or  
directory  
command finished

* * *

Thanks in advance for any help!

---

<div class="post-metadata">

**Author:** ![mfeadler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@mfeadler](https://www.ruby-forum.com/u/mfeadler)\
**Post date:** [January 10, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/capistrano-problem/180266/2 "2010-01-10T22:28:40Z")

</div>

Matthew Fordham wrote:

> Hello all,
> 
> I am attempting to get Capistrano setup and working for the first time.  
> This is very new to me. I am trying to deploy from a local Git  
> repository to my shared host.
> 
> After running ‘cap deploy:setup’ and ‘cap deploy:check’ everything  
> appears OK. But when I run ‘cap deploy’ it doesn’t seem like any of my  
> file are getting uploaded. Here is what happens after running ‘cap  
> deploy’. Does anything look weird?
> 
> * * *
> 
> cap deploy  
> /home/username/appname/releases/20091216044729/tmp/pids"  
> servers: [“[mydomain.com](http://mydomain.com)”]  
> [[mydomain.com](http://mydomain.com)] executing command  
> command finished
> 
> - executing “find  
> /home/username/appname/releases/20091216044729/public/images  
> /home/username/appname/releases/20091216044729/public/stylesheets  
> /home/username/appname/releases/20091216044729/public/javascripts -exec  
> touch -t 200912160447.32 {} ‘;’; true”  
> servers: [“[mydomain.com](http://mydomain.com)”]  
> [[mydomain.com](http://mydomain.com)] executing command  
> \*\*\* [err :: [mydomain.com](http://mydomain.com)] find:  
> /home/username/appname/releases/20091216044729/public/images: No such  
> file or directory  
> \*\*\* [err :: [mydomain.com](http://mydomain.com)] find:  
> /home/username/appname/releases/20091216044729/public/stylesheets: No  
> such file or directory  
> \*\*\* [err :: [mydomain.com](http://mydomain.com)] find:  
> /home/username/appname/releases/20091216044729/public/javascripts: No  
> such file or directory  
> command finished

Hi Matthew, did you get any resolution to this. I’m having exactly the  
same problem. Stating the obvious perhaps but it looks like the checkout  
part of the process is not descending into the ‘public’ folder’s sub  
directories.

My workaround (still to be done) is to create a post-checkout event  
which explicitly grabs the images, javascript, stylesheet directories.

I still thinks there’s an issue with capistrano (version 2.5.11) on my  
system.

Please let us know if you have found a more adequate fix to this?

Peter Mac
