Capistrano / svn problem

I’m attempting to get my rails app working on our staging server, and
have
been trying to use capistrano to do so. When I try to run the command
‘cap
deploy’, I am asked for a password and then get the following error:

  • executing task deploy
    ** transaction: start
  • executing task update_code
  • querying latest revision…
  • executing “if [[ ! -d
    /var/www/apps/acadtech2/releases/20060726213456
    ]]; then\n svn co -q -r11
    http://128.164.137.82:8080/svn/acadtech2/trunk/var/www/apps/acadtech2/releases/20060726213456
    &&\n (test -e
    /var/www/apps/acadtech2/revisions.log || touch
    /var/www/apps/acadtech2/revisions.log && chmod 666
    /var/www/apps/acadtech2/revisions.log) && echo date +\"%Y-%m-%d %H:%M:%S\"
    $USER 11 20060726213456 >>
    /var/www/apps/acadtech2/revisions.log;\n fi”
    servers: [“128.164.137.230”]
    Password:
    [128.164.137.230] executing command
    ** [out :: 128.164.137.230] bash: line 2: svn: command not found
    command finished
    *** [update_code] transaction: rollback
  • [update_code] rolling back
  • executing “rm -rf /var/www/apps/acadtech2/releases/20060726213456”
    servers: [“128.164.137.230”]
    [128.164.137.230] executing command
    command finished
    /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/command.rb:45:in
    process!': command "if [[ ! -d /var/www/apps/acadtech2/releases/20060726213456 ]]; then\\\n svn co -q -r11 http://128.164.137.82:8080/svn/acadtech2/trunk/var/www/apps/acadtech2/releases/20060726213456 &&\\\n (test -e /var/www/apps/acadtech2/revisions.log || touch /var/www/apps/acadtech2/revisions.log && chmod 666 /var/www/apps/acadtech2/revisions.log) && echodate +"%Y-%m-%d
    %H:%M:%S"`
    $USER 11 20060726213456 >>
    /var/www/apps/acadtech2/revisions.log;\\n fi" failed on
    128.164.137.230 (RuntimeError)

So it appears that svn is not working on the staging server. When I log
into the server and run the svn command, however, it works fine. Has
anyone
else run into a similar problem?

Thanks,
Chris

Chris S. wrote:

** [out :: 128.164.137.230] bash: line 2: svn: command not found
command finished

So it appears that svn is not working on the staging server. When I log
into the server and run the svn command, however, it works fine. Has
anyone
else run into a similar problem?

Maybe subversion isn’t on the default path for a non-login shell? You
should be able to find out where it is via “which svn”. If it isn’t in a
“usual” place, you might need to add a .bashrc file in your home
directory with something like
export PATH=/path/to/subversion:$PATH
in it.

Hope this helps.

–Al Evans

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