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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.