Capistrano problem

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] 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] : 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://[email protected]
    /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”]
    Password:

    [69.16.220.210] executing command
    [www.paulkristoff.com] executing command
    ** [out :: 69.16.220.210] Password:
    ** [out :: 69.16.220.210] subversion is asking for a password
    ** [out :: www.paulkristoff.com] Password:
    ** [out :: www.paulkristoff.com] subversion is asking for a password
    ** [out :: www.paulkristoff.com] Password:
    ** [out :: www.paulkristoff.com] subversion is asking for a password
    ** [out :: www.paulkristoff.com] Password:
    ** [out :: www.paulkristoff.com] subversion is asking for a password
    ** [out :: 69.16.220.210] Password:
    ** [out :: 69.16.220.210] subversion is asking for a password
    ** [out :: 69.16.220.210] Password:
    ** [out :: 69.16.220.210] subversion is asking for a password
    command finished

  • 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”]
    [www.paulkristoff.com] executing command
    [69.16.220.210] executing command
    ** [out :: www.paulkristoff.com] ln:
    ** [out :: 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] : 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”, “69.16.220.210”]
    [69.16.220.210] executing command
    [www.paulkristoff.com] executing command
    ** [out :: www.paulkristoff.com] rm:
    ** [out :: 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] : 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/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] : No such file or directory
    ** [out :: www.paulkristoff.com] rm:
    ** [out :: 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:inpr 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 :inexe 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:inload’
    /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:inload’
    /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:inload’
    /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 nexecu 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 nexecu 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:inexecute’
    /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:ininvoke’
    /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:ininvoke’
    /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:inrun’
    /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
    /usr/bin/rake:18

/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…

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.

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

It was:

set :repository, “http://www.4thebusiness.com/#{application}

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

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. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs