I am unable to get a successful connection to my GitHub repository from my TeamCity configuration.
When I perform a "Test Connection", I get the message;
Test connection failed in ***** :: Pull-Build-Test. List remote refs failed: com.jcraft.jsch.JSchException: session is down.
From the teamcity-server.log I get:
WARN - jetbrains.buildServer.SERVER - jetbrains.buildServer.serverSide.ExecutionException: Failed to collect changes, error: List remote refs failed: com.jcraft.jsch.JSchException: session is down.
I am using TeamCity 7.1 on Ubuntu LTS 12.
I have tried both a password and private key authentication, but both give the same message (above).
For others that come across this error in search of solving TeamCity / git connection issues:
The error List remote refs failed: com.jcraft.jsch.JSchException: session is down
can also appear because you have entered a Username
as a part of the GIT connection details is not required because the connection uses ssh keys, in my case connecting to CodeBaseHQ.com service.
Also consider your general GIT configuration settings, using the Test Connection
button is always a good idea.
The problem was related to the server I was pointing to.
Bottom line, my bad.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With