Collecting data from a vCenter instance in VCF Usage Meter, the collection fails: "Exception in getLicenses"
search cancel

Collecting data from a vCenter instance in VCF Usage Meter, the collection fails: "Exception in getLicenses"

book

Article ID: 423321

calendar_today

Updated On:

Products

VMware Usage Meter

Issue/Introduction

When attempting to collect data from a vCenter Server instance in VCF Usage Meter, the collection fails with error as the below screenshot :


Below errors are seen in the collection-vcenter-error.log logs:
Caused by: javax.xml.ws.WebServiceException: java.net.SocketTimeoutException: Read timed out

Environment

VCF Usage Meter 9.x

Cause

This issue typically occurs when the default read timeout for the VCF Cloud Usage Meter appliance is reached before the vCenter Server can respond to the licensing query.

Resolution

Follow the workaround mentioned below:
  1. SSH using usagemeter credentials.
  2. Edit the command.yml file using:
    vi /opt/vmware/cloudusagemetering/platform/conf/schedule-executions/command.yml
  3. Find the property sun.net.client.defaultReadTimeout and update the value to 300000 (300 seconds); by default the value is set to 150 seconds.
  4. After updating the value, press ESC key and save the file using:
    :wq!
  5. Reboot the VCF Cloud Usage Meter appliance:
    reboot -f

Additional Information