on 05-31-2021 6:20 AM
Greetings everyone!
I am working on a project based on SAP CAP and SAP HANA DB, in the SAP BTP environment (trial account).
Following the CAPm model, my application consists of a database module (db), a services module (srv) and an app module that is only the approuter (I don't have a Fiori UI or any other, since I don't require it).
Following these the following tutorials from Thomas Jung (and some others, to a lesser extent):
https://developers.sap.com/tutorials/hana-cloud-cap-create-project.html (from that tutorial, all of the following)
https://developers.sap.com/tutorials/hana-cloud-cap-deploy-mta.html
I have managed to advance a lot in understanding the process, and get closer to what I need to do: Deploy my application to my space in Cloud Foundry (within my SAP BTP Trial account).
However, so far I always get the same error when I try to deploy my application (the corresponding .mtar file):
Error starting application "UAM-app-srv": Some instances have crashed. Check the logs of your application for more information.
UAM-app is the name of my application, and UAM-app-srv is the service module.
In the registry in the cockpit (Most recent Application Events) I have the following message (just an excerpt) for the different events of the service module (srv) deployment:
exit_description: APP/PROC/WEB: Exited with status 1, reason: CRASHED
At the moment I have no further clues as to the cause of the error. I have thought that it could even be due to limitations of the Trial account, perhaps regarding the number of applications that can be running at the same time in the Cloud Foundry environment, could it be?
Note: I only have three applications deployed in Cloud Foundry, corresponding to the three modules of my application (the one I am dealing with here: db deployer, app and srv).
Thank you very much in advance for any helpful answers and/or comments.
P.S:
I have not published here the record that is generated in the Deployment process, with all the corresponding details, because I think it is very extensive. I can publish it, however, if someone considers that it is necessary to be able to give an answer regarding the error I have with the deployment.
Seems you're not reading the mentioned documentation exactly. You have to add an engines section to your package.json. Check out package.json#L7.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Excuse me, I didn't see the second part of your answer: "while deploying your applicaiton. Check what errors you see there. Have you specified the minimul Node.JS version as mentioned in Check the Node.js version"
A mistake on my part.
Thanks again.
Hi Gregor Wolf
Please can you help on the below issues, I have implemented CAP application using SAP BTP PostgreSQL hyperscalar servicein trial account.
Followed the blogs
https://blogs.sap.com/2020/11/16/getting-started-with-cap-on-postgresql-node.js/
Issue#1
Deployed the CAP application in SAP BTP Cloud foundry, but below service is crashed there is few log messages. Also updated the node version in package.json but still the same issue
"engines": {
"node": "^14 || ^16" },Issue#2
I am trying to connect PostgreSQL from the SAP BAS CAP using the default-env.json with VCAP_SERVICES but getting connection issue
[cds] - Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -104,
code: 'ECONNRESET',
syscall: 'read',
id: '1348379',
level: 'ERROR',
timestamp: 1661942574081
}
Please do not hijack solved questions. Please post a new question. But before you do this for your PostgreSQL issue try my pg-beershop sample project.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.