# Capistrano problem

**URL:** <https://www.ruby-forum.com/t/capistrano-problem/66691>\
**Category:** Rails\
**Created:** [August 28, 2006, 1:06pm UTC](https://www.ruby-forum.com/t/capistrano-problem/66691 "2006-08-28T13:06:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/67e7ee/32.png) [@paulk](https://www.ruby-forum.com/u/paulk)\
**Post date:** [August 28, 2006, 1:06pm UTC](https://www.ruby-forum.com/t/capistrano-problem/66691/1 "2006-08-28T13:06:28Z")

</div>

hello

I am trying to get Capistrano working for my application. I am  
getting a problem where Capistrano is trying to make a symbolic link to  
/public/system. Well my app does not have a system under public.  
Is it supposed to? If so, how do I create one?

Here is the Capistrano output in question. After this fails, it  
attempts to rollback and does not do too well.

\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] creating symbolic link  
`/home/kristoff/rails_sites/website/releases/20060827132215/public/syste m' to `/home/kristoff/rails\_sit es/website/shared/system’  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] : No such file or directory  
\*\* [out :: 69.16.220.210] ln: creating symbolic link  
`/home/kristoff/rails_sites/website/releases/20060827132215/public/syste m' to `/home/kristoff/rails\_sites/  
website/shared/system’: No such file or directory

Any help would be appreciated. Below is the full trace.

Paul Kristoff

$ rake --trace remote:deploy  
(in /cygdrive/c/Documents and Settings/Paul/My Documents/rails/website)  
MY UNITS Task\_name = remote:deploy  
\*\* Invoke remote:deploy (first\_time)  
\*\* Execute remote:deploy  
loading configuration  
/usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capis  
trano/recipes/standard.rb  
loading configuration ./config/deploy.rb

- executing task deploy  
\*\* transaction: start

- executing task update\_code

- querying latest revision…  
Password:

