Builds using GitHub.com fail with VCS errors since February 23 - FIX AVAILABLE
Please beware that on February 23, 2018 GitHub.com deprecated some of the security algorithms in their ssh implementation and the tools which did not have support for the newer algorithms stopped working.
TeamCity versions before version 2017.2.1 are partially affected.
It is recommended to upgrade to the latest TeamCity version which already has all the necessary support.
Patches for TeamCity versions 10+ are also available. Check all the details and links to the patches. Upgrade to the latest is highly recommended for all the earlier versions.
As a workaround you can try switching to "https://" URL in the affected VCS roots and provide your github.com credentials for authentication. This will work however only if you run TeamCity with Java 1.8. For agent-side checkout make sure to upgrade native git client on agent machines as old git can still fail with error like "unable to access 'https://github.com/...': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version"
Using https might not work for some specific cases, so upgrade is by far the most preferred way to get a fix for this issue and also get a fully supported version with many fixes, improvements, latest security updates and lots of new features.
The error can manifest in the messages like:
List remote refs failed: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketTimeoutException: Read timed out
Unable to collect changes: Failed to collect changes, error: List remote refs failed: com.jcraft.jsch.JSchException: Algorithm negotiation fail
List remote refs failed: com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read
There was a problem while connecting to github.com:22
Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Error downloading patch into temporary file "...": Failed to obtain stream from server. Server status: 404 (Not Found)
Please sign in to leave a comment.
Thank you very much. I have updated Git plugin and now its working fine.
In case I'm not the only one stuck with hundreds of SSH VCS roots, unable to apply one of those patches for whatever reason; here is a Python script I hacked together to convert my VCS roots from SSH to HTTPS.
Hello everyone,
I am in the catastrophic situation where i lost access to github due to the reported issue above and i am unable to switch to HTTPS checkout,
i have 2fa enabled on github so i created an access token and in the fetch URL i provided the correct link that includes the access token and i provided the username and password.
i get the following error:
error: List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/***********************.git: not authorized
i have jre 9.0.4 installed
and i am stuck with teamcity 9.1.6 , can't upgrade for several reasons. any body was able to make https checkout work with this version ?
Many thanks
I am supporting an older release of Teamcity (7.0.3). Other than upgrading, what is the solution to this github algorythm error?
Is there a git plugin that can be installed?
These are our agent environment details. We are using an older JDK as well.