push-apps-manager errand fails with Codependent step exited error
search cancel

push-apps-manager errand fails with Codependent step exited error

book

Article ID: 298166

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

You are trying to upgrade TAS tile with push-apps-errand errand turned on.

push-apps-manager errand is particularly failing when pushing search-server and invitations app with error "Codependent step exited", here is a sample deployment error log
 
 [API/5] OUT App instance exited with guid f0565ae7-d27e-4f0b-a82e-b8744a5d0a16 payload: {"instance"=>"8dd582ac-4f8e-4a1c-4d85-2c5a", "index"=>0, "cell_id"=>"ccfbb8d8-865a-4376-bae4-c512e970b4ff", "reason"=>"CRASHED", "exit_description"=>"Codependent step exited", "crash_count"=>3, "crash_timestamp"=>1697068922522990400, "version"=>"bdfb24b1-4d06-4336-b383-aa865517da93"}


Environment

Product Version: 4.0

Resolution

This issue is triggered if using:
  • using NodeJS Buildpack versions from 1.8.10 till 1.8.16
  • AND search-server, invitations app have APPD_AGENT env variable

Here are options to resolve the issue:
  • Remove APPD_AGENT env variable:
To check APPD_AGENT env variable are set on those app
cf target -o system -s system
cf env <search-server-app> 
cf env <p-invitations-app>
To unset
cf target -o system -s system
cf unset-env <search-server-app> APPD_AGENT 
cf restage <search-server-app> 
cf unset-env <p-invitations-app> APPD_AGENT
cf restage <p-invitations-app>

Once APPD_AGENT env variable is unset OR NodeJS buildpack is upgraded you can re run the errand
 
bosh -d <cf-deployment> run-errand push-apps-manager