HealthWatch's push-apps errand fails with CF-AppPackageInvalid error
search cancel

HealthWatch's push-apps errand fails with CF-AppPackageInvalid error

book

Article ID: 293412

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

When updating or upgrading Health Watch Tile, your deployment fails containing this error:
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.


Resolution

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.