vCenter database connection loss after an upgrade
A VMware vCenter Server upgrade can fail or return with a broken management interface even when the virtual infrastructure remains online. The usual cause is a broken dependency between vCenter and its database: the vpxd service cannot open a session, so inventory, tasks and administrator authentication fail together.
Establish whether the upgrade stopped during deployment or completed before the connection disappeared. Record the source and target versions, exact time, error messages and any infrastructure changes made during the maintenance window. This separates an upgrade compatibility problem from a database, DNS, firewall or certificate issue.
Many Australian organisations run vCenter in Sydney, Melbourne or Brisbane, often with the database hosted internally and support shared between an infrastructure team, an MSP or a VMware-focused reseller. Database ownership can therefore become unclear when a connection drops, so identify who controls the database server before making changes.
Recognise the failure pattern
A database connectivity failure usually affects several functions at once. The vSphere Client may show Cannot connect to database, Connection refused or an authentication error. Scheduled tasks stop, virtual machines remain unaffected and newly powered-on workloads can still run through vCenter HA or an orchestrator.
Capture the state before restarting anything. Check systemctl status vpxd on the appliance, inspect the console for failed services and record whether the embedded vpostgres service exists. Repeated restarts can overwrite useful evidence or compound schema and service-start problems.
Map the database dependency
Document the vCenter hostname, FQDN, IP address, database type, database version, port, service account and certificate configuration. Some installations use external Microsoft SQL Server or PostgreSQL, while a vCenter Server Appliance can use VMware’s embedded PostgreSQL service, commonly named vpostgres.
Confirm which database the source and target appliances actually use. Also check the VMware compatibility matrix for every step, particularly when moving between versions or changing from an embedded to an external database. A supported upgrade sequence still requires the target to match its documented database requirements.
Test the network path first
Resolve the database and vCenter names from the vCenter server using nslookup. Check forward and reverse records, because changed addresses or an incorrect search domain can break JDBC connections even when the database itself is healthy.
Test the actual TCP path with tools such as nc -vz. SQL Server commonly uses port 1433, while PostgreSQL commonly uses 5432, but named SQL instances can use different ports and require SQL Browser on UDP 1434. An Australian NBN business connection can be operational while a separate MPLS, VPN or SD-WAN route to the database is down, so “the link is up” does not prove the database is reachable.
Validate database health and access
On the database host, verify that the database engine is running and that it has free disk space, valid data files and sufficient connections. A stopped instance, suspended database or full volume looks identical to a network problem from vCenter.
Test authentication from the vCenter appliance using an approved SQL or PostgreSQL client. Confirm that the login is enabled, its password or certificate has not expired, and the account retains access to the vCenter database. Avoid placing credentials directly into shell history. A connection test proves more than a port check because it exercises the same credentials and route used by vCenter.
Investigate TLS and schema changes
Certificate problems become visible when an upgrade changes hostname usage, trust stores or TLS expectations. Check that the database certificate is trusted, unexpired and valid for the hostname being used. Do not disable certificate validation to force a connection, as that removes an important security control.
Database schema state also matters. During staged upgrades, an old vCenter instance can reconnect to the shared database and interfere with the target. Ensure only the intended vCenter instance is active. If the upgrade partly completed, do not attach an older appliance to the upgraded database; rollback may require a database restore and a VMware-supported recovery procedure.
Correlate service and upgrade logs
On the appliance, review vpxd.log, vmware-vpostgres logs, service-manager logs and files under /var/log/vmware for the failed upgrade period. On external systems, inspect the SQL Server error log or PostgreSQL log at the same time. Record messages about refused connections, login failures, TLS negotiation and unsupported database versions.
Correlate timestamps in UTC. Sydney and Melbourne change their UTC offset during daylight saving, while Brisbane remains on AEST, so local logs can make a short outage appear longer than it was. Use vc-support where possible, but collect relevant logs manually if the appliance is too unhealthy to produce a complete support bundle.
Restore service and prevent recurrence
Restore the dependency chain in order: database engine, network path, authentication or TLS, and finally the vCenter service. For embedded PostgreSQL, do not delete files, reinitialise the database or run manual recovery commands without VMware guidance. For an external database, use a tested restore or connection procedure coordinated with the database owner.
Before another attempt, capture a fresh support bundle and document the failure point. The following controls reduce the likelihood of another interrupted upgrade:
- Maintain a current dependency map covering hostnames, addresses, ports and database ownership.
- Test database reachability from the vCenter host after every firewall or DNS change.
- Keep the database and vCenter versions on a VMware-supported upgrade path.
- Monitor service-account status and database certificate expiry.
- Take a restorable database backup before maintenance, not merely an appliance snapshot.
- Rehearse the upgrade in a lab that matches production versions and topology.
- Define the shutdown, cutover and rollback procedure before starting work.
A clean recovery is confirmed when vpxd maintains its database session, inventory becomes available and administrative tasks complete without repeated connection errors.