- executing “if [[ ! -d  
/home/kristoff/rails\_sites/website/releases/2006082713  
2215 ]]; then\n svn co -q -r20  
svn+ssh://removed\_email\_address@domain.invalid  
/home/kristoff/svn/GivingTree/  
/home/kristoff/rails\_sites/website/releases/20060  
827132215 &&\n (test -e  
/home/kristoff/rails\_sites/website/revision  
s.log || touch /home/kristoff/rails\_sites/website/revisions.log &&  
chmod 666 /ho  
me/kristoff/rails\_sites/website/revisions.log) && echo `date +\"%Y-%m-%d %H:%M:% S\"` $USER 20 20060827132215 \>\>  
/home/kristoff/rails\_sites/website/revisions.log  
;\n fi”  
servers: [“69.16.220.210”, “[www.paulkristoff.com](http://www.paulkristoff.com)”]  
Password: 

- executing “rm -rf  
/home/kristoff/rails\_sites/website/releases/20060827132215  
/log  
/home/kristoff/rails\_sites/website/releases/20060827132215/public/system  
&&  
\n ln -nfs /home/kristoff/rails\_sites/website/shared/log  
/home/kristoff/rails  
_sites/website/releases/20060827132215/log &&\n ln -nfs  
/home/kristoff/rails_  
sites/website/shared/system  
/home/kristoff/rails\_sites/website/releases/20060827  
132215/public/system”  
servers: [“69.16.220.210”, “[www.paulkristoff.com](http://www.paulkristoff.com)”]  
[[www.paulkristoff.com](http://www.paulkristoff.com)] executing command  
[69.16.220.210] executing command  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] ln:  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] creating symbolic link  
`/home/kristoff/rails_s ites/website/releases/20060827132215/public/system' to `/home/kristoff/rails\_sit es/website/shared/system’  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] : No such file or directory  
\*\* [out :: 69.16.220.210] ln: creating symbolic link  
`/home/kristoff/rails_site s/website/releases/20060827132215/public/system' to `/home/kristoff/rails\_sites/  
website/shared/system’: No such file or directory  
command finished  
\*\*\* [update\_code] transaction: rollback

- [update\_code] rolling back

- executing "rm -rf  
/home/kristoff/rails\_sites/website/releases/20060827132215  
"  
servers: [“[www.paulkristoff.com](http://www.paulkristoff.com)”, “69.16.220.210”]  
[69.16.220.210] executing command  
[[www.paulkristoff.com](http://www.paulkristoff.com)] executing command  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] rm:  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] cannot remove directory  
`/home/kristoff/rails_ sites/website/releases/20060827132215/Website/app/views/root' **[out :: www.paulkristoff.com] : No such file or directory** [out :: www.paulkristoff.com] rm: ** [out :: www.paulkristoff.com] cannot remove directory `/home/kristoff/rails\_  
sites/website/releases/20060827132215/Website/log/.svn/text-base’  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] : No such file or directory  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] rm:  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] cannot remove directory  
`/home/kristoff/rails_ sites/website/releases/20060827132215/Website/log/.svn/tmp/text-base' **[out :: www.paulkristoff.com] : No such file or directory** [out :: www.paulkristoff.com] rm: ** [out :: www.paulkristoff.com] cannot remove directory `/home/kristoff/rails\_  
sites/website/releases/20060827132215/Website/db/.svn’  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] : No such file or directory  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] rm:  
\*\* [out :: [www.paulkristoff.com](http://www.paulkristoff.com)] cannot lstat  
`/home/kristoff/rails_sites/websi te/releases/20060827132215/Website/components/.svn/tmp/props' **[out :: www.paulkristoff.com] : No such file or directory command finished** [update_code] exception while rolling back: RuntimeError, command "rm -rf /h ome/kristoff/rails_sites/website/releases/20060827132215" failed on www.paulkris toff.com rake aborted! command "rm -rf /home/kristoff/rails_sites/website/releases/20060827132215/log / home/kristoff/rails_sites/website/releases/20060827132215/public/system &&\\\n ln -nfs /home/kristoff/rails_sites/website/shared/log /home/kristoff/rails_sit es/website/releases/20060827132215/log &&\\\n ln -nfs /home/kristoff/rails_si tes/website/shared/system /home/kristoff/rails_sites/website/releases/2006082713 2215/public/system" failed on 69.16.220.210 /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/command.rb:4 5:in `pr ocess!’  
/usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/actor.rb:176  
:in `run ' /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/actor.rb:425 :in `exe cute\_on\_servers’  
/usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/actor.rb:173  
:in `run ' /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/recipes/stan dard.rb: 72:in `load’  
/usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/actor.rb:125  
:in `upd ate_code' /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/recipes/stan dard.rb: 141:in `load’  
/usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/actor.rb:329  
:in `tra nsaction' /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/recipes/stan dard.rb: 140:in `load’  
/usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/actor.rb:125  
:in `dep loy' /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:246:i n `execu te\_recipes!’  
/usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:246:i  
n `execu te_recipes!' /usr/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:221:i n `execu te!’ ./lib/tasks/capistrano.rake:15:in `cap' ./lib/tasks/capistrano.rake:26 /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute’  
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke’  
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke’  
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run’  
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7  
/usr/bin/rake:18

---

<div class="post-metadata">

**Author:** ![paulk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/67e7ee/32.png) [@paulk](https://www.ruby-forum.com/u/paulk)\
**Post date:** [August 28, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/capistrano-problem/66691/2 "2006-08-28T18:41:30Z")

</div>

/home/kristoff/rails\_sites/website/shared/system

Looks like this is the folder that is missing, public/system symlinks  
into the this shared system folder… Should have been created when  
you ran the rake setup…

---

<div class="post-metadata">

**Author:** ![paulk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/67e7ee/32.png) [@paulk](https://www.ruby-forum.com/u/paulk)\
**Post date:** [September 6, 2006, 10:02am UTC](https://www.ruby-forum.com/t/capistrano-problem/66691/3 "2006-09-06T10:02:21Z")

</div>

J Coppedge wrote:

> /home/kristoff/rails\_sites/website/shared/system
> 
> Looks like this is the folder that is missing, public/system symlinks  
> into the this shared system folder… Should have been created when  
> you ran the rake setup…

I’m also having that problem and I have public/system created.

---

<div class="post-metadata">

**Author:** ![paulk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/67e7ee/32.png) [@paulk](https://www.ruby-forum.com/u/paulk)\
**Post date:** [November 11, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/capistrano-problem/66691/4 "2006-11-11T20:28:25Z")

</div>

I had the same problem. At length I found that my :repository statement  
was incorrect.

It was:

set :repository, “[http://www.4thebusiness.com/#{application}](http://www.4thebusiness.com/#%7Bapplication%7D)”

This was incorrect because, I have a trunk folder off of my root. So it  
should have been:

set :repository, “[http://www.4thebusiness.com/#{application}/trunk](http://www.4thebusiness.com/#%7Bapplication%7D/trunk)”

This resolved the issue. Before the fix it was creating a trunk folder  
in the releases/2000… and the link statement failed because  
releases/2000…/public did not exist.

On Sep 6, 1:02 am, Paulo A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
