Skip to Content

cds deploy --to hana is broken

I get an error when executing cds deploy --to hana:

cds deploy --to 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 <UserID>...
Service offering 'hana' not found.
FAILED
[cds.deploy] - Running 'cf marketplace -s hanatrial' with options {}
Getting service plan information for service hanatrial as <UserID>...
Service offering 'hanatrial' not found.
FAILED
[ERROR] [cds.deploy] - Services not found
    at HanaDeployer._getCfServiceName (/Users/<UserID>/.nvm/versions/node/v12.16.3/lib/node_modules/@sap/cds-dk/node_modules/@sap/cds/bin/deploy/to-hana/hana.js:228:15)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async HanaDeployer.deploy (/Users/<UserID>/.nvm/versions/node/v12.16.3/lib/node_modules/@sap/cds-dk/node_modules/@sap/cds/bin/deploy/to-hana/hana.js:41:27)
    at async Object.deploy (/Users/<UserID>/.nvm/versions/node/v12.16.3/lib/node_modules/@sap/cds-dk/node_modules/@sap/cds/bin/deploy/index.js:83:5)

I noticed that in the marketplace the service is actually called "hana-db" and not "hana":

So instead of

cf marketplace -s hana   
Getting service plan information for service hana as <UserID>...
Service offering 'hana' not found.
FAILED

I guess it needs to be

cf marketplace -s hana-db
Getting service plan information for service hana-db as <UserID>...
OK
service plan   description        free or paid
standard       Standard Edition   paid
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 31, 2020 at 04:20 PM

    Hi Dominik,

    The hana-db you see there is the HANA DB PaaS service. While the hana and hanatrial that can't be found are both the HANA HDI service broker, which means there's nothing wrong with how the cds deploy is searching for the services. Maybe these services are really not available in the space you are using. Try checking the entitlements section of your subaccount to make sure you really have either of the hana or hanatrial service.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 07, 2020 at 01:45 PM

    Please configure entitlement SAP HANA Schemas & HDI Containers with hdi-shared and deploy again

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.