vCenter Server partial collection error in vCloud Usage Meter 4.3 and 4.4 due to connection timeout
search cancel

vCenter Server partial collection error in vCloud Usage Meter 4.3 and 4.4 due to connection timeout

book

Article ID: 322766

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:

vCloud Usage Meter 4.3/4.4 throws the following error when trying to collect vCenter Server usage data:
ERROR | ter collector thread | com.vmware.um.vccollector.VCCollector | vCenter collector90 | Events stage raised exception javax.xml.ws.WebServiceException: java.net.SocketTimeoutException: Read timed out java.net.SocketTimeoutException: Read timed out=>Read timed out
| ERROR | ter collector thread | com.vmware.um.collector.CollectionHelper | vCenter collector98 | Status (COLLECT_API_ERR)


Environment

VMware vCloud Usage Meter 4.x

Cause


The connection between 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.
  2. Enable ssh on your appliance.
service sshd start
  1. SSH connect to the appliance as usagemeter.
ssh usagemeter@<um-ip-address>
  1. Take a backup copy of vccollector_process.conf.
cp /opt/vmware/cloudusagemetering/conf/vccollector_process.conf /opt/vmware/cloudusagemetering/conf/vccollector_process.conf.bak
  1. Edit the config file using the vi editor. Press i to switch to interactive mode.
vi /opt/vmware/cloudusagemetering/conf/vccollector_process.conf
  1. Set the connection timeout to 900000 (15 min):
=> vcReceiveTimeoutMillis="900000"
  1. Save the file by pressing ESC and then entering:
:wq!
  1. Restart the vccollector service:
cd /opt/vmware/cloudusagemetering
scripts/stop.sh vcCol
scripts/start.sh vcCol
  1. Take a backup copy of common_utils.sh.
cp /opt/vmware/cloudusagemetering/scripts/common_utils.sh /opt/vmware/cloudusagemetering/scripts/common_utils.sh.bak
  1. Edit the config file using the vi editor. Press i to switch to interactive mode.
 vi /opt/vmware/cloudusagemetering/scripts/common_utils.sh
  1. Replace the values of the below fields:
=> CONNECT_TIMEOUT_MS="600000"
=> READ_TIMEOUT_MS="900000"
  1. Save the file by pressing ESC and then entering:
:wq!
  1.   Restart the appliance.
    reboot