Skip to Content

Failed to report quota consumption while deploying UI modules with html5 repo

Hi Guys

I am trying to deploy a UI module from a tutorial app genereated by sap capire to a html5-apps-repo service of SAP

(the bulk of the code is based on the following sample code https://github.com/SAP-samples/cloud-cap-samples/tree/master/bookshop).

I configured the ui further to be deployable in the cloud as part of a mta deployment (see attached mta file below).

After building the project using the mbt build command i try to deploy it to sap cloud.

mbt build -t ./ && cf deploy bookshop_1.0.0.mtar -f

After creating some of the services and modules the client complains that :

"Creating service "bookshop-html5-repo-host" from MTA resource "bookshop-html5-repo-host"... Service operation failed: Controller operation failed: 502 Updating service "bookshop-html5-repo-host" failed: Bad Gateway: Error creating service "bookshop-html5-repo-host" from offering "html5-apps-repo" and plan "app-host": CF-ServiceBrokerRequestRejected(10001): Service broker error: Service broker html5-apps-repo-sb failed with: Failed to report quota consumption -apps-repo" and plan "app-host": CF-ServiceBrokerRequestRejected(100 Process failed."

The trial environement seems to have enough memory and disc space. Adjusting the sizeLimit config of the repo also did not work.

Do you have any idea how i could resolve it ?

Thanks in advance.

Kamil

## Generated mta.yaml based on template version 0.2.0
## appName = bookshop
## language=nodejs; multiTenant=false
## approuter=
_schema-version: '3.1'
ID: bookshop
version: 1.0.0
description: "A simple self-contained bookshop service."
parameters:
  enable-parallel-deployments: true
  
  
build-parameters:
  before-all:
   - builder: custom
     commands:
      - npm install
      - npx cds build

modules:
 # --------------------- SERVER MODULE ------------------------
 - name: bookshop-srv
 # ------------------------------------------------------------
   type: nodejs
   path: gen/srv
   parameters:
     disk-quota: 256M
     memory: 512M
   properties:
     EXIT: 1  # required by deploy.js task to terminate 
   requires:
    # Resources extracted from CAP configuration
    - name: bookshop-db
    - name: bookshop-uaa
   provides:
    - name: srv-binding      # required by consumers of CAP services (e.g. approuter)
      properties:
        srv-url: ${default-url}

 # -------------------- SIDECAR MODULE ------------------------
 - name: db
 # ------------------------------------------------------------
   type: hdb
   path: gen/db  
   parameters:
     disk-quota: 256M
     memory: 512M
   requires:
     - name: bookshop-html5-repo-runtime
     - name: bookshop-uaa
     - name: bookshop-html5-repo-host
     - name: bookshop-db

 - name: bookshop-ui-deployer
   type: com.sap.html5.application-content
   path: deployer
   parameters:
     disk-quota: 256M
     memory: 512M
   requires:
    - name: bookshop-html5-repo-host
    - name: bookshop-ui
   build-parameters:
     requires:
       - name: bookshop-ui
         artifacts:
           - './*'
         target-path: resources/app

 - name: bookshop-ui
   type: nodejs
   path: app
   parameters:
     memory: 512M
     disk-quota: 256M
   requires:
     - name: bookshop-uaa
     - name: srv-binding
       group: destinations
       properties:
         forwardAuthToken: true
         strictSSL: true
         name: srv-binding
         url: ~{srv-url}

resources:
 # services extracted from CAP configuration
 # 'service-plan' can be configured via 'cds.requires.<name>.vcap.plan'
# ------------------------------------------------------------
 - name: bookshop-db
# ------------------------------------------------------------
   type: com.sap.xs.hdi-container
   parameters:
     service: hanatrial  # or 'hanatrial' on trial landscapes
     service-plan: hdi-shared
   properties:
     hdi-service-name: ${service-name}

# ------------------------------------------------------------
 - name: bookshop-uaa
# ------------------------------------------------------------
   type: org.cloudfoundry.managed-service
   parameters:
     service: xsuaa
     service-plan: application  
     path: ./xs-security.json
     config:
       xsappname: -${space}    #  name + space dependency
       tenant-mode: dedicated
       ##  path to xs-security.json to add roles and scope
       ## or inline definition
       # scopes:
       # - name: $XSAPPNAME...
 - name: bookshop-html5-repo-runtime
   parameters:
     service-plan: app-runtime
     service: html5-apps-repo
   type: org.cloudfoundry.managed-service

 - name: bookshop-html5-repo-host
   parameters:
      service-plan: app-host
      service: html5-apps-repo
      service-name: bookshop-html5-repo-host
      config: 
        sizeLimit: 15

   type: org.cloudfoundry.managed-service



Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.