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
VMware Tanzu Platform - Cloud Foundry
There could be a few causes to this failure.
Some of the options that can be tried to resolve this error are: