Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab cannot open git-upload-pack error

I have been using Gitlab without problems for a couple of months now. But, since yesterday, I can not "reach" (fetch, push,...) Gitlab from my Eclipse IDE anymore.

No matter whether I'm working in my firm (could have been a proxy problem) or at home.

I get the following error message :

https://gitlab.com/XXX/XXX.git: 
    cannot open git-upload-pack
    cannot open git-upload-pack

Looking at my Eclipse .log, the cause is :

Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
    at sun.security.ssl.Alerts.getSSLException(Unknown Source)
    at sun.security.ssl.Alerts.getSSLException(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.security.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.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98)
    at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:168)
    at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:460)
    ... 10 more

Adding http.sslVerify=false in my Eclipse/Git configuration did not help...

Any idea why this is (suddenly) happening?

like image 480
Laurent Le Moux Avatar asked Sep 26 '14 19:09

Laurent Le Moux


People also ask

How do I fix git upload pack not permitted on?

What it means is that the password you are trying to do your git push or git fetch from upstream, it is not able to recognise the credentials and hence failing. You need to create an access token and use that instead of the password which you have been using till now.

Can not upload git upload pack?

In the repository window, select the repository and expand and right-click Remotes and choose Create Remote. Copy the GitHub repository URI from the GitHub repository page and paste it in the URI box. Hit Next and cross your fingers. If your get "auth fail", restart Eclipse and try step 5 again.

Can't connect to any repository error in eclipse?

Go to Window -> Preferences -> Team -> Git -> Configuration , click ' Repository Settings ' tab and paste your GIT ssh URI to remote. origin. url . 4) Finally try to push your commits to remote.


1 Answers

I've encountered a similar error with another Gitlab server. I dug into it and discovered that all of the available ciphers on the server were at least 256 bits. Standard Oracle Java ships with crypto that's restricted to 128 bits for some algorithms. After installing the unlimited strength crypto package from Oracle the issue went away.

Almost forgot, the unlimited strength package is only legally available in the US. If you're outside of the US then I think that OpenJDK will work instead.

like image 190
jgibson Avatar answered Sep 19 '22 21:09

jgibson