Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity to GitHub Connection Error: session is down

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).

like image 865
Koekiebox Avatar asked Oct 04 '12 05:10

Koekiebox


2 Answers

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.

like image 83
Dean Taylor Avatar answered Nov 12 '22 15:11

Dean Taylor


The problem was related to the server I was pointing to.

Bottom line, my bad.

like image 3
Koekiebox Avatar answered Nov 12 '22 16:11

Koekiebox