vCenter vpxd failed with ERROR: duplicate key value violates unique constraint "pg_statistic_relid_att_inh_index"
search cancel

vCenter vpxd failed with ERROR: duplicate key value violates unique constraint "pg_statistic_relid_att_inh_index"

book

Article ID: 413664

calendar_today

Updated On:

Products

VMware vCenter Server 8.0 VMware vCenter Server

Issue/Introduction

  • The vCenter web UI was failed to access.
  • The vpxd service was terminated.
  • The vpxd.log contains messages similar to:

--/var/log/vmware/vpxd/vpxd.log

YYYY-MM-DDTHH:MM:SS error vpxd[20552] [Originator@6876 sub=Default opID=StatsUpdateQueryOptimizer-45aa0c19] [VdbStatement] SQL execution failed:  vacuum (analyze) vpx_hist_stat1_92
YYYY-MM-DDTHH:MM:SS error vpxd[20552] [Originator@6876 sub=Default opID=StatsUpdateQueryOptimizer-45aa0c19] [VdbStatement] Statement diagnostic data from driver is 23505:0:1:ERROR: duplicate key value violates unique constraint "pg_statistic_relid_att_inh_index";
--> Error while executing the query

Environment

vCenter Server 7.x

vCenter Server 8.x

Cause

It's data corruption with the system table "pg_catalog.pg_statistic" in the vCenter embedded vpostgres database.

Resolution

To resolve this issue, it's suggest to truncate the system table "pg_catalog.pg_statistic".

Please contact Broadcom Support for assistance.

Contact Broadcom support
https://knowledge.broadcom.com/external/article/206567/

Additional Information

There was another issue about "SQL execution failed:  vacuum (analyze) vpx_hist_stat".

vCenter Server Appliance fails with error: Error while executing the query" is returned when executing SQL statement "vacuum (analyze) vpx_hist_stat"

https://knowledge.broadcom.com/external/article/332309/