2019-07-16 17:42:09 ERROR pushapps.AppDeployer [cloudfoundry-client-nio-3] Encountered error: org.cloudfoundry.client.v2.ClientV2Exception: CF-AppPackageInvalid(150001): The app package is invalid: bits have not been uploaded with message CF-AppPackageInvalid(150001): The app package is invalid: bits have not been uploaded while conducting operation Start application opsmanager-health-check
This error is caused when push-apps errand runs on both healthwatch-forwarder VMs. This resulted in a race condition between the VMs as two or more healthwatch-forwarder VMs tried to upload the bits for the Health Watch apps.
As a workaround, run the errand manually with the --instance=healthwatch-forwarder/first flag. For example:
bosh -d <p-healthwatch-deployment> run-errand push-apps --instance=healthwatch-forwarder/first
Alternatively, you could scale down healthwatch-forwarder to 1 VM and re-run the errand.