2025 Mar 06 2:35 PM - edited 2025 Mar 06 2:38 PM
Hello everyone!
We are trying to access our SAP HANA on-premise database within SAP BAS, but we are already having problems logging in because the host cannot be resolved:
Error: Connection failed (RTE:[89001] Cannot resolve host name 'hana.on_prem.local' rc=-2: Name or service not known (hana.on_prem.local))
If we run this code locally in VS Code while we are in the company network, the host can be resolved and we can successfully connect to our SAP HANA on-premise, so we suspect the error is in the BTP or CloudConnector.
The associated Cloud Connector in the BTP subaccount is properly set up and "reachable":
Do we need to specify anything else in the parameters for the “conn.connect…” call?
Perhaps location_id or something similar?
Is our assumption correct that “conn.connect…” uses a TCP connection?
Do we then need SOCKS5? If so, how do we set this up?
We are grateful for any advice!
Many thanks and best regards,
Marco
Request clarification before answering.
I'm not an expert for this hana-client library, but you need to somehow specify that the connection should be tunnelled via Cloud Connector. I have found something like proxy_scp_account and proxy_userid here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @simon_luser,
Thank you for your response.
Just to confirm, our understanding is correct that the connection utilizes TCP rather than HTTPS protocols? During our additional testing with the Cloud Connector, we observed that all configured HTTP connections work as expected. However, when attempting to use TCP, we consistently encounter the aforementioned error.
Would you happen to know if any additional configuration is required on the Cloud Connector side to support TCP connections?
Looking forward to your insights.
Best regards,
Marco
The Connectivity Service has two entry points: towards the application/Cloud VM it acts as a SOCKS5 proxy and towards the Internet it listens for incoming tunnel connections from the Cloud Connector. So to put all the puzzle pieces together, you probably need to do something along the following steps:
Then, if everything works fine, the following should happen:
| User | Count |
|---|---|
| 26 | |
| 13 | |
| 13 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.