on 03-09-2017 12:31 PM
Hello
I got error when I push my first XS app.
I took the app from Github (myapp1) then I added Node Modules then I pushed it.
Here my error logs:
Connected, dumping recent logs for app "myapp1-xsjs" 09.03.17 12:29:29.339 [STG/4] OUT Unpacking Node.js archive... 09.03.17 12:29:29.350 [STG/4] OUT Omitting npm install: node_modules directory is already present 09.03.17 12:29:29.350 [STG/4] OUT Copying SSL CA certificates... 09.03.17 12:29:37.153 [API] OUT Staged application "myapp1-xsjs" using buildpack "sap_nodejs_buildpack" creating droplet '7cf6beb7-4566-4591-aa19-0f015f9d16a0' (duration 14s). 09.03.17 12:29:37.873 [API] OUT Updated application "myapp1-xsjs" (state: STARTED -> STOPPED). 09.03.17 12:29:37.885 [API] OUT Stopping 1 instance(s) of application "myapp1-xsjs". 09.03.17 12:29:37.995 [API] OUT Updated application "myapp1-xsjs" (state: STOPPED -> STARTED). 09.03.17 12:29:38.007 [API] OUT Starting 1 instance(s) of application "myapp1-xsjs". 09.03.17 12:29:44.561 [API] OUT Starting new instance '175254a7-59f4-46f8-a87e-3b9c72a427e8' of application "myapp1-xsjs" (port 50011, index 0). 09.03.17 12:29:46.520 [APP/4-0] ERR /hana/shared/HPO/xs/ea_data/gisu546/executionroot/175254a7-59f4-46f8-a87e-3b9c72a427e8/app/node_modules/sap-xsjs/node_modules/sap-fibers/fibers.js:19 09.03.17 12:29:46.521 [APP/4-0] ERR throw new Error('`'+ modPath+ '.node` is missing. Try reinstalling `node-fibers`?'); 09.03.17 12:29:46.521 [APP/4-0] ERR ^ 09.03.17 12:29:46.521 [APP/4-0] ERR 09.03.17 12:29:46.521 [APP/4-0] ERR Error: `/hana/shared/HPO/xs/ea_data/gisu546/executionroot/175254a7-59f4-46f8-a87e-3b9c72a427e8/app/node_modules/sap-xsjs/node_modules/sap-fibers/bin/linux-x64-LE-v8-5.1/fibers.node` is missing. Try reinstalling `node-fibers`? 09.03.17 12:29:46.521 [APP/4-0] ERR at Object.<anonymous> (/hana/shared/HPO/xs/ea_data/gisu546/executionroot/175254a7-59f4-46f8-a87e-3b9c72a427e8/app/node_modules/sap-xsjs/node_modules/sap-fibers/fibers.js:19:8) 09.03.17 12:29:46.521 [APP/4-0] ERR at Module._compile (module.js:570:32) 09.03.17 12:29:46.521 [APP/4-0] ERR at Object.Module._extensions..js (module.js:579:10) 09.03.17 12:29:46.521 [APP/4-0] ERR at Module.load (module.js:487:32) 09.03.17 12:29:46.521 [APP/4-0] ERR at tryModuleLoad (module.js:446:12) 09.03.17 12:29:46.521 [APP/4-0] ERR at Function.Module._load (module.js:438:3) 09.03.17 12:29:46.521 [APP/4-0] ERR at Module.require (module.js:497:17) 09.03.17 12:29:46.521 [APP/4-0] ERR at require (internal/module.js:20:19) 09.03.17 12:29:46.521 [APP/4-0] ERR at Object.<anonymous> (/hana/shared/HPO/xs/ea_data/gisu546/executionroot/175254a7-59f4-46f8-a87e-3b9c72a427e8/app/node_modules/sap-xsjs/node_modules/sap-fibrous/lib/fibrous.js:6:11) 09.03.17 12:29:46.521 [APP/4-0] ERR at Object.<anonymous> (/hana/shared/HPO/xs/ea_data/gisu546/executionroot/175254a7-59f4-46f8-a87e-3b9c72a427e8/app/node_modules/sap-xsjs/node_modules/sap-fibrous/lib/fibrous.js:192:4) 09.03.17 12:29:52.866 [API] OUT Cleared instance '840d8505-2c30-4c93-8a04-21fb0139bb45' of application "myapp1-xsjs" (port 50012, pid 11684).
Can you please help with this ?
I don't know how can I fix it.
Best Regards
Houssem
Hi there, I got the same error after update my XSA (to 1.0.66).
Looks like the older sap-xsjs nodejs module have difficulties to compile his own fiber module dependency with the most recent nodejs version available on xsa nodejs build pack.
Try to set the nodejs engine compatibility on your app by setting the following inside package.json file (works for me):
"dependencies": {
<your modules dependencies>...
},
"engines": {
"node": ">=4.4.6 <5"
}
You could also try to replace your sap-xsjs nodejs lib with the new sap@xsjs latest version. It will probably works too (just remember to take off the nodejs-engine restriction of package.json in this case).
Best Regards
Rafael Yegros.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.