cancel
Showing results for 
Search instead for 
Did you mean: 

web ide for SAP HANA cannot connect to git

Former Member

hi,

I am facing the issue of hana xsa web ide not connecting to internal git server even after adding the relevant certificates.

The IDE is giving security certificate error even after all the certificates are present. Same configuration (same git server and same certificates) is working on another HANA installation.

Any suggestions are welcomed.

Regards,

Himanshu

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hello Himanshu,

To enable use of git repository you must customize proxy server -

set the JAVA_OPTS environment variable for SAP HANA JVM:

# xs set-env di-core JBP_CONFIG_JAVA_OPTS '[java_opts: "-Dhttps.proxyHost=proxy.HELLO.WORLD.corp -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=\\"*.WORLD.corp|localhost|127.0.0.1|10.*\\""]'

# xs restage di-core

# xs restart di-core

This might help too: https://archive.sap.com/discussions/thread/3945940

Have a nice day,

Tomer

Former Member
0 Kudos

Hi tomer,

Have already done that.

regards,

Himanshu

0 Kudos

https://help.sap.com/doc/PRODUCTION/370d1696f4a2466f9b6f022df8f5b853/2.0.00/en-US/SAP_Web_IDE_for_SA...

● If your developers are using a Git repository, which requires a proxy to be accessed: JBP_CONFIG_JAVA_OPTS: "[java_opts: \"-Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttps.proxyHost= -Dhttps.proxyPort= -Dhttp.nonProxyHosts=''''\"]" For example: Sample Code JBP_CONFIG_JAVA_OPTS: '[java_opts: "-Dhttps.proxyHost=proxy.acme.com -Dhttps.proxyPort=8080 -Dhttps.nonProxyHosts=\\\"host1|host2|host3\\\" -Dhttp.proxyHost=proxy.acme.com -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=\\\"host1|host2|host3\\\""]' Note ● If either of the http.proxyHost and https.proxyHost properties are set, define the http.nonProxyHosts property to include both short and fully qualified host names that should not go through a proxy, as in the above example. ● Make sure that the access to localhost is always direct rather than via a proxy.

Former Member
0 Kudos

my current JAVA_OPTS confing is like this : JBP_CONFIG_JAVA_OPTS: [java_opts: "-Dhttps.proxyHost=proxy -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=\"something.biz|localhost|127.0.0.0\""]. So proxy part is all set up. The error I am getting is certificate related (wed ide is able to connect to the server but not able to verify the certificates even when they are uploaded via di-cert-admin-ui).

Can you tell how can we check detailed logs of web ide operations?

michal_tall
Employee
Employee

Hi guptahimanshu ,

From the command line you wrote it seems the followings are wrong:

  • -Dhttps.proxyHost=proxy --> Is 'proxy' the host name ?
  • -Dhttp.nonProxyHosts=\"something.biz|localhost|127.0.0.0\" --> missing additional \ (i.e. should be \\")

1. Please re-configure JBP_CONFIG_JAVA_OPTS again to enable use of git repository, and pay attention to following characters: ' " \
Example:
# xs set-env di-core JBP_CONFIG_JAVA_OPTS '[java_opts: "-Dhttps.proxyHost=proxy.acme.com -Dhttps.proxyPort=8080 -Dhttp.proxyHost=proxy.acme.com -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=\\"host1|host2|host3\\""]'

2. You should also upload your git repository certification to Web IDE Admin tool:

3. Finally, you need to run the followings:

  • # xs restage di-core
  • # xs restart di-core

Regards,
Michal

michal_keidar
Active Contributor
0 Kudos

michal.tall tomer.epstein uri.nizan - Can you please assist?