Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: unable to access 'https://github.com/gabelerner/canvg.git/': Peer reports incompatible or unsupported protocol version

I am facing this issue in jenkins when i run bower install --allow-root. The build fails displaying the following error: Failed to execute "git ls-remote --tags --heads https://github.com/gabelerner/canvg.git

final build failure error displays as follows:

fatal: unable to access 'https://github.com/gabelerner/canvg.git/': Peer reports incompatible or unsupported protocol version

It shows the same error with different GIT file paths.

Previous error was : Error fetching remote repo 'origin'

which we solved changing the SSH key.

If we remove bower install command from the build, the build is successful.

Any help would be appreciated.

like image 282
Z.T Avatar asked Mar 06 '18 10:03

Z.T


2 Answers

This may be the reason to your problem: Discontinue support for weak cryptographic standards

....As a result, GitHub is announcing the immediate deprecation, and eventual disablement, of our use of the following cryptographic standards:

TLSv1/TLSv1.1 - This applies to all HTTPS connections, including web, API, and git connections to https://github.com and https://api.github.com. diffie-hellman-group1-sha1 - This applies to all SSH connections to github.com. diffie-hellman-group14-sha1 - This applies to all SSH connections to github.com. All of the above will be disabled on February 1, 2018.

so you need to upgrade to stronger ciphers. I see that this solution helped others github-unable-to-access-ssl-connect-error

yum update -y nss curl libcurl

I hope this helps

like image 192
Jeffrey Levy Avatar answered Oct 20 '22 16:10

Jeffrey Levy


fatal: unable to access 'https://github.com/john/git-Training.git/': Peer reports incompatible or unsupported protocol version.

I upgraded to the newest cipher, the fatal error was gone.

[john@doe git-Training]$ sudo yum update -y nss curl libcurl
like image 39
Will Fils Avatar answered Oct 20 '22 16:10

Will Fils