cap-js / notifications

CDS Plugin that provides support for publishing business notifications in SAP Build WorkZone.
https://cap.cloud.sap/docs/
Apache License 2.0
7 stars 2 forks source link

"notification-content-deployment" Application Start Failed due to insufficient space quota #42

Closed gopalanand333 closed 4 months ago

gopalanand333 commented 8 months ago

Hi, I am trying to deploy incident management application, the notification-content-deployment is failing due to insufficient space quota. Here's the log

2024-01-29T11:55:12.915+0000 [CELL/0] STDERR Copying into the container failed: stream-in: nstar: error streaming in: exit status 2. Output: tar: ./app/node_modules/@sap/cds-dk/node_modules/@sap/hdi-deploy/node_modules/@sap/hana-client/prebuilt/linuxppc64le-gcc6/hana-client.node: Cannot write: No space left on device
2024-01-29T11:55:12.915+0000 [CELL/0] STDERR tar: ./app/node_modules/@sap/cds-dk/node_modules/@sap/hdi-deploy/node_modules/@sap/hana-client/prebuilt/darwinarm64-xcode12: Cannot mkdir: No space left on device
2024-01-29T11:55:12.915+0000 [CELL/0] STDERR tar: ./app/node_modules/@sap/cds-dk/node_modules/@sap/hdi-deploy/node_modules/@sap/hana-client/prebuilt/darwinarm64-xcode12: Cannot mkdir: No space left on device
2024-01-29T11:55:12.915+0000 [CELL/0] STDERR tar: ./app/node_modules/@sap/cds-dk/node_modules/@sap/hdi-deploy/node_modules/@sap/hana-client/prebuilt/darwinarm64-xcode12/hana-client.node: Cannot open: No such file 

Increasing the space disk quota to Instance Disk500 MB starts the application. Currently, the mta generated by cds add mta has default disk-quota: 256MB. It needs to be increased. Here's the current mta

  - name: notification-content-deployment
    type: nodejs
    path: gen/srv
    parameters:
      no-route: true
      no-start: true
      memory: 256MB
      disk-quota: 256MB
      tasks:
        - name: notification-content-deployment
          command: "node node_modules/@cap-js/notifications/lib/content-deployment.js"
          memory: 256MB
          **disk-quota: 256MB**
    requires:
      - name: incident-management-destination
      - name: incident-management-auth
      - name: incident-management-db
      - name: incident-management-alerts
schiwekM commented 4 months ago

Will be fixed with next cds-dk release - than it should generate 1GB of disk-quota