vCloud Usage Meter 4.8 has collection error - "Failed to collect SPBM usage data".
search cancel

vCloud Usage Meter 4.8 has collection error - "Failed to collect SPBM usage data".

book

Article ID: 322098

calendar_today

Updated On:

Products

VMware Usage Meter

Issue/Introduction

The following notification is received in vCloud Usage Meter 4.8 web application after a vCenter Server is added for metering: "Failed to collect SPBM usage data"
ERROR --- [pool-5-thread-1] c.vmware.um.collector.CollectionHelper   : Status (COLLECT_API_ERR) for vCenter server 4: Partial collection failure: Events.
2025-01-17 11:01:50.344 ERROR --- [pool-5-thread-1] c.v.u.v.spbm.SpbmCollectionStage         : Failed to collect SPBM usage data.
javax.xml.ws.WebServiceException: java.net.SocketTimeoutException: Read timed out

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, increase the connection timeout values of collection.yml & command.yml
 
Procedure:
  • Take a snapshot of the Usage Meter appliance in vSphere.
  • Log in as root to Usage Meter 4.8 appliance console and enable SSH:

service sshd start

  • SSH connect to the appliance as usagemeter

ssh usagemeter@<um-ip-address>

  • 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

  • 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
  • Set the connection timeout to 900000 (15 min):
=> vcReceiveTimeoutMillis="900000"
=> sbpmConnectionTimeoutMillis="900000"
=> sbpmConnectionTimeoutMillis="900000"
  • Save the file by pressing ESC and then entering:
:wq!
  • 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
  • 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
  • Replace the values of the below fields:
-Dsun.net.client.defaultConnectTimeout=600000
-Dsun.net.client.defaultReadTimeout=900000
  • Save the file by pressing ESC and then entering:
:wq!
  • Restart the appliance as root.
su -
reboot