Forum: Ruby on Rails Capistrano :update_code problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Henry T. (Guest)
on 2006-03-16 16:44
(Received via mailing list)
Hi all,

I want to love capistrano and I'm so close.

My error is occuring while running the update_code task... (apologies
for the shell spew)

* executing "rm -rf
&&\n    ln -nfs /home/henster29/sites/glitter/shared/log
/home/henster29/sites/glitter/releases/20060316143447/log &&\n    ln
-nfs /home/henster29/sites/glitter/shared/system
    servers: [""]
    [] executing command
 ** [out ::] ln:
No such file or directory
    command finished

Ah, so its trying to make a symbolic link to a dir that doesnt exist...
I checked the gems/capistrano-1.1.0/lib/capistrano/recipes/standard.rb
which seems to be the source and found this..

task :update_code, :roles => [:app, :db, :web] do
  on_rollback { delete release_path, :recursive => true }


  run <<-CMD
    rm -rf #{release_path}/log #{release_path}/public/system &&
    ln -nfs #{shared_path}/log #{release_path}/log &&
    ln -nfs #{shared_path}/system #{release_path}/public/system

Which looks like (to me) that it blows away
#{release_path}/public/system and then tries to make a link in there.

I must be talking crap since this works for everyone else... Any ideas?

This topic is locked and can not be replied to.