"An error occurred while connecting to depot" when trying to update the ESXi host using cluster image.
search cancel

"An error occurred while connecting to depot" when trying to update the ESXi host using cluster image.

book

Article ID: 411379

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vCenter Server

Issue/Introduction

  • Running a compliance check or remediation on a cluster using an image-based configuration fails.
  • ESXi host /var/run/log/lifecycle.log shows below log lines:
    YYYY-MM-DDTHH:MM:SS Er(11) lifecycle[25002320]: imagemanagerctl:90 vmware.esximage.Errors.DepotConnectError: ([MetadataDownloadError('http://<vCenter Server FQDN>:9084/vum/repository/hostupdate/__micro-depot__vendor-vmw__metadata-227__index__.xml', '', "Could not download from depot at http://<vCenter Server FQDN>:9084/vum/repository/hostupdate/__micro-depot__vendor-vmw__metadata-227__index__.xml, skipping (('http://<vCenter Server FQDN>:9084/vum/repository/hostupdate/__micro-depot__vendor-vmw__metadata-227__index__.xml', '', '<urlopen error [Errno -3] Temporary failure in name resolution>'))"), MetadataDownloadError('http://<vCenter Server FQDN>:9084/vum/repository/hostupdate/__micro-depot__vendor-vmw__metadata-149__index__.xml', '', "Could not download from depot at http://<vCenter Server FQDN>:9084/vum/repository/hostupdate/__micro-depot__vendor-vmw__metadata-149__index__.xml, skipping (('http://<vCenter Server FQDN>:9084/vum/repository/hostupdate/__micro-depot__vendor-vmw__metadata-149__index__.xml', '', '<urlopen error [Errno -3] Temporary failure in name resolution>'))"), MetadataDownloadError('http://<vCenter Server FQDN>:9084/vum/repository/hostupdate/__micro-depot__vendor-DEL__metadata-211__index__.xml', '', "Could not download from depot at http://<vCenter Server FQDN>:9084/vum/repository/hostupdate/__micro-depot__vendor-DEL__metadata-211__index__.xml, skipping (('http://<vCenter Server FQDN>:9084/vum/repository/hostupdate/__micro-depot__vendor-DEL__metadata-211__index__.xml', '', '<urlopen error [Errno -3] Temporary failure in name resolution>'))"),

Environment

  • VMware ESXi
  • VMware vCenter Server using vLCM with cluster images

Cause

"Temporary failure in name resolution" means the ESXi host is unable to resolve the vCenter Server referenced in the error.

Resolution

Ensure the ESXi host is able to resolve the DNS name of the vCenter Server to an IP address.

You can configure DNS using multiple methods as described in KB328870.

To edit the ESXi host's local hosts file rather than use DNS, Configure the DNS Hosts File by Using ESXCLI Commands.

Additional Information

KB398817references the same symptom with a similar error.