The data collection for the vCenter server has failed
search cancel

The data collection for the vCenter server has failed

book

Article ID: 394792

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

In Aria Automation, the Data Collection for the vCenter Cloud Account fails with the following error indicating that the endpoint is not healthy:

"Data collection failed.
java.util.concurrent.CompletionException: com.vmware.photon.controller.model.adapters.vsphere.VsphereAdapterException: The connection with vAPI endpoint can not be established. Cause: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'no': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')

 at [Source: (String)"no healthy upstream"; line: 1, column: 3]"

  • The vAPI service in vCenter may show as not healthy or stopped.

              Note: in some cases, it can show as running or healthy. 

Environment

Aria Automation (vRA) 8.x

VMware vCenter Server 7.x , 8.x

Cause

The vAPI Service (vmware-vapi-endpoint) in vCenter, is not heatlthy. 

Resolution

Restart the vAPI Service (vmware-vapi-endpoint) in vCenter

  1. The following KB can be used to restart the services: https://knowledge.broadcom.com/external/article/344633/stopping-starting-or-restarting-vmware-v.html
  2. Open the cloud account in Aria Automation and verify that the Data Collection has started.
         Note: You may need to wait for 10 minutes for the data collection to be triggered automatically. 

Additional Information

Note: If the service cannot be restarted, or it does not allow for data collection to start, the vCenter may need to be rebooted.