App failing during staging with 'no space left on device' error
search cancel

App failing during staging with 'no space left on device' error

book

Article ID: 425732

calendar_today

Updated On:

Products

VMware Tanzu Platform - Cloud Foundry

Issue/Introduction

Staging of an app fails with 'No space left on device' error message.

Output of 'cf push' with the error message:

$ cf push
Pushing app example-app to org test / space test as admin...
Applying manifest file /home/test/example-app/manifest.yml...

Updating with these attributes...
  ---
  applications:
+ - name: example-app
    disk-quota: 2048M
    memory: 256M
+   default-route: true
+   buildpacks:
+   - nodejs_buildpack
+   command: node server.js
Manifest applied
Packaging files to upload...
Uploading files...
 838 B / 838 B [======================================================================================================================================] 100.00% 1s

Waiting for API to complete processing files...

Staging app and tracing logs...
StagingError - Staging error: staging failed
FAILED

 

The app logs show the following latest lines:

   2026-01-23T17:54:32.94-0500 [STG/0] OUT Contrast Security no credentials found. Will not write environment files.
   2026-01-23T18:00:28.93-0500 [STG/0] ERR Failed to compress build artifacts:
   2026-01-23T18:00:28.93-0500 [STG/0] ERR gzip: stdout: No space left on device
   2026-01-23T18:00:28.93-0500 [STG/0] ERR /usr/bin/tar: /tmp/output-cache: Wrote only 2048 of 10240 bytes
   2026-01-23T18:00:28.93-0500 [STG/0] ERR /usr/bin/tar: Child returned status 1
   2026-01-23T18:00:28.93-0500 [STG/0] ERR /usr/bin/tar: Error is not recoverable: exiting now
   2026-01-23T18:00:28.93-0500 [STG/0] ERR : exit status 2
   2026-01-23T18:00:28.95-0500 [STG/0] OUT Exit status 1
   2026-01-23T18:00:30.18-0500 [STG/0] OUT Cell xxx stopping instance yyy
   2026-01-23T18:00:30.18-0500 [STG/0] OUT Cell xxx destroying container for instance yyy
   2026-01-23T18:00:30.31-0500 [API/1] ERR Failed to stage build: staging failed
   2026-01-23T18:00:32.02-0500 [STG/0] OUT Cell xxx successfully destroyed container for instance yyy

Environment

VMware Tanzu Platform - Cloud Foundry

Cause

There could be a few causes to this failure. 

  • Disk quota limit was reached
  • The existing cache has grown over time
  • Large sized dependencies

Resolution

Some of the options that can be tried to resolve this error are:

  • Clear the existing cache by deleting the app and run 'cf push' again
  • Increase the disk_quota in the manifest.yml
  • Review the dependencies (e.g., dependencies section in the package.json file) to see if there are huge testing binaries or graphical assets.