There are a few of options to resolve this issue:
- Update the org quotas so there is enough space for the staging process to run.
- Scale down the app memory in Apps Manager or with the command: cf scale APP-NAME> -m <MEMORY>
- Delete applications that are not being used in that org.
This issue is caused by the bug fix
V3 Apps do not get the proper amount of memory for staging #1802, where staging apps could fail due to insufficient memory allotted. This fix was released in Cluster API (CAPI) 1.100.0. Any TAS for VMs version containing this CAPI version or a later version experience this behavior.
In TAS for VMs 2.11+, the memory required for staging containers is now equal to the memory size of the app. In other words, an org needs to have at least the same amount of free memory as the app memory limit to prevent restaging from failing.
For all applications to be able to restage, there has to be as much free memory as the largest memory limit that an application has in the space. In other words, If you have 3 apps in a space: app1, app2 and app3 with 1GB, 2GB and 3GB allocated respectively, you would need at least 3 GB free in the org so all apps can restage. If you had 2 GB, only app1 and app2 would be able to restage.
Note: This article uses the following terms indistinctly: memory limit, memory size and memory allocation; meaning the memory reserved for an application when using
-m flag in "
cf push" command.