Hi Everyone,
Since yesterday, I try to deploy one of my Rails app with Capistrano
from a remote Git repository (not GitHub). When making a "cap
deploy:cold" I got this error message:
* executing `deploy:cold'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
Password:
* executing "git clone -q ssh://***.***.**.**/Users/yannis/gitrepos/inventory-bare.git
/Users/yannis/capistrano/git-inventory/releases/20080812094704 && cd /
Users/yannis/capistrano/git-inventory/releases/20080812094704 && git
checkout -q -b deploy 5a04cd62abecd7f74434c371a4caaeb12c4d9121 &&
(echo 5a04cd62abecd7f74434c371a4caaeb12c4d9121 > /Users/yannis/
capistrano/git-inventory/releases/20080812094704/REVISION)"
servers: ["***.***.**.**"]
Password:
[***.***.**.**] executing command
** [***.***.**.** :: err] Permission denied, please try again.
** [***.***.**.** :: err] Permission denied, please try again.
** [***.***.**.** :: err] Permission denied (publickey,gssapi-
keyex,gssapi-with-mic,password,keyboard-interactive).
** [***.***.**.** :: err] fatal: The remote end hung up unexpectedly
command finished
*** [deploy:update_code] rolling back
* executing "rm -rf /Users/yannis/capistrano/git-inventory/releases/
20080812094704; true"
servers: ["***.***.**.**"]
[***.***.**.**] executing command
command finished
command "git clone -q ssh://***.***.**.**/Users/yannis/gitrepos/inventory-bare.git
/Users/yannis/capistrano/git-inventory/releases/20080812094704 && cd /
Users/yannis/capistrano/git-inventory/releases/20080812094704 && git
checkout -q -b deploy 5a04cd62abecd7f74434c371a4caaeb12c4d9121 &&
(echo 5a04cd62abecd7f74434c371a4caaeb12c4d9121 > /Users/yannis/
capistrano/git-inventory/releases/20080812094704/REVISION)" failed on
***.***.**.**
My deploy.rb file looks like this:
set :application, "inventory"
set :domain, "***.***.**.**"
set :user, "yannis"
set :scm, :git
set :repository, "ssh://***.***.**.**/Users/yannis/gitrepos/inventory-
bare.git"
set :deploy_to, "/Users/yannis/capistrano/git-inventory/"
set :branch, "master"
role :app, domain
role :web, domain
role :db, domain, :primary => true
After reading this thread (
http://groups.google.com/group/capistrano/
browse_thread/thread/628d706877e0bb51/), I guessed that the remote
host I want to deploy my app to is unable to access the git server. I
configured the remote host for passwordless SSH access to my git
repository, and indeed I can do a "git clone" without a password
prompt there. But when I "cap deploy:cold" I got the above error. I'm
now stuck. I someone as a solution for this, I'd be delighted...
Yannis