cancel
Showing results for 
Search instead for 
Did you mean: 

CAP: cds deploy to hana: HDI Deployment failed

todd_fisher
Explorer

Hello,

I am deploying my CAP to a trial hana cloud instance. Following the CAP Java Tutorial for the bookstore.

1. npm install --save-dev --save-exact @sap/hdi-deploy@3.7.0

2. cds deploy --to hana:bookstore-hana

bookstore-hana is created fine, but hdi creation fails:

"Deployment to container E4054C6FDA834469A673B93C4C488B5C failed - error: Could not connect to any host: [ 879d15b4-b970-4f2c-a644-158acee78b34.hana.trial-eu10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ] [Deployment ID: none].

Error: Could not connect to any host: [ 879d15b4-b970-4f2c-a644-158acee78b34.hana.trial-eu10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ]"

Thank you.

The entire output of the deploy:

*----------------------------------------------------------------------------------------------*

user: bookstore $ cds deploy --to hana:bookstore-hana

[cds.deploy] - Starting deploy to SAP HANA ...

[cds.deploy] - Creating build tasks

[cds.deploy] - Running build

[cds.deploy] - Running 'cf marketplace -s hana' with options {}

Getting service plan information for service hana as todd.fisher@sap.com...

OK

service plan description free or paid

hdi-shared HDI container on a HANA database free

sbss User with permissions to use SBSS free

schema Schema on a HANA database free

securestore User with permissions to use secure store free

[cds.deploy] - Using container bookstore-hana

[cds.deploy] - Running 'cf create-service hana hdi-shared bookstore-hana' with options {}

Creating service instance bookstore-hana in org 20cfa8b2trial / space dev as todd.fisher@sap.com...

OK

Create in progress. Use 'cf services' or 'cf service bookstore-hana' to check operation status.

..........

Showing info of service bookstore-hana in org 20cfa8b2trial / space dev as todd.fisher@sap.com...

name: bookstore-hana

service: hana

tags:

plan: hdi-shared

description: Manage schemas and HDI containers on an existing SAP HANA database.

documentation: https://help.sap.com/viewer/a36ee1aa073e4e8e840573fb30a72d95/Cloud/en-US/1e9a6cb47e1b44f990a917b4bf8...

dashboard:

service broker: sm-hana-broker-6ee33e0e-bc5a-4a6b-8715-5a697a76b655

Showing status of last operation from service bookstore-hana...

status: create succeeded

message:

started: 2020-08-12T16:50:41Z

updated: 2020-08-12T16:51:42Z

There are no bound apps for this service.

Upgrades are not supported by this broker.

[cds.deploy] - Running 'cf create-service-key bookstore-hana bookstore-hana-key -c {"permissions":"development"}' with options {}

Creating service key bookstore-hana-key for service instance bookstore-hana as todd.fisher@sap.com...

OK

[cds.deploy] - Writing /home/user/projects/bookstore/db/default-env.json

[cds.deploy] - Error while calling git: Error: spawn git ENOENT

[cds.deploy] - Error while calling git: Error: spawn git ENOENT

[cds.deploy] - Writing /home/user/projects/bookstore/default-env.json

[cds.deploy] - Writing /home/user/projects/bookstore/package.json

[cds.deploy] - Deploying to HANA from /home/user/projects/bookstore/db

[cds.deploy] - Using HDI deployer from /home/user/projects/bookstore/node_modules/@sap/hdi-deploy/library.js

@sap/hdi-deploy, version 3.7.0 (mode default), server version unknown (0.0.0.0), node version 10.20.1

Detection of server version failed; root cause: Could not connect to any host: [ 879d15b4-b970-4f2c-a644-158acee78b34.hana.trial-eu10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ]

Using default environment variables from file "default-env.json"

No ignore file at /home/user/projects/bookstore/db/.hdiignore.

Collecting files...

Collecting files... ok (0s 2ms)

3 directories collected

56 files collected

0 reusable modules collected

Target service: bookstore-hana

Processing grants files...

Processing grants files... ok (0s 0ms)

Preprocessing files...

Preprocessing files... ok (0s 3ms)

Connecting to the container "E4054C6FDA834469A673B93C4C488B5C"...

Deployment to container E4054C6FDA834469A673B93C4C488B5C failed - error: Could not connect to any host: [ 879d15b4-b970-4f2c-a644-158acee78b34.hana.trial-eu10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ] [Deployment ID: none].

Error: Could not connect to any host: [ 879d15b4-b970-4f2c-a644-158acee78b34.hana.trial-eu10.hanacloud.ondemand.com:443 - Client network socket disconnected before secure TLS connection was established ]

(0s 126ms)

[ERROR] [cds.deploy] - HDI deployment failed with exit code 1

at hdiDeployLib.deploy (/home/user/projects/bookstore/node_modules/@sap/cds/bin/deploy/to-hana/hdiDeployUtil.js:92:35)

at ChildProcess.<anonymous> (/home/user/projects/bookstore/node_modules/@sap/hdi-deploy/library.js:68:14)

at ChildProcess.emit (events.js:198:13)

at maybeClose (internal/child_process.js:982:16)

at Socket.stream.socket.on (internal/child_process.js:389:11)

at Socket.emit (events.js:198:13)

at Pipe._handle.close (net.js:607:12)

former_member643578
Participant
0 Kudos

Could you please give me one clarification are you doing with Visual Studio Code or Business Application Studio?

View Entire Topic

I have the same problem, help please

0 Kudos

Basically the problem is that the connection to the database cannot be established for some reason. It may be a Trial problem. I'll keep trying

0 Kudos

I have reported this bug on the official Github site, to wait for a forceful response to the problem. We will be very attentive: https://github.com/SAPDocuments/Tutorials/issues/5704