Bosh deployment fails with task error: Task with id could not be found
search cancel

Bosh deployment fails with task error: Task with id could not be found

book

Article ID: 406479

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Integrated Edition Operations Manager VMware Tanzu Platform - Cloud Foundry

Issue/Introduction

A bosh deployment may fail while updating an instance with the following error: Task with id ###### could not be found

Example:

Task 99 | 01:23:05 | Updating instance worker: worker/######### (4) (00:01:10)
                   L Error: Action Failed get_task: Task with id ###### could not be found
Task 99 | 01:23:06 | Error: Action Failed get_task: Task with id ###### could not be found

Cause

The bosh agent stores task IDs in memory. This error indicates the agent was restarted unexpectedly

This error may also be caused by duplicate IPs

Resolution

  • First check if there are any duplicate IPs on the network with the same IP as the failing instance
  • If there are no duplicate IPs, recreating the instance might resolve the issue: bosh -d <DEPLOYMENT> recreate <INSTANCE/GUID> --no-converge --fix
  • If the recreate was successful, try running your deployment again

If the above steps don't resolve the issue, there may be a bigger issue with the bosh-agent. Please collect the agent logs from the failing instance and open a case with Tanzu Support

To collect bosh agent logs: bosh -d <DEPLOYMENT> logs <INSTANCE/GUID> --agent