2024 Aug 07 1:46 PM - edited 2024 Aug 07 1:56 PM
Hello community, I have a problem and I need your help to fix it.
I have a CAP application that I want to deploy to my Cloud Foundry space. I have my MTA build and when I deployed it I got this error:
#2.0#2024 08 07 12:29:04.173#Z#WARN#com.sap.cloud.lm.sl.xs2.989609fb-54b8-11ef-bbb5-eeee0a961887.OPERATION.UpdateServiceParametersTask#
######org.cloudfoundry.multiapps.controller.persistence.services.ProcessLogger########flowable-async-job-executor-thread-29393###
[UpdateServiceParametersStep] Updating service "auditoria-auth" failed: Service broker error: Service broker xsuaa failed with: Could not find xsapp entry for auditoria-auth-769f798etrial_emorales-ebwzszn2-dev!t311742#
#2.0#2024 08 07 12:29:04.178#Z#DEBUG#com.sap.cloud.lm.sl.xs2.989609fb-54b8-11ef-bbb5-eeee0a961887.OPERATION.UpdateServiceParametersTask#
######org.cloudfoundry.multiapps.controller.persistence.services.ProcessLogger########flowable-async-job-executor-thread-29393###
[UpdateServiceParametersStep] Last operation for service "auditoria-auth": {
"type" : "UPDATE",
"description" : "Service broker error: Service broker xsuaa failed with: Could not find xsapp entry for auditoria-auth-769f798etrial_emorales-ebwzszn2-dev!t311742",
"state" : "SUCCEEDED"
}#
I think my problem is in my xs-security.json file, with the "xsappname" property, but I don't see the problem at first glance, can anyone tell me what could be happening?
I share with you my xs-security.json
{
"xsappname": "auditoria",
"tenant-mode": "dedicated",
"scopes": [
{
"name": "$XSAPPNAME.Auditor",
"description": "Auditor"
}
],
"attributes": [],
"role-templates": [
{
"name": "Auditor",
"description": "generated",
"scope-references": [
"$XSAPPNAME.Auditor"
],
"attribute-references": []
}
],
"oauth2-configuration": {
"credential-types": [
"binding-secret",
"x509"
],
"redirect-uris": [
"https://*.applicationstudio.cloud.sap/**",
"https://*.hana.ondemand.com/**"
]
}
}
And I also share with you my mta.yaml:
_schema-version: '3.1'
ID: auditoria
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: auditoria-srv
type: nodejs
path: gen/srv
parameters:
buildpack: nodejs_buildpack
memory: 256MB
readiness-health-check-type: http
readiness-health-check-http-endpoint: /health
build-parameters:
builder: npm
provides:
- name: srv-api # required by consumers of CAP services (e.g. approuter)
properties:
srv-url: ${default-url}
requires:
- name: auditoria-auth
- name: auditoria-db
- name: auditoria-db-deployer
type: hdb
path: gen/db
parameters:
buildpack: nodejs_buildpack
memory: 256MB
requires:
- name: auditoria-db
- name: auditoria
type: approuter.nodejs
path: app/router
parameters:
keep-existing-routes: true
disk-quota: 256M
memory: 256M
build-parameters:
ignore: ["default-env.json", ".env"]
requires:
- name: srv-api
group: destinations
properties:
name: srv-api # must be used in xs-app.json as well
url: ~{srv-url}
forwardAuthToken: true
- name: auditoria-auth
resources:
- name: auditoria-auth
type: org.cloudfoundry.managed-service
parameters:
service: xsuaa
service-plan: application
path: ./xs-security.json
config:
xsappname: auditoria-${org}-${space}
tenant-mode: dedicated
- name: auditoria-db
type: com.sap.xs.hdi-container
parameters:
config:
schema: audit
service: hana
service-plan: hdi-shared
This problem appears within my cloud foundry space:
I can see the applications:
Anyone can help me? Thanks a lot !
Isn't this solved with your other query?
I can't deploy my xsuaa instance in my CAP applica... - SAP Community
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.