2 weeks ago
Hello SAP Gurus,
I was doing some test analysis to use the UPS instance (User Provided Service), and access SAP BTP hana cloud DB.
I created one schema(UPS_SCHEMA) and table inside it. Now i provided the details to access the DB.
Created a CAP project. Below is the MTA file, which i deployed to BTP -
_schema-version: 3.3.0
ID: UPS
version: 1.0.0
description: "A simple CAP project."
parameters:
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm ci
- npx cds build --production
modules:
- name: UPS-srv
type: nodejs
path: gen/srv
parameters:
buildpack: nodejs_buildpack
readiness-health-check-type: http
readiness-health-check-http-endpoint: /health
memory: 256M
disk-quota: 256M
build-parameters:
builder: npm
provides:
- name: srv-api # required by consumers of CAP services (e.g. approuter)
properties:
srv-url: ${default-url}
requires:
- name: ups-database-external
- name: UPS-auth
- name: UPS-db-deployer
type: hdb
path: gen/db
parameters:
buildpack: nodejs_buildpack
memory: 256M
disk-quota: 256M
requires:
- name: ups-database-external
resources:
- name: ups-database-external
type: org.cloudfoundry.existing-service
parameters:
service: User-Provided
service-name: ups-database-external
- name: UPS-auth
type: org.cloudfoundry.managed-service
parameters:
service: xsuaa
service-plan: application
path: ./xs-security.json
config:
xsappname: UPS-${org}-${space}
tenant-mode: dedicated
Once i tried to open nodejs Service link, it shows the below error -
502 Bad Gateway: Registered endpoint failed to handle the request.
I checked the logs of the service, which shows "out of memory".
I already have the schema and the data in the table for the particular user in hana DB.
I really stuck here.
Looking for guidance to help me out and to understand the process.
Request clarification before answering.
User | Count |
---|---|
51 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.