cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Tutorials: https://developers.sap.com/tutorials/hana-cloud-create-db-project.html
--------------------------

Write here what you need help with ...

Hello 🙂

At the step 4.2 of tutorial

https://developers.sap.com/tutorials/hana-cloud-create-db-project.html

The deployment fails, with the error :

Error running command _hanaExplorerView.deployFromTree: Deployment failed with code 1, see terminal for more details. This is likely caused by the extension that contributes _hanaExplorerView.deployFromTree.

Terminal :

Executing task: echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)

Prepared environment for deployment

npm WARN config production Use `--omit=dev` instead.

deploy@ /home/user/projects/DM/db

└── @sap/[email protected]

> start

> node node_modules/@sap/hdi-deploy/deploy.js --exit

VCAP_SERVICES: undefined

Deployment ended at 2023-08-14 11:47:08

Error: service ${service-name} not found; the service definition does not exist.

(0s 235ms)

* The terminal process "/bin/bash '-c', 'echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)'" terminated with exit code: 1.

* Terminal will be reused by tasks, press any key to close it.

* Executing task: echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)

Prepared environment for deployment

npm WARN config production Use `--omit=dev` instead.

deploy@ /home/user/projects/DM/db

└── @sap/[email protected]

> start

> node node_modules/@sap/hdi-deploy/deploy.js --exit

VCAP_SERVICES: undefined

Deployment ended at 2023-08-14 12:32:41

Error: service ${service-name} not found; the service definition does not exist.

(0s 232ms)

* The terminal process "/bin/bash '-c', 'echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)'" terminated with exit code: 1.

* Terminal will be reused by tasks, press any key to close it.

* Executing task: echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)

Prepared environment for deployment

npm WARN config production Use `--omit=dev` instead.

deploy@ /home/user/projects/DM/db

└── @sap/[email protected]

> start

> node node_modules/@sap/hdi-deploy/deploy.js --exit

VCAP_SERVICES: undefined

Deployment ended at 2023-08-14 12:56:28

Error: service ${service-name} not found; the service definition does not exist.

(0s 130ms)

* The terminal process "/bin/bash '-c', 'echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)'" terminated with exit code: 1.

* Terminal will be reused by tasks, press any key to close it.

What do you think ?

This page does not answer the question : https://answers.sap.com/questions/13326140/deployment-of-the-database-code-fails-with-a-code.html

0 Likes
View Entire Topic
Pannaga_Hegde1
Discoverer
0 Likes

Hello Alixpel,

Please make sure whether you have created the roles and granted those roles to the user. This issue occurs either if you haven't granted those roles to the user or you haven't created the roles at all.

Thank you,

Pannaga G Hegde