Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
vCenter Chargeback Manager 2.5 Patch 01 (2041041)
Details
- The System Health tab shows the vCenter Chargeback
Manager Data Collector is down.
Although the data collector services are running and the databases are up and running, the data collector status is shown as down in the System Health tab. This issue happens when the Hosts and Clusters & VMs and Templates job fails. The data collector log file contains an error similar to the following:
ERROR [(2) HostsClustersAndVMTemplatesInventorySyncJob on VC 845] [job.AbstractInventorySyncJob] 0250: Unable to update information in the database.
<Response>
<Error majorErrorCode="404" minorErrorCode="177" message="Unable to update information in the database."/>
</Response>
at com.vmware.vim.vcenter.das.dao.impl.HibernateVCenterBaseDAOImpl.saveOrUpdate(HibernateVCenterBaseDAOImpl.java:284)
at com.vmware.vim.vcenter.chargeback.dao.impl.HibernateVcEntityRelationDAOImpl.saveOrUpdate(HibernateVcEntityRelationDAOImpl.java:177)
at com.vmware.vim.vcenter.datacollector.inv.manager.impl.InventoryHistoryManagerImpl$3$1.executeInternal(InventoryHistoryManagerImpl.java:255)
at com.vmware.vim.vcenter.datacollector.inv.manager.impl.InventoryHistoryManagerImpl$3$1.executeInternal(InventoryHistoryManagerImpl.java:246)
at com.vmware.vim.vcenter.chargeback.lock.vcconfig.VCenterServerLockUtils$VCenterServerDBLock.executeWithWlock(VCenterServerLockUtils.java:159)
at com.vmware.vim.vcenter.datacollector.inv.manager.impl.InventoryHistoryManagerImpl$3.executeInternal(InventoryHistoryManagerImpl.java:246)
at com.vmware.vim.vcenter.datacollector.inv.manager.impl.InventoryHistoryManagerImpl$3.executeInternal(InventoryHistoryManagerImpl.java:242)
at com.vmware.vim.vcenter.das.utils.DBTransaction.execute(DBTransaction.java:65)
at com.vmware.vim.vcenter.datacollector.inv.manager.impl.InventoryHistoryManagerImpl.applyUpdates(InventoryHistoryManagerImpl.java:242)
at com.vmware.vim.vcenter.datacollector.inv.manager.impl.InventoryConstructionAgentImpl.createOrRepairInitialInventoryForView(InventoryConstructionAgentImpl.java:509)
at com.vmware.vim.vcenter.datacollector.inv.manager.impl.InventoryConstructionAgentImpl.createOrRepairInitialInventory(InventoryConstructionAgentImpl.java:418)
at com.vmware.vim.vcenter.datacollector.inv.manager.impl.InventoryConstructionAgentImpl.fetchInventory(InventoryConstructionAgentImpl.java:338)
at com.vmware.vim.vcenter.datacollector.inv.manager.impl.InventoryConstructionAgentImpl.fetchInventory(InventoryConstructionAgentImpl.java:308)
at com.vmware.vim.vcenter.datacollector.inv.manager.impl.InventoryConstructionAgentImpl.trackInventory(InventoryConstructionAgentImpl.java:291)
at com.vmware.vim.vcenter.datacollector.job.AbstractInventorySyncJob.run(AbstractInventorySyncJob.java:28)
Caused by: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.vmware.vim.vcenter.chargeback.dto.CbVcEntityRelation#com.vmware.vim.vcenter.chargeback.dto.CbVcEntityRelationId@14d9d84]
...
- The external network usage for both upload and download
is reported as zero and, therefore, the corresponding cost is
reported as zero.
Solution
Resolving the vCenter Chargeback Manager Data Collector down status issue
- Download the vcenter-cbm-core-vc-dc-2.5-GA.jar file from this KB article.
- Stop the load balancer service and all the vCenter Chargeback Manager and corresponding data collector services, including vCloud Director data collector and vShield Manager data collector services.
- Take a backup of the vCenter Chargeback Manager database.
- For each vCenter Chargeback Manager server in your setup,
perform the following steps:
- Go to the <CHARGEBACK_HOME>\apache-tomcat\webapps\vCenter-CB\WEB-INF\lib folder. (For example; C:\Program Files\VMware\VMware vCenter Chargeback\apache-tomcat\webapps\vCenter-CB\WEB-INF\lib).
- Copy the vcenter-cbm-core-vc-dc-2.5-GA.jar file from the lib folder to a different folder, say C:\CBM_backup\CBMServer.
- Replace the JAR file in the lib folder with the
JAR file (with the same name) downloaded from this KB
article.
- For each vCenter Chargeback Manager Data Collector in
your setup, perform the following steps:
- Go to the <CHARGEBACK_DATACOLLECTOR_HOME>\lib folder. (For example; C:\Program Files\VMware\VMware vCenter Chargeback\DataCollector-Embedded\lib).
- Copy the vcenter-cbm-core-vc-dc-2.5-GA.jar file from the lib folder to a different folder, say C:\CBM_backup\CBMDataCollector.
- Replace the JAR file in the lib folder with the
JAR file (with the same name) downloaded from this KB
article.
- For each vCloud Director Data Collector in your setup,
perform the following steps:
- Go to the <VCLOUD_DIRECTOR_DATACOLLECTOR_HOME>\lib folder. (For example; C:\Program Files\VMware\VMware vCenter Chargeback\VMware Cloud Director DataCollector-Embedded\lib).
- Copy the vcenter-cbm-core-vc-dc-2.5-GA.jar file from the lib folder to a different folder, say C:\CBM_backup\CloudDataCollector.
- Replace the JAR file in the lib folder with the
JAR file (with the same name) downloaded from this KB
article.
- For each vShield Manager Data Collector in your setup, perform
the following steps:
- Go to the <VSHIELD_MANAGER_DATACOLLECTOR_HOME>\lib folder. (For example; C:\Program Files\VMware\VMware vCenter Chargeback\vShield Manager DataCollector-Embedded\lib).
- Copy the vcenter-cbm-core-vc-dc-2.5-GA.jar file from the lib folder to a different folder, say C:\CBM_backup\VSMDataCollector.
- Replace the JAR file in the lib folder with the
JAR file (with the same name) downloaded from this KB
article.
- Start the load balancer service and all the vCenter Chargeback
Manager and corresponding data collector services.
Resolving the external network usage reported as zero issue
- Download the vcenter-cbm-integration-vsm-2.5-GA.jar file from this KB article.
- Stop the load balancer service and all the vCenter Chargeback Manager and corresponding data collector services, including vCloud Director data collector and vShield Manager data collector services.
- Take a backup of the vCenter Chargeback Manager database.
- Go to the <VSHIELD_MANAGER_DATACOLLECTOR_HOME>\lib folder. (For example; C:\Program Files\VMware\VMware vCenter Chargeback\vShield Manager DataCollector-Embedded\lib)
- Copy the vcenter-cbm-integration-vsm-2.5-GA.jar file from the lib folder to a different folder, say C:\CBM_backup\VSMDataCollector.
- Replace the JAR file in the lib folder with the
JAR file (with the same name) downloaded from this KB
article.
- Clear all the External Network stats from the vCenter
Chargeback Manager database by running the following SQL query
on the database
- For a new vCenter Chargeback Manager installation:
DELETE FROM CB_CUSTOM_COUNTER_PERF_STAT WHERE RESOURCE_ID in
(SELECT COMPUTING_RESOURCE_ID FROM CB_COMPUTING_RESOURCE WHERE COMPUTING_RESOURCE_NAME in ('External Network Transmit' ,'External Network Receive'));
- For an upgraded vCenter Chargeback Manager setup, run the
following SQL query for each IP address that is synced for
the first time in vCenter Chargeback Manager after upgrade.
Ensure that you replace XYZ_IPADDRESS with the IP
address name in X.X.X.X/32 format. For example; IP
address name format is 10.111.60.200/32.
DELETE FROM CB_CUSTOM_COUNTER_PERF_STAT WHERE RESOURCE_ID in
(SELECT COMPUTING_RESOURCE_ID FROM CB_COMPUTING_RESOURCE WHERE COMPUTING_RESOURCE_NAME in ('External Network Transmit' ,'External Network Receive')) and ENTITY_ID in
(SELECT CB_HIERARCHICAL_ENTITY_ID FROM CB_HIERARCHICAL_ENTITY WHERE ENTITY_ID in
(SELECT ENTITY_ID FROM CB_ENTITY WHERE ENTITY_NAME LIKE 'XYZ_IPADDRESS'));
- For a new vCenter Chargeback Manager installation:
- Start the load balancer service and all the vCenter Chargeback Manager and corresponding data collector services. Wait for two or three cycles of external network stats to be synchronized by the vShield Manager Data Collector. This might take approximately 15 minutes.
Attachments
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

