UnknownHostException received when registering Skyline Collector
search cancel

UnknownHostException received when registering Skyline Collector

book

Article ID: 315951

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:
  • While registering the Skyline Collector, you receive the following error:
Error: Couldn’t register due to : UploadException: Failed to upload due to exception HttpRequestException: Couldn’t send request. ExecutionException: java.net.UnknownHostException: vcsa.vmware.com: Temporary failure in name resolution


Environment

VMware Skyline Collector Appliance 2.x

Cause

This error is observed when the Skyline Collector is not able to resolve vcsa.vmware.com using the DNS Server that is set on the Skyline Collector network configuration.

The Collector appliance should be able to resolve vcsa.vmware.com and reach the VMware analytical cloud before registration.

The IP address for the webservers (vcsa.vmware.com) is changed periodically for security purposes.

Resolution

The Skyline Collector should be configured with a DNS server which can resolve public domain names. Follow one of the below options to do so.

Steps to update DNS Server details in the UI:

  1. Log into the collector VAMI page at https:/SkylineIPorFQDN:5480 using root credentials
Note: Replace SkylineIPorFQDN with the IP or FQDN of your Skyline Collector appliance
  1. Click on the Network tab
  2. Update the Primary and Secondary DNS server details
  3. Click Save

Steps to update DNS Server details via the command line:

  1. Login to the Skyline Collector virtual machine over SSH or vSphere Console using root credentials
  2. Execute this command to launch the network command-line utility:
/opt/vmware/share/vami/vami_config_net
  1. Select option 4 to update the DNS Server details


Workaround:
To workaround the issue, configure the Collector appliance to resolve the web address within the hosts file:
  1. On a different machine, execute the command to ‘ping’ or ‘nslookup’ to capture the current IP address.
ping vcsa.vmware.com
nslookup vapp-updates.vmware.com
  1. Login to the Skyline Collector virtual machine using root credentials
  2. Using a text editor, open the/etc/hosts file
  3. Append the current IP address for ‘vcsa.vmware.com’ and ‘vapp-updates.vmware.com’
Note: The IP address for the webservers (vcsa.vmware.com) is changed periodically for security purposes, so this workaround will only function until the next IP change.