Skip to Content
avatar image
Former Member

HANA Express - Web IDE - Git clone error - cannot open git-upload-pack

Hi,

I'm following OpenSAP development course manual for HANA 2.0 and folloow the exercises.

When in Web IDE, I go to File > Git > Clone repository and input the url of the template files for the course, which is: https://github.com/SAP/com.sap.openSAP.hana5.example

After clicking Ok, I'm getting an error:

Clone request failed

https://github.com/SAP/com.sap.openSAP.hana5.example: cannot open git-upload-pack

Can anyone direct me towards a correct solution? The course itself is already over, so I can't ask there. Thomas Jung (one of the teachers) mentions that I can just import it as a .zip file from Github, but I want to have a fully working connection to repository.
Thanks 
Add comment
10|10000 characters needed characters exceeded

  • Former Member

    I'm running into this same problem of "cannot open git-upload-pack". I feel my setup is very vanilla for Web IDE where I attempted this both from a trial version and from a full SAP Cloud account I am getting this error to connect to the SAP corporate GitHub. If there are certificate installs needed, can someone provide a reference for this? My web searches haven't been successful.

    Thanks,

    Wes

  • Former Member

    I'm having the same problem. Just started using HANA Express and going through the course. Is there a solution out there?

  • Get RSS Feed

12 Answers

  • avatar image
    Former Member
    Jan 13, 2017 at 09:07 PM

    Any help on this please. Does everyone's Git in HANA Express works ok?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 14, 2017 at 09:37 AM

    HI, I had the same problem. There seems to be an issue as the "Tinyworld" tutorial has this exercise/workaround

    https://blogs.sap.com/2016/03/29/developing-with-xs-advanced-source-control/

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 15, 2017 at 10:13 PM

    I'm getting the same issue too. Have uploaded the github certificate to HANA per the instructions for https access. still getting the 'cannot open git-upload-pack' error when trying to clone from public github repo. Any help would be appreciated!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 16, 2017 at 04:31 PM

    Sean, what is the workaround did you mean? In the link you added, I see that the tutorial just tells us to follow the usual steps File > Git > Clone Repository and in the tutorial it works, but in my case, I get an error. Maybe I missed the workaround part?

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 24, 2017 at 01:20 PM

    Really. no one can help? Anyone from SAP HANA Express team maybe?

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 24, 2017 at 02:05 PM

    Hello Kuatroka,

    I'm fighting with the same problem. Have you found any log entries or stack traces regarding this error?

    I've searched through all log files, but I wasn't finding any entry...

    Greetings

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Josef, unfortunately no good news for now. I stopped researching about it for now as I don't see anyone from SAP picking this subject up or clarifying anything. The only suggestion I got is to check if the HANA system is behind a firewall or some ports are closed. As I'm not a Linux expert I'm not sure how to do it. Specially given the fact that HANA VM OS is completely command line based.

      Let me know if you get through this issue.

      Cheers

  • Feb 03, 2017 at 06:13 PM

    Hi Kuatroka,

    You may have already tried this but in case you haven't - are you on a restricted network? I find that on a restricted network like a VPN or corporate Wi-Fi connection, you may be unable to clone any Git repository. By switching to a secure but unrestricted network (like home internet or coffee shop internet), it might work. Can you let me know if that works for you?

    Thanks,

    Annie

    Add comment
    10|10000 characters needed characters exceeded

    • Hi, I managed to find out my issue. Probable it is happening to others.

      The VM installation is configured to use a dynamic IP address, that will work just fine. However, I set a static one, and it seems that SLES is not automatically using the default gateway to route DNS queries, resulting in failing name resolution out of my network. Once that was solved (using yast to add the gateway as a DNS), git could clone from GitHub with no issues. I trust this will help others that use this configuration.

      Thanks

  • avatar image
    Former Member
    Feb 04, 2017 at 04:28 PM

    Hello Annie,

    the error "cannot open git-upload-pack" can be caused by lots of different problems. The error message is more like a symptom not like a cause of the actual error. So it's hard to guess whats the actual error.

    In other eclipse environments you get a full stack trace like the following which is much better for analysis

    !SUBENTRY 1 org.eclipse.egit.ui 4 0 2015-04-16 15:22:31.304
    !MESSAGE https:// username@server/p/sandbox: cannot open git-upload-pack
    !STACK 0
    org.eclipse.jgit.api.errors.TransportException: https:// username@server/p/sandbox: cannot open git-upload-pack
       at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
       at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:134)
       at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:103)
       at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.runInWorkspace(FetchOperationUI.java:123)
       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:// username@server/p/sandbox: cannot open git-upload-pack
       at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:521)
       at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
       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:1111)
       at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
       ... 5 more
    Caused by: java.net.SocketException: Unexpected end of file from server
       at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:792)
       at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
       at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:789)
       at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1535)
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
       at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
       at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
       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:475)
       ... 10 more

    In this example which i just copied from https://www.eclipse.org/forums/index.php/t/1065782/ you see there is a inner exception which describes the error much better.

    So the question is how can we get this underlying exception?

    If we just try every possible cause we will need a lot of time :)

    related :https://answers.sap.com/questions/111929/where-are-the-logfiles-of-webide-for-hana.html

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 22, 2017 at 02:14 PM

    HI @all.

    i'm facing the same issue. I have an gitlab with an valid!!! self signed certificate. If I use my gitlab via https without webIDE everything works fine. But when I try to clone a repo it fails with: git-upload-pack permitted.

    How can i use my own OnPremise gitlab Server.

    btw. The certificate ist signed via letsencrypt. But it should'nt matter? Isn't it?

    regards Micha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 07, 2017 at 12:16 PM

    Hi,

    in my case it seems to be a problem with the authentication method. If I disable all authentication methods except Basic it works fine. If I enable NTMLv2 for example it fails with the described error.

    Maybe this helps someone...

    regards

    Add comment
    10|10000 characters needed characters exceeded