Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » EGit 2.3 + Eclipse 3.7.2 cannot communicate with repository
EGit 2.3 + Eclipse 3.7.2 cannot communicate with repository [message #1821156] Thu, 06 February 2020 12:06 Go to next message
Pedro Araujo is currently offline Pedro AraujoFriend
Messages: 2
Registered: February 2020
Junior Member
I have tried pushing / synchronizing Workspace inside Eclipse with both ssh and https with no success.

Previously (last month) was working fine.

I can still clone the repository using command line.

Log:
!ENTRY org.eclipse.egit.core 4 0 2020-02-06 11:31:06.082
!MESSAGE An exception occurred during push on URI https://XXX@bitbucket.org/XXX.git: https://XXX@bitbucket.org/XXX.git: cannot open git-receive-pack
!STACK 0
org.eclipse.jgit.api.errors.TransportException: https://XXX.git: cannot open git-receive-pack
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:157)
	at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:215)
	at org.eclipse.egit.ui.internal.push.PushOperationUI.execute(PushOperationUI.java:147)
	at org.eclipse.egit.ui.internal.push.PushOperationUI$1.run(PushOperationUI.java:209)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.TransportException: https://XXX.git: cannot open git-receive-pack
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:496)
	at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:395)
	at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:130)
	at org.eclipse.jgit.transport.Transport.push(Transport.java:1162)
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:153)
	... 4 more
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at java.net.HttpURLConnection.getResponseCode(Unknown Source)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
	at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:167)
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:459)
	... 8 more

!ENTRY org.eclipse.egit.ui 4 0 2020-02-06 11:35:28.844
!MESSAGE ssh://git@XXX.git: Algorithm negotiation fail
!STACK 1
org.eclipse.core.runtime.CoreException: ssh://git@XXX.git: Algorithm negotiation fail
	at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:102)
	at org.eclipse.egit.ui.internal.synchronize.SynchronizeFetchJob.run(SynchronizeFetchJob.java:74)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.api.errors.TransportException: ssh://git@XXX.git: Algorithm negotiation fail
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
	at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:127)
	at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
	... 2 more
Caused by: org.eclipse.jgit.errors.TransportException: ssh://git@XXX.git: Algorithm negotiation fail
	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142)
	at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
	at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
	at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
	... 4 more
Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail
	at com.jcraft.jsch.Session.receive_kexinit(Session.java:550)
	at com.jcraft.jsch.Session.connect(Session.java:297)
	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
	... 11 more
!SUBENTRY 1 org.eclipse.egit.ui 4 0 2020-02-06 11:35:28.845
!MESSAGE ssh://git@XXX.git: Algorithm negotiation fail
!STACK 0
org.eclipse.jgit.api.errors.TransportException: ssh://git@XXX.git: Algorithm negotiation fail
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
	at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:127)
	at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
	at org.eclipse.egit.ui.internal.synchronize.SynchronizeFetchJob.run(SynchronizeFetchJob.java:74)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://git@XXX.git: Algorithm negotiation fail
	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142)
	at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
	at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
	at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
	... 4 more
Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail
	at com.jcraft.jsch.Session.receive_kexinit(Session.java:550)
	at com.jcraft.jsch.Session.connect(Session.java:297)
	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
	... 11 more

Re: EGit 2.3 + Eclipse 3.7.2 cannot communicate with repository [message #1821431 is a reply to message #1821156] Thu, 13 February 2020 00:07 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1177
Registered: July 2009
Senior Member
Try a current version of JGit, EGit, Eclipse and Java and it will probably work.
The versions you are using are ancient (7 years old) and no longer supported.
The encryption algorithms and ciphers accepted by modern ssh daemons probably
weren't available back then in the past.
Re: EGit 2.3 + Eclipse 3.7.2 cannot communicate with repository [message #1821690 is a reply to message #1821431] Tue, 18 February 2020 17:33 Go to previous message
Pedro Araujo is currently offline Pedro AraujoFriend
Messages: 2
Registered: February 2020
Junior Member
Thank you for the reply. Yes, you are right, I can use it with new versions of eclipse + egit (same keys). However I have to keep working in this old release of Eclipse because of some plugins without support for newer releases. It is not a big problem, I started using git outside eclipse.
Previous Topic:git-blame --contents equivalent
Next Topic:How to disable Scroll to Selection in Git Repositories view
Goto Forum:
  


Current Time: Sun Jun 20 17:24:33 GMT 2021

Powered by FUDForum. Page generated in 0.02183 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top