cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Failed creating the CDS module

nevigon
Participant

Hello gurus

I stuck with creation project in SAP HANA.

I have installed image hxexsa with VMware Workstation 15 Player.

When i tried to create project from template SAP Cloud Platform Business Application I got an error

What interesting that I perfomed it before a lot of times and project was created sucessfully.

I deleted image, recreated again, cleared all Chrome settings, however I had the same result.

Maybe, someone experienced with this issue?

Previously, during creation I had green mark before message:

Now I see grey line.

Here the log file

4:30:43 PM (openSAPHANA1) [INFO] Injecting source code into builder...
4:30:43 PM (openSAPHANA1) [INFO] Source code injection finished
4:30:43 PM (openSAPHANA1) [INFO] ------------------------------------------------------------------------
4:30:43 PM (openSAPHANA1) npm install -g @sap/generator-cds
4:30:43 PM (openSAPHANA1) /hana/shared/HXE/xs/controller_data/executionagent/executionroot/f37284c7-be13-4a0f-aefc-21a87743d4e1/app/META-INF/resources/nodejs/vendor/node8.15/bin/cds-gen -> /hana/shared/HXE/xs/controller_data/executionagent/executionroot/f37284c7-be13-4a0f-aefc-21a87743d4e1/app/META-INF/resources/nodejs/vendor/node8.15/lib/node_modules/@sap/generator-cds/bin/cds-gen.js
4:30:43 PM (openSAPHANA1) + @sap/generator-cds@2.17.0
4:30:43 PM (openSAPHANA1) updated 1 package in 0.837s
4:30:43 PM (openSAPHANA1) cds-gen init . --modules db,srv --mta --srv-technology nodejs --java-package my.company --insecure --odata-version odatav4 --skip-sample-models --force --skip-install --db-technology hana
4:30:43 PM (openSAPHANA1) /hana/shared/HXE/xs/controller_data/executionagent/executionroot/f37284c7-be13-4a0f-aefc-21a87743d4e1/app/META-INF/resources/nodejs/vendor/node8.15/lib/node_modules/@sap/generator-cds/node_modules/fs-extra/lib/mkdirs/make-dir.js:85
4:30:43 PM (openSAPHANA1)       } catch {
4:30:43 PM (openSAPHANA1)               ^
4:30:43 PM (openSAPHANA1) SyntaxError: Unexpected token {
4:30:43 PM (openSAPHANA1)     at createScript (vm.js:80:10)
4:30:43 PM (openSAPHANA1)     at Object.runInThisContext (vm.js:139:10)
4:30:43 PM (openSAPHANA1)     at Module._compile (module.js:617:28)
4:30:43 PM (openSAPHANA1)     at Object.Module._extensions..js (module.js:664:10)
4:30:43 PM (openSAPHANA1)     at Module.load (module.js:566:32)
4:30:43 PM (openSAPHANA1)     at tryModuleLoad (module.js:506:12)
4:30:43 PM (openSAPHANA1)     at Function.Module._load (module.js:498:3)
4:30:43 PM (openSAPHANA1)     at Module.require (module.js:597:17)
4:30:43 PM (openSAPHANA1)     at require (internal/module.js:11:18)
4:30:43 PM (openSAPHANA1)     at Object.<anonymous> (/hana/shared/HXE/xs/controller_data/executionagent/executionroot/f37284c7-be13-4a0f-aefc-21a87743d4e1/app/META-INF/resources/nodejs/vendor/node8.15/lib/node_modules/@sap/generator-cds/node_modules/fs-extra/lib/mkdirs/index.js:3:44)
4:30:43 PM (openSAPHANA1) cds-gen init . --modules db,srv --mta --srv-technology nodejs --java-package my.company --insecure --odata-version odatav4 --skip-sample-models --force --skip-install --db-technology hana: 1
4:30:43 PM (openSAPHANA1) 
4:30:44 PM (Project Space) Project Space settings deleted successfully

How to reproduce this error.

I took a clean image. Installed it.

Create project from template

SAP Cloud Platform Business Application

next

next

next

next

Finish

and the error:

nevigon
Participant
0 Kudos

I tried to install SAP HANA Express Edition on Azure. I have the same result:

0 Kudos

Hi All, any answer on this issue? I am facing the same problem on HANA Express (on Docker)...

Seems like it is using the module @sap/generator-cds, which is deprecated

nevigon
Participant
0 Kudos

Hi. Unfortunatelly, for now, I don't have any solutions. I was thinking the problem is on my SAP HANA Express edition I have installed on vmware. However I installed it on Azure Cloud and I got the same error.

Accepted Solutions (0)

Answers (2)

Answers (2)

richardfahey
Explorer

Getting same issue.

nevigon
Participant
0 Kudos

Hello everyone.

I realized that antivirus influenced on this situation and blocked work of SAP HANA.

After turned off project creation was executed.