on 2020 Aug 12 7:08 PM
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)
Request clarification before answering.
Hello @todd fisher
If you are using a trial account then go to your cockpit and check if you are having multiple instances created. Go to service instances and delete all the instances then go back to your SAP Business Application studio and run cds deploy --to hana command
let me know if it works 🙂
Thanks and regards,
Gargi Deshpande
gargi.deshpande@sap.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
30 | |
22 | |
16 | |
8 | |
7 | |
7 | |
5 | |
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.