Skip to Content
0
Jan 14, 2021 at 08:21 PM

CAP: CDS deploy to hana trial failed. Wrong service type created

158 Views

Hi

Iam following the Tutorial for SCP Onboarding: CAP App from this link

https://www.youtube.com/watch?v=6mOKNABXyec

I have trial account. I went through all the steps but when I try to deploy using the following command as per the tutorial:

cds deploy --to hana

I get the following error:

status:    create failed
message:   Failed to open connection to the database, because of: Failed to get connection for database '4e2a51fc-43c2-4c9d-af69-181dfd1ee823' (4e2a51fc-43c2-4c9d-af69-181dfd1ee823.hana.trial-eu10.hanacloud.ondemand.com:443), because of: SAP DBTech JDBC: Cannot connect to jdbc:sap://4e2a51fc-43c2-4c9d-af69-181dfd1ee823.hana.trial-eu10.hanacloud.ondemand.com:443 [Object is closed: com.sap.db.jdbc.SecureChannelSession@2037dadb 4e2a51fc-43c2-4c9d-af69-181dfd1ee823.hana.trial-eu10.hanacloud.ondemand.com:443 ConnectionID:0 SessionID:0 on sun.nio.ch.UnixAsynchronousSocketChannelImpl[connected local=/10.155.51.41:59040 remote=4e2a51fc-43c2-4c9d-af69-181dfd1ee823.hana.trial-eu10.hanacloud.ondemand.com/18.157.215.35:443]].
started:   2021-01-14T19:59:06Z
updated:   2021-01-14T19:59:06Z

See image:

It created hana service, but not to hana trial. How can I set the deployment to create the hana trial service, instead of hana?

In the tutorial, creating service to hana will fail and it will automatically create hana trial service. See image: