Healthwatch push-apps fails with CF-AppPackageInvalid
search cancel

Healthwatch push-apps fails with CF-AppPackageInvalid

book

Article ID: 293393

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

Running a deployment on health watch when it fails on the push-apps errand with the error:
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 by a race condition on uploading the bits for Healthwatch apps on two or more healthwatch-forwarder VMs. 


Resolution

You can resolve this issue by re-running the errand with the --instance=healthwatch-forwarder/first parameter:
bosh -d <healthwath-deployment> run-errand push-apps --instance=healthwatch-forwarder/first

Alternatively, you can also scale healthwatch-forwarder to 1 and re-run the errand.