With this configuration cap deploy always hangs:
set :application, "myapp"
set :scm, :git
set :repository, "https://myuser@bitbucket.org/myuser/myapp.git"
set :branch, "mybranch"
role :web, "myvserver.stratoserver.net"
role :app, "myvserver.stratoserver.net"
set :deploy_to, "/var/www-test"
set :user, "philip"
set :group, "www-data"
One needs to enter a password 3 times:
- For bitbucket
- For myvserver.stratoserver.net. And always this seems to produce an error, making me enter it a third time…
- I enter it and everything just hangs
On the server side ps ax gives:
3116 ? Ss 0:00 sh -c git clone -q https://myuser@bitbucket.org/myuser/myapp.git /var/www-test/releases/201204281610
3117 ? S 0:00 git clone -q https://myuser@bitbucket.org/myuser/myapp.git /var/www-test/releases/20120428161055
3118 ? S 0:00 git-remote-https https://myuser@bitbucket.org/myuser/myapp.git https://myuser@bitbucket.org/myus
The full capistrano output is here: http://pastebin.com/Ffqpqq7y
I had faced the same issue and my issue was concerned with ssh-keys.I had regenerated the ssh-keys and got it working.Hope it helps..