Error writing to installation socket when deploying using capistrano3

When I do the deployment with capistrano 3, I have an error, but it is not fatal and, finally, the deployment is successful.

My error message: Error writing to authentication socket

This error message has been shown 3 times.

Like this:

DEBUG [ac3445fe] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/my-project/git-ssh.sh /usr/bin/env git ls-remote -h git@github.com:me/my-project.git )
DEBUG [ac3445fe]    Error writing to authentication socket.
DEBUG [ac3445fe]    b9e8e722970ec7980e2062f481e7147bde7e7363    refs/heads/branch1
DEBUG [ac3445fe]    1a23c87450e24a83aa97c4765750c60d683ecf36    refs/heads/master
DEBUG [ac3445fe]    fc070f0e7c0b44bb0ae519beced3e00cb0dbc6cb    refs/heads/branch2
DEBUG [ac3445fe]    2936c7921bdae0003d845dde142bf8b11f29f0a3    refs/heads/branch3
DEBUG [ac3445fe]    Error writing to authentication socket.
DEBUG [ac3445fe] Finished in 7.479 seconds with exit status 0 (successful).

and this:

DEBUG [2c4bb65f] Command: cd /var/www/my-project/repo && ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/my-project/git-ssh.sh /usr/bin/env git remote update )
DEBUG [2c4bb65f]    Fetching origin
DEBUG [2c4bb65f]    Fetching origin
DEBUG [2c4bb65f]    Error writing to authentication socket.

I can work with this error, but if I can solve it, better :)

+4
source share
1 answer

It looks like a problem with ssh-agent. Did you ssh-agentstart right? Try:

ssh-agent bash
ssh-add /path/to/your/private_key
run-your-command-again

, , ssh-agent . , , . , .bashrc, , , .

+1

Source: https://habr.com/ru/post/1538677/


All Articles