miloserdow / capistrano-deploy

Github Actions for Capistrano
MIT License
127 stars 43 forks source link

Deploying hangs #37

Open rzepetor opened 2 years ago

rzepetor commented 2 years ago

Deploying hangs on step /usr/bin/ssh-add config/deploy_id_rsa

No matter how long I will be waiting this process is infinity, also nothing is happen in server project folder.

Screenshot_2021-12-12_23-44-18

rzepetor commented 2 years ago

So I have found cause why this is happening but not sure how to fix it. When I open log again I have this information:

/usr/bin/ssh-add config/deploy_id_rsa
Enter passphrase for config/deploy_id_rsa: 
Error: The operation was canceled.

so process is waiting for some input probably deploy_key but I have already saved it in Github Secrets like Readme.md says.

vikdotdev commented 2 years ago

Looks like this is caused by key pair being created with a non-empty password. This should at least be mentioned in README.

Or it could be implemented with something like the following - https://stackoverflow.com/a/33068325/10285835

@miloserdow what do you think? I can try to take a stab at it.

bettysteger commented 1 year ago

@rzepetor how can I use your fork in the yml file?