During the upgrade of a tile, for example, the Spring Cloud Services, new packages, logs, and releases need to be added to the VM under the
/var/vcap/data path.
If there is not enough space to allocate these new resources the deployment or
Apply Changes fails with the following error:
task 983507 | 11:44:43 | Updating instance spring-cloud-services: spring-cloud-services/27386766-2ae3-4fd2-b744-ecd3d8666df2 (0) (canary) (00:00:14)
Updating deployment:
Expected task '983507' to succeed but state is 'error'
Exit code 1
L Error: Response exceeded maximum allowed length
The Debug logs also show
RpcRemoteException errors:
D, [2021-01-11T11:44:57.056232 #20973] [canary_update(spring-cloud-services/27386766-2ae3-4fd2-b744-ecd3d8666df2 (0))] DEBUG -- DirectorJobRunner: (0.001686s) (conn: 47357401526820) COMMIT
E, [2021-01-11T11:44:57.056833 #20973] [canary_update(spring-cloud-services/27386766-2ae3-4fd2-b744-ecd3d8666df2 (0))] ERROR -- DirectorJobRunner: Error updating canary instance: #<Bosh::Director::RpcRemoteException: Response exceeded maximum allowed length>
The error does not mention space issues because the BOSH Director can't provide a clear message or check for 'sufficient space' since it does not know the implementation of individual BOSH releases. There may be enough space for the
bosh-agent to download the package blob, but BOSH can't know how much space a running job will consume.