Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Cannot open git-receive-pack when pushing with egit, git-upload-pack when pulling
Cannot open git-receive-pack when pushing with egit, git-upload-pack when pulling [message #1807570] Mon, 03 June 2019 19:40 Go to next message
Brian Buell is currently offline Brian BuellFriend
Messages: 1
Registered: May 2019
Junior Member
Hi everyone,

I'm trying to push and pull to a Github repo using Egit 4.11 (stuck on an IBM-branded version of Luna, this is the version I could get to install without issues) and am having trouble with Git push where I get an error saying it cannot open git-receive-pack:

Can't connect to any repository: https://github.*************.git (https://github.*************.git: cannot open git-receive-pack)


Looking at the error log, I get the following messages:

An exception occurred during push on URI https://github.*************.git: 

org.eclipse.jgit.api.errors.TransportException: https://github.*************.git: cannot open git-receive-pack
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:180)
	at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:215)
	at org.eclipse.egit.ui.internal.push.PushJob.performJob(PushJob.java:84)
	at org.eclipse.egit.ui.internal.jobs.RepositoryJob.run(RepositoryJob.java:57)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.*************.git: cannot open git-receive-pack
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:584)
	at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:435)
	at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:160)
	at org.eclipse.jgit.transport.Transport.push(Transport.java:1344)
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:169)
	... 4 more
Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version
	at com.ibm.jsse2.k.a(k.java:25)
	at com.ibm.jsse2.k.a(k.java:3)
	at com.ibm.jsse2.at.b(at.java:49)
	at com.ibm.jsse2.at.a(at.java:573)
	at com.ibm.jsse2.at.i(at.java:73)
	at com.ibm.jsse2.at.a(at.java:357)
	at com.ibm.jsse2.at.startHandshake(at.java:723)
	at com.ibm.net.ssl.www2.protocol.https.c.afterConnect(c.java:215)
	at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:34)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1561)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1489)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:491)
	at com.ibm.net.ssl.www2.protocol.https.b.getResponseCode(b.java:80)
	at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:108)
	at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:205)
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:498)
	... 8 more


There's another entry from the same time, but just says the exception stack trace is not available.

When I try to do a pull, I get this:
https://github.*************.git: cannot open git-upload-pack


org.eclipse.jgit.api.errors.TransportException: https://github.*************.git: cannot open git-upload-pack
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:252)
	at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:290)
	at org.eclipse.egit.core.op.PullOperation$1.run(PullOperation.java:200)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
	at org.eclipse.egit.core.op.PullOperation.execute(PullOperation.java:232)
	at org.eclipse.egit.ui.internal.pull.PullOperationUI.execute(PullOperationUI.java:176)
	at org.eclipse.egit.ui.internal.pull.PullOperationUI.access$0(PullOperationUI.java:168)
	at org.eclipse.egit.ui.internal.pull.PullOperationUI$1.runInWorkspace(PullOperationUI.java:141)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.*************.git: cannot open git-upload-pack
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:584)
	at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:345)
	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:137)
	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:123)
	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1269)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:241)
	... 9 more
Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version
	at com.ibm.jsse2.k.a(k.java:25)
	at com.ibm.jsse2.k.a(k.java:3)
	at com.ibm.jsse2.at.b(at.java:49)
	at com.ibm.jsse2.at.a(at.java:573)
	at com.ibm.jsse2.at.i(at.java:73)
	at com.ibm.jsse2.at.a(at.java:357)
	at com.ibm.jsse2.at.startHandshake(at.java:723)
	at com.ibm.net.ssl.www2.protocol.https.c.afterConnect(c.java:215)
	at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:34)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1561)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1489)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:491)
	at com.ibm.net.ssl.www2.protocol.https.b.getResponseCode(b.java:80)
	at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:108)
	at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:205)
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:498)
	... 14 more


It seems like the protocol_version error is commonly fixed by adding -Dhttps.protocols=TLSv1.1,TLSv1.2 to eclipse.ini. When I do that, I get prompted for a username/password. Unfortunately, we use smart cards for authentication, so I don't think I can do it that way!

I also changed http.sslVerify to false, but that didn't seem to change anything at all.

Any ideas?
Re: Cannot open git-receive-pack when pushing with egit, git-upload-pack when pulling [message #1807692 is a reply to message #1807570] Thu, 06 June 2019 09:42 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1105
Registered: July 2009
Senior Member
Which Java version are you using at runtime ?
Did you try with a different Java version ?
Is the smartcard authentication based on client certificates ?
Previous Topic:What else can cause "[lock failed]" besides branches that are dups except for case?
Next Topic:Unable to push to repository on USB drive
Goto Forum:
  


Current Time: Thu Dec 05 17:41:42 GMT 2019

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

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

Back to the top