Error reading response length from authentication socket

Mezbah

In my ruby on rails project, I am using capistrano , unicorn, postgresql and nginx for deploying my project. when I run cap production git:check I am getting this error:

Error reading response length from authentication socket.

log trace:

INFO [13522bc0] Running /usr/bin/env mkdir -p /tmp/deploy_test/ as [email protected]
DEBUG [13522bc0] Command: /usr/bin/env mkdir -p /tmp/deploy_test/
INFO [13522bc0] Finished in 0.291 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/deploy_test/git-ssh.sh 0.0%
INFO Uploading /tmp/deploy_test/git-ssh.sh 100.0%
INFO [3b379ef0] Running /usr/bin/env chmod +x /tmp/deploy_test/git-ssh.sh as [email protected]
DEBUG [3b379ef0] Command: /usr/bin/env chmod +x /tmp/deploy_test/git-ssh.sh
INFO [3b379ef0] Finished in 0.067 seconds with exit status 0 (successful).
INFO [8355617a] Running /usr/bin/env git ls-remote --heads [email protected]:mezbahalam/deploy_test.git as [email protected]
DEBUG [8355617a] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/deploy_test/git-ssh.sh /usr/bin/env git ls-remote --heads [email protected]:mezbahalam/deploy_test.git )
DEBUG [8355617a]    Error reading response length from authentication socket.
DEBUG [8355617a]    6399a4a331342141ed3bbf3afb58f58828f96c76    refs/heads/master
INFO [8355617a] Finished in 9.683 seconds with exit status 0 (successful).

I read some posts but I can't figureout any solution.

Olivier Buffon

TL;DR

# start/restart ssh-agent
eval "$(ssh-agent -s)"

# add the desired ssh-key
ssh-add ~/.ssh/id_rsa

See: https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ for more details.


I went through the same issue in the past and this post helped me a lot to fix it: http://www.antleon.com/2014/04/rails-capistrano-deployment-ssh-error-reading-response-length-from-authentication-socket/

Hope it helps.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Socket error on reading from client

From Dev

Error in reading json response from http adapter

From Dev

Reading from Socket to String

From Dev

Reading data from socket

From Dev

Problem in reading from socket

From Dev

Reading data from a Socket in android

From Dev

Reading message from socket hangs

From Dev

Reading data from socket with readv

From Dev

Client not reading data from socket?

From Dev

reading data from socket - no performance

From Dev

not reading lines from socket peer

From Dev

Reading data from socket with readv

From Dev

Reading full response from HttpWebResponse

From Dev

Why is java not reading the Content-length response header?

From Dev

Error: upstream prematurely closed connection while reading response header from upstream

From Dev

Reading a password from a file for authentication purpose Java

From Dev

Reading variable length bits from a binary string

From Dev

Reading JSON from a socket using boost::asio

From Dev

Why reading from a socket stream blocks forever?

From Dev

Reading from JAVA socket slower than Python

From Dev

decode content while reading from socket in Python

From Dev

Reading C++ structs from socket in LISP

From Dev

What is the correct way of reading files in from the socket?

From Dev

Reading from a Java TCP socket in a thread

From Dev

Reading C++ structs from socket in LISP

From Dev

Socket not reading all the bytes from server

From Dev

break condition while reading from socket

From Dev

What is the correct way of reading files in from the socket?

From Dev

Reading one line from a Unix domain socket