$ bosh -d cf-a9eaa91d4bbbca8a09a4 manifest | grep staging_disk_limit_mb staging_disk_limit_mb: 6144This staging_disk_limit_mb configuration is the minimum limit staging disk size.
2023-01-19T13:46:57.35-0600 [STG/0] ERR Failed to compress build artifacts: exit status 2Most times such an error can be solved by implementing offline mode. In the event that all other measures have been attempted but the disk size still gets exceeded then there is another workaround available.
cf push --no-start
cf app simpleapp100 --guid 36e436eb-91ac-4d04-8d94-89ce269e3a17
cf curl '/v3/apps/36e436eb-91ac-4d04-8d94-89ce269e3a17/packages?order_by=-created_at' | jq -r '.resources[0].guid' c67fc480-b70e-486a-ac3a-dd5c222385eb
cf curl /v3/builds -X POST -H "Content-type: application/json" \ -d '{ "staging_disk_in_mb": 8192, "package": { "guid": "c67fc480-b70e-486a-ac3a-dd5c222385eb" } }'
garden/garden.stdout.log:{"timestamp":"2023-02-16T21:35:47.425677455Z","level":"info","source":"guardian","message":"guardian.create.volume-creator.image-plugin-create.grootfs.create.groot-creating.making-image.overlayxfs-creating-image.applying-quotas.run-tardis.tardis.ending","data":{"args":["limit","--disk-limit-bytes","8589934592" <rest of log omitted for brevity>
"--disk-limit-bytes","8589934592"
Criteria
The following criteria must be met before step 4 is successful:
bosh -d cf-a9eaa91d4bbbca8a09a4 manifest | grep maximum_app_disk_in_mb maximum_app_disk_in_mb: 10240The maximum_app_disk_in_mb is exposed in the TAS tile:
cf curl '/v3/apps/36e436eb-91ac-4d04-8d94-89ce269e3a17/builds?order_by=-created_at' | jq '.resources[0].links.droplet' { "href": "https://api.run-03.slot-34.tanzu-gss-labs.vmware.com/v3/droplets/e023dfc6-1d6f-4282-bc57-fb3ceab5f903" }
cf curl '/v3/droplets/e023dfc6-1d6f-4282-bc57-fb3ceab5f903/download' --output ~/simpleapp100/droplet.tgz OK
cf push --droplet ~/simpleapp100/droplet.tgz