Skip to Content
0
Feb 09, 2020 at 06:21 AM

HANA Express 2.0 SP04 - Building HDI: Error No Service definition found...

3027 Views

Dear experts,

I recently have a problem to build the [db] part of a project that worked very well before. I should say I deleted all applications including the di-builder in the admin UI which wasn't very clever I suppose. However, meanwhile I can build my other projects again but not that one. Error occurs when building either the [db] part or the complete project. Node.js service can be built.

[cds] - building project [/hana/shared/HXE/xs/controller_data/executionagent/executionroot/f62478c3-7e7f-4ab3-85e6-63a8cb1fb199/app/META-INF/.sap_java_buildpack/tomcat/temp/builder/hdi-builder/builds/build-3724301889431174320/ic2019WhseVizOnHANA], clean [true]
[cds] - building module [db] using [Hana DB Module Builder]
[cds] - model: db/data-model.cds, srv/whse-service.cds

3:00:11 PM (DIBuild) 
[cds] - building module 
[srv] using [Node CF Module Builder]
[cds] - model: db/data-model.cds, srv/whse-service.cds
[cds] - done > wrote output to:
  db/src/gen/.hdiconfig
  db/src/gen/.hdinamespace
  db/src/gen/RESOURCESERVICE_RESOURCE.hdbcds
  db/src/gen/WAREHOUSEBINTYPESERVICE_BINTYPES.hdbcds
  db/src/gen/WAREHOUSESERVICE_BINS.hdbcds
  db/src/gen/WHSEVIZ_WAREHOUSEBINS_BINTABLE.hdbcds
  db/src/gen/WHSEVIZ_WAREHOUSEBINTYPES_BINTYPE.hdbcds
  db/src/gen/WHSEVIZ_WHSERESOURCES_RESOURCE.hdbcds
  db/src/gen/WHSEVIZ_WHSERESOURCES_RESOURCEDATA.hdbcds
  db/src/gen/WHSEVIZ_WHSERESOURCES_RESOURCETYPE.hdbcds
  db/src/gen/WHSEVIZ_WHSERESOURCES_RTLSTAGDATA.hdbcds
  db/src/gen/WHSEVIZ_WHSERESOURCES_RTLSTAGDATASTREAM.hdbcds
  srv/gen/csn.json
[cds] - time: 519.112ms
up to date in 4.386s
> deploy@ start /hana/shared/HXE/xs/controller_data/executionagent/executionroot/f62478c3-7e7f-4ab3-85e6-63a8cb1fb199/app/META-INF/.sap_java_buildpack/tomcat/temp/builder/hdi-builder/builds/build-3724301889431174320/ic2019WhseVizOnHANA/db
> node node_modules/@sap/hdi-deploy/deploy.js --auto-undeployError: no service definition found; there must be at least one service definition for the deployment target(0s 43ms)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deploy@ start: `node node_modules/@sap/hdi-deploy/deploy.js --auto-undeploy`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the deploy@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /hana/shared/HXE/xs/controller_data/executionagent/executionroot/f62478c3-7e7f-4ab3-85e6-63a8cb1fb199/app/META-INF/cache/node8.15/.npm/_logs/2020-02-09T06_00_09_576Z-debug.log

3:00:11 PM (Builder) Build of /ic2019WhseVizOnHANA/db failed.

So the error I see is "there must be at least one service definition ..." but what does that mean? Any other place to look?

Thank you in advance!