I have a problem deploying through a very fresh capifony on Capistrano v2.8.0 - this is my first capistrino / capifony app.
I have successfully completed lid deployment: setup and now I need to perform lid deployment: cold. SSH communication works well, but cannot execute the git clone command due to ssh permissions:
* executing "git clone -q git@github.com :palmic/www.myproject.com.git /home/palmic/web/hostik.cz/palmic/releases/20110823122821 && cd /home/palmic/web/hostik.cz/palmic/releases/20110823122821 && git checkout -q -b deploy 7407672c0a59ad631ea2f1f1d71fb15c2f68ac30 && (echo 7407672c0a59ad631ea2f1f1d71fb15c2f68ac30 > /home/palmic/web/hostik.cz/palmic/releases/20110823122821/REVISION)" servers: ["hostik.cz"] [hostik.cz] executing command ** [hostik.cz :: err] Permission denied (publickey). ** fatal: The remote end hung up unexpectedly command finished in 3123ms *** [deploy:update_code] rolling back * executing "rm -rf /home/palmic/web/hostik.cz/palmic/releases/20110823122821; true" servers: ["hostik.cz"] [hostik.cz] executing command command finished in 164ms
When I enter an ssh session and invoke this instruction, it requests an ssh passphrase. When I fill in the same passphrase that I have: scm_passphrase in deploy.rb, the clone completed successfully. So it looks like capistrano cannot fill in the passphrase on my setup.
BTW. ssh_options [: forward_agent] = true / false does toty know nothing why ?? (I have agent redirection in my ~ / .ssh / config):
Host *hostik.cz ForwardAgent yes Host * ForwardAgent no
my deploy.rb:
set :application, "app" set :domain, "hostname" set :deploy_to, "remotepath" set :use_sudo, false set :repository, " git@github.com :palmic/myproject.git" set :scm, :git set :user, "my remote username" set :scm_passphrase, "my ssh passphrase on remote host" set :branch, "git project deploy branchname" set :scm_verbose, true role :web, domain
I know this is not some kind of original mistake, and I'm missing something, does anyone know?
source share