Image synchronization fails in VMware Aria Automation with error: "Image synchronization failed"
search cancel

Image synchronization fails in VMware Aria Automation with error: "Image synchronization failed"

book

Article ID: 443627

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

com.vmware.vapi.endpoint.badGateway: The endpoint, while acting as a gateway, received an invalid response from an upstream server.

Authentication-related failure: 401 Unauthorized errors in provisioning-service-app.log during internal event polling.

Image synchronization fails in VMware Aria Automation. When you attempt to synchronize images, the following error message is observed:

Image synchronization failed. Image synchronization failed when processing content library items. Cannot list libraries (vapi.provider.aggregator.invokemethod.exception Error in aggregator invocation of provider method:com.vmware.content.library.list)

The following error is observed in provisioning-service-app.log (services-logs\prelude\provisioning-service-app\file-logs\provisioning-service-app.log):

ERROR provisioning [host='provisioning-service-app-XXXX-XXXX' thread='vsphere-image-enum-XX' user='' org='' trace='' parent='' span=''] c.v.p.c.m.a.vsphere.vapi.VapiClient.throwIfError:284 - Cannot list libraries Exception [{"com.vmware.vapi.std.errors.internal_server_error":{"data":{"OPTIONAL":null},"error_type":{"OPTIONAL":"INTERNAL_SERVER_ERROR"},"messages":[{"STRUCTURE":{"com.vmware.vapi.std.localizable_message":{"args":["com.vmware.content.library.list"],"default_message":"Error in aggregator invocation of provider method: com.vmware.content.library.list","localized":{"OPTIONAL":null},"id":"vapi.provider.aggregator.invokemethod.exception","params":{"OPTIONAL":null}}}}]}}].

WARN provisioning [host='provisioning-service-app-XXXX-XXXX' thread='vsphere-image-enum-XX' user='' org='' trace='' parent='' span=''] c.v.p.c.model.adapters.util.TaskManager.log:416 - Patching task http://<ip>:port/provisioning/image-enumeration-tasks/vsphere-Datacenter:datacenter-X-XXXX-img-enum to FAILURE: Image synchronization failed when processing content library items. Cannot list libraries ( vapi.provider.aggregator.invokemethod.exception  Error in aggregator invocation of provider method: com.vmware.content.library.list). FAILED ERROR RESPONSE: {
  "stage": "FAILED",

Environment

Aria Automation 8.X

Cause

The issue is caused by a malfunction or unavailability of the vCenter Content Library service in general. As a result, vCenter fails to provide the list of Content Libraries through its APIs, causing VMware Aria Automation to report an error while attempting to synchronize images.

Resolution

This is either a legitimate authentication failure, requiring you to work with your Active Directory team to resolve it, or you must review the vCenter logs to verify the health of the Content Library service and determine why the Content Libraries cannot be listed. Engage your vCenter administration team to investigate the vCenter Server issue.

After you resolve the Content Library issue on the vCenter side and the libraries become accessible, retry the image synchronization operation in VMware Aria Automation and confirm the outcome.