YYYY-MM-DDTHH:MM:SS.265Z error vpxd[3098749] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Failed to connect to database: ODBC error: (08001) - [unixODBC]connection to server on socket "/var/run/vpostgres/.s.PGSQL.5432" failed: FATAL: Peer authentication failed for user "vpxd"
--> . Retry attempt: 413057 ...YYYY-MM-DDTHH:MM:SS.276Z info vpxd[3098749] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vpxdYYYY-MM-DDTHH:MM:SS.280Z error vpxd[3098749] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Aborting after 413058 retries.
YYYY-MM-DDTHH:MM:SS.263 UTC 66cca993.b81c 0 [unknown] [unknown] [local] 47132 1LOG: connection received: host=[local]YYYY-MM-DDTHH:MM:SS.264 UTC 66cca993.b81c 0 VCDB vpxd [local] 47132 2LOG: connection authenticated: identity="root" method=peer (/storage/db/vpostgres/pg_hba.conf:24)YYYY-MM-DDTHH:MM:SS.264 UTC 66cca993.b81c 0 VCDB vpxd [local] 47132 3LOG: no match in usermap "vcdb" for user "vpxd" authenticated as "root"YYYY-MM-DDTHH:MM:SS.264 UTC 66cca993.b81c 0 VCDB vpxd [local] 47132 4FATAL: Peer authentication failed for user "vpxd"
YYYY-MM-DDTHH:MM:SS.264 UTC 66cca993.b81c 0 VCDB vpxd [local] 47132 5DETAIL: Connection matched pg_hba.conf line 24: "local VCDB vpxd peer map=vcdb"
VMware vCenter Server 8.0
The VPXD process is failing to connect as a database user vpxd as the VPXD process is running as the user root rather than the OS user vpxd.
With vCenter Server 8.0 vpxd process no longer uses the standard vc database user for its connection. Instead, it utilizes peer mapping, where the database authenticates the connection based on the OS user vpxd
At this time, there is no resolution.
Workaround
mkdir /backupcp /etc/vmware/vmware-vmon/svcCfgfiles/vpxd.json /backup/vpxd.json_backupcp /storage/db/vpostgres/pg_ident.conf /backup/pg_ident.conf_backupvi /etc/vmware/vmware-vmon/svcCfgfiles/vpxd.jsonvpxd to root/storage/db/vpostgres/pg_ident.conf# gssvcdb root vpxdpsql -U postgres -d VCDB -c "SELECT pg_reload_conf();"
7. Restart vCenter Server services service-control --stop --all;service-control --start --all