This issue occurs when the size of the staging result file exceeds 20 KB limit.
The staging result file is similar to a temporary log, file including staging information such as start command line and so on, which is generated by Buildpack implementation. As of November, 2021, once the file size exceeds the hard-coded 20 KB limit, application staging fails. As a result,
cf push itself fails for the end users.
The size of the staging result file tends to be bigger when specifying a longer start command via
the app manifest file.
For example, you may see this issue if specifying Java system environment variable settings with very long strings in the app manifest for a Java application as below.
---
applications:
- name: too-long-env-variables
instances: 1
:
env:
JBP_CONFIG_JAVA_MAIN: '{ arguments: "-Denv_val=setting .... too_long_strings_exceeding_20KB_limit" }'
This issue tends to occur easily with Java applications using Java Buildpack. By default, the size of the staging result file generated by Java Buildpack is 16KB. As a result, you experience an issue by adding only 4 KB worth of strings via the app manifest file.
To resolve this issue, reduce the size of excessively long strings in the app manifest file.