cancel
Showing results for 
Search instead for 
Did you mean: 

Business Application Studio: Error: service not found when use cds deploy

nika_sun
Advisor
Advisor
0 Kudos
427

I 'm following https://developers.sap.com/tutorials/hana-cloud-dl-cap-app.html

to build HANA db CAP app in BAS.

In last step when running configuration, libraries were automatically installed

but the deployment failed with below error

Processing grants files...
 Processing "src/CON_HDL_BOOK_SAMPLEL.hdbgrants"...
Deployment ended at 2024-01-04 03:09:55
Error: service ServiceName_1 not found; the service definition does not exist.
(1s 934ms)

Error: HDI deployment failed with exit code 1
    at HdiDeployUtil.deploy (/home/user/.node_modules_global/lib/node_modules/@sap/cds-dk/lib/deploy/to-hana/hdiDeployUtil.js:47:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async HanaDeployer.deploy (/home/user/.node_modules_global/lib/node_modules/@sap/cds-dk/lib/deploy/to-hana/hana.js:114:9)
    at async Object.deploy (/home/user/.node_modules_global/lib/node_modules/@sap/cds-dk/bin/deploy/index.js:129:5)
    at async Object.exec (/home/user/.node_modules_global/lib/node_modules/@sap/cds-dk/bin/cds.js:54:16)

Attached the packagejson.txt package-lock.txt

Seems it was working well before the new deploy @sap/hid_deploy@4.9.1 was published.

Before this error occured, error occurred during HANA project objects deployment,tried to re-deploy, same issue happend.

npm WARN config production Use `--omit=dev` instead.
npm ERR! code ELSPROBLEMS
npm ERR! missing: @sap/hdi-deploy@^4, required by deploy@
deploy@ /home/user/projects/HDL_BOOK_SAMPLEL/gen/db
└── UNMET DEPENDENCY @sap/hdi-deploy@^4


npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2024-01-04T03_05_13_091Z-debug-0.log

Log detail:
35 verbose stack Error: missing: @sap/hdi-deploy@^4, required by deploy@
35 verbose stack     at LS.exec (/local/asdf-inst-inbox-runtime/installs/nodejs/18.14.2/lib/node_modules/npm/lib/commands/ls.js:203:9)
35 verbose stack     at async module.exports (/local/asdf-inst-inbox-runtime/installs/nodejs/18.14.2/lib/node_modules/npm/lib/cli.js:134:5)
36 verbose cwd /home/user/projects/HDL_BOOK_SAMPLEL/gen/db
37 verbose Linux 5.15.114-gardenlinux-cloud-amd64
38 verbose node v18.14.2
39 verbose npm  v9.5.0
40 error code ELSPROBLEMS
41 error missing: @sap/hdi-deploy@^4, required by deploy@
42 verbose exit 1
43 timing npm Completed in 44ms
44 verbose code 1

I tried to delete the package.json and re-run npm install ,then deploy the CAP application using command

cds deploy

the same error happened

Accepted Solutions (0)

Answers (0)