DEV Community

Pawel Wolanski
Pawel Wolanski

Posted on

BTP CAP App + HANA deployment

Recently I had issue with deploying to my just created SAP HANA DB sample data from my SAP CAP application.

I got an error:

@sap/hdi-deploy, version 5.3.2 (mode default), server version unknown (0.0.0.0), cloud version , node version 23.7.0, HDI version -1, container API version -1

Deployment started at 2025-02-18 01:27:52
Using hdb@undefined for connection
Detection of server version failed; root cause: Could not connect to any host: [ <id>.hana.prod-us10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ]
Detection of cloud version failed; root cause: Could not connect to any host: [ <id>.hana.prod-us10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ]
Detection of container API version failed; root cause: Could not connect to any host: [ <id>.hana.prod-us10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ]
Detection of HDI version failed; root cause: Could not connect to any host: [ <id>.hana.prod-us10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ]
The server does not support live updating of make messages. The messages will be displayed, when the make is done.


Collecting files...

Collecting files... ok (0s 2ms)
3 directories collected
10 files collected
0 reusable modules collected
Target service: preferences-db

Could not check if session variable APPLICATION is set correctly: Could not connect to any host: [ <id>.hana.prod-us10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ]

Could not determine status of last build: Could not connect to any host: [ <id>.hana.prod-us10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ]
Enter fullscreen mode Exit fullscreen mode

I have been googling for a while, but couldn't find the root cause.

I finally found a solution in SAP BTP cockpit. I have clicked on HANA instance on Sub-Account page, then in Instance Details page I have clicked on Manage Configuration and found Connections section. I have selected option:

Allow all IP addresses

Image description

then, clicked on Review and Save

Voilà!

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay