atmos / heaven

:walking: Rails app for GitHub Flow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bundler_capistrano provider and ssh-agent?

sarkis opened this issue · comments

Hi All,

We started to implement heaven here... We'd like to have heaven hosted on heroku but in order to deploy to our servers we need to use a ProxyCommand to hop from a jumpbox. We are using the bundler_capistrano provider for our production boxes.

I am currently stuck trying to figure out how ssh-agents should be handled. How would you all recommend handling this? This is currently where I am having trouble:

DEBUG [85870980] Running /usr/bin/env git ls-remote git@github.com:doximity/residency_navigator.git as deploy@ds745.sea03
DEBUG [85870980] Command: ( RBENV_ROOT=/usr/local/rbenv RBENV_VERSION=2.2.2 GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/residency/git-ssh.sh /usr/bin/env git ls-remote git@github.com:doximity/residency_navigator.git )
DEBUG [a637ae9f] Running /usr/bin/env git ls-remote git@github.com:doximity/residency_navigator.git as deploy@ds1321.bbg
DEBUG [a637ae9f] Command: ( RBENV_ROOT=/usr/local/rbenv RBENV_VERSION=2.2.2 GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/residency/git-ssh.sh /usr/bin/env git ls-remote git@github.com:doximity/residency_navigator.git )
DEBUG [85870980] Error reading response length from authentication socket.
DEBUG [a637ae9f] Error reading response length from authentication socket.
DEBUG [85870980] Permission denied (publickey).
DEBUG [85870980] fatal: Could not read from remote repository.
DEBUG [85870980]
DEBUG [85870980] Please make sure you have the correct access rights
DEBUG [85870980] and the repository exists.
DEBUG [85870980] Finished in 0.818 seconds with exit status 128 (failed).

The above fails out due to there being no ssh-agent present...

Closing this out as I think this should be handled in capistrano itself.