I am preparing to do a Capistrrano update to our current site.  It has
been a long time since the last deploy and I wish to deploy to a test
directory on the target host before going against the live site.

The owners of both the live site and the test directory is the same
userid and groupid.  This userid has access to the git repository and
is the same as that used on the previous deploys.

When I run cap deploy I am prompted for this user's password, which I
provide, and then I get this error:

$ cap deploy
Deploying from Deploy-V.01.04.03 git branch using checkout
  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "git ls-remote 
ssh://[email protected]/var/data/vcs-git/hll/proforma.git
Deploy-V.01.04.03"
!!Warning!! -   Any attempt to obtain access to this device without
                authorisation is a criminal act.
[email protected]'s password:
*** [deploy:update_code] rolling back
  * executing "rm -rf /var/data/th_deploytest/releases/20101207173907;
true"
    servers: ["theheart.harte-lyne.ca"]
 ** [deploy:update_code] exception while rolling back:
Capistrano::ConnectionError, connection failed for: theheart.harte-
lyne.ca (Errno::ECONNREFUSED: Connection refused - connect(2))
/home/byrnejb/.rvm/gems/ruby-1.8.7-p302/gems/capistrano-2.5.19/lib/
capistrano/recipes/deploy/scm/git.rb:231:in `query_revision': Unable
to resolve revision for 'Deploy-V.01.04.03' on repository 'ssh://
[email protected]/var/data/vcs-git/hll/proforma.git'.
(RuntimeError)

I have these branches:
  Deploy-V.01.01.01
  Deploy-V.01.01.03
  Deploy-V.01.04.01.RC1
* Deploy-V.01.04.03
  capybara
  master
  rails3

These are the relevant deploy.rb statements in use:

set :scm, "git"
set :scm_user, "userid"
set :scm_server,  "vcs.harte-lyne.ca"
set :scm_repo_dir, "/var/data/vcs-git/hll"
set :scm_repo_name, "proforma.git"

set :deploy_via, "checkout"          # suggested when repo on same
host
#set :deploy_via,    "remote_cache"  # suggested when repo is on
different host

set :branch,  "Deploy-V.01.04.03"

puts "Deploying from #{branch} #{scm} branch using #{deploy_via}"

set :repository,    "ssh://#{scm_user}@" +
                          "#{scm_server}" +
                          "#{scm_repo_dir}/" +
                          "#{scm_repo_name}"

set :scm_password,  proc{Capistrano::CLI.password_prompt('SCM/VCS
password: ')}


I have checked and the userid can login to the git host (vcs.harte-
lyne.ca) via ssh with the password given to the prompt.

What am I doing wrong?

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to