When starting or staging an application, the cf cli returns the insufficient resources error. The error message looks like the following:
2016-03-16T15:19:58.16+0100 [API/0] ERR Failed to stage application: insufficient resources
When getting this error, it means that you do not have enough free, unreserved space in the environment to either start or stage the application. To start an application, you need to have at least the requested memory limit in free memory and the requested disk quota in free disk space. To stage an application, you need to have at least 1G of memory or the requested memory limit free, whichever one is larger, and you need to have at least 6G of free disk space. If you do not meet these requirements, starting or staging the app will fail with an insufficient resources error.
The simplest resolution is to add more Diego Cells. This will increase the available capacity on the platform and should clear up the insufficient resource errors.
If you are skeptical that the platform is actually low on resources, you can perform the following steps to investigate more:
If you need additional assistance investigating why you're receiving insufficient resource errors, please open a support ticket.