Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to clone specific repository through ssh,TransportException:session is down

manish_trans October 22, 2019

We have 2 repositories and we are trying to clone through same ssh key. But one of them is throwing the exception "Session is down."

ERROR: org.eclipse.jgit.api.errors.TransportException: git@bitbucket.org:automationanywhere/aaenterprise.git: session is down
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:255)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:302)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:200)

Any suggestion will help.

 

Thanks

Manish

 

 

 

 

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 22, 2019

Hello @manish_trans,

I'm not aware of this error, and I'm not very familiar with Eclipse, but I found this bug report with JGit, the Java implementation of Git that Eclipse is using. 

That bug report mentions the same error message. Could it be in charge in your case?

Hope this helps.

Cheers,
Daniil

manish_trans October 23, 2019

Thanks @Daniil Penkin . , I checked the link you shared but it did not work for me.  It looks like some ssh configuration issue.

Let me explain the issue ;

We have 2 repo A and B for the same client.

We created ssh key and registered public key into the client's ssh setting.

Repo A- clone is working fine

Repo B- throwing exception ":

ERROR: org.eclipse.jgit.api.errors.TransportException: git@bitbucket.org:automationanywhere/aaenterprise.git: session is down".

 

It's happening for bitbucket user only.

It clearly looks some bitbucket ssh setting issue, but I am not able to figure out.

Any further suggestions will definitely help us.

 

Thanks

Manish

Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 23, 2019

Can you try doing that git operation from command line rather than from Eclipse? E.g. try running this (assuming your SSH key is added to the key manager):

git clone git@bitbucket.org:automationanywhere/aaenterprise

I still believe it's some issue with JGit, not with SSH or Git itself.

Cheers,
Daniil

manish_trans October 24, 2019

Yes..I tried through command line and it worked fine but we have to add following entries under <user_profile>/.ssh/config

AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa_aa_new

 

But one thing is strange...one repo clone is working fine and another repo not working for the same client. Any setting do we need to from bitbucket.

 

Thanks

Manish

Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 24, 2019

So this configuration for ssh is an equivalent to:

ssh-add ~/.ssh/id_rsa_aa_new

and is unrelated to the git operations.

If the repository is cloned from the command line without any issues, I do believe it's an issue with JGit and very unlikely something to do with Bitbucket.

Let's try to figure out how to fix it. What version of Eclipse are you using? Have you tried cloning on another machine?

Cheers,
Daniil

manish_trans November 4, 2019

Thanks, Daniil to understand the issue.

We are using App and that app communicating to bitbucket through jgit only. We are not using egit.

Yes, I tried to run the same on another machine but got the same error.

The client has 2 repositories. One of them is cloning fine but another one is throwing the exception.

 Jgit Version is:

<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>5.5.0.201909110433-r</version>
</dependency>

Please let me know if you need anything.

 

Thanks,

Manish

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events