Capistrano with Git repository: "Permission denied, please try again" error

966 views
Skip to first unread message

Yannis J

unread,
Aug 12, 2008, 6:01:50 AM8/12/08
to Capistrano
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

Yannis J

unread,
Aug 15, 2008, 4:29:56 AM8/15/08
to Capistrano
I'm still stuck with this... I'm sure it is stupid but I can't find a
solution. Someone can help? Thanks,
Yannis

On Aug 12, 12:01 pm, Yannis J <suvar...@mac.com> wrote:
> Hi Everyone,
> Since yesterday, I try to deploy one of my Rails app withCapistrano
> from a remoteGitrepository (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 "gitclone -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 "gitclone -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 thegitserver. I
> configured the remote host for passwordless SSH access to mygit
> repository, and indeed I can do a "gitclone" without a password

Jay

unread,
Aug 18, 2008, 8:01:10 PM8/18/08
to Capistrano
Reply all
Reply to author
Forward
0 new messages