vCenter Server partial collection error in vCloud Usage Meter 4.7 due to connection timeout
search cancel

vCenter Server partial collection error in vCloud Usage Meter 4.7 due to connection timeout

book

Article ID: 322748

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:

vCloud Usage Meter 4.7 throws the following error when trying to collect vCenter Server usage data:

2023-08-07 19:29:33.446 ERROR --- [pool-5-thread-1] com.vmware.um.vccollector.VCCollector    : Events stage raised exception javax.xml.ws.WebServiceException: java.net.SocketTimeoutException: Read timed out
javax.xml.ws.WebServiceException: java.net.SocketTimeoutException: Read timed out


 The vCenter collection log is located under:

/opt/vmware/cloudusagemetering/platform/log/vmware-um-platform/collection-vcenter-main.log


Environment

VMware vCloud Usage Meter 4.x

Cause

The connection between the Usage Meter and vCenter was closed before the data could be retrieved successfully.

Resolution

To resolve this issue, you need to increase the connection timeout.

Procedure

  1. Take a snapshot of the Usage Meter appliance in vSphere.
  2. Log in as root to Usage Meter 4.7 and enable ssh.
service sshd start
  1. SSH connect to the appliance as usagemeter.
ssh usagemeter@<um-ip-address>
  1. Take a backup copy of collection.yml.
cp /opt/vmware/cloudusagemetering/platform/conf/schedule-executions/collection.yml /opt/vmware/cloudusagemetering/platform/conf/schedule-executions/collection-backup.yml
  1. Edit the config file using the vi editor. Press i to switch to interactive mode.
vi /opt/vmware/cloudusagemetering/platform/conf/schedule-executions/collection.yml
  1. Set the connection timeout to 900000 (15 min):
=> vcReceiveTimeoutMillis="900000"
  1. Save the file by pressing ESC and then entering:
:wq!
  1. Take a backup copy of command.yml.
cp /opt/vmware/cloudusagemetering/platform/conf/schedule-executions/command.yml /opt/vmware/cloudusagemetering/platform/conf/schedule-executions/command-backup.yml
  1. Edit the config file using the vi editor. Press i to switch to interactive mode.
vi /opt/vmware/cloudusagemetering/platform/conf/schedule-executions/command.yml
  1. Replace the values of the below fields:
-Dsun.net.client.defaultConnectTimeout=600000 
-Dsun.net.client.defaultReadTimeout=900000
  1. Save the file by pressing ESC and then entering:
:wq!
  1.   Restart the appliance as root.
    su -
    reboot