During an SDDC Manager upgrade in VMware Cloud Foundation (VCF) 9.1, the upgrade process fails at the SDDC Manager Deployment Drift pre-check step.
Reviewing the logs reveals 502 Bad Gateway errors resulting from the crash of the operationsmanager service:
In /var/log/vmware/vcf/commonsvcs/vcf-commonsvcs.log:YYYY-MM-DDThh:mm:ss.370+0000 ERROR [common,0000000000000000,0000] [c.v.e.s.t.services.TaskCollector,pool-2-thread-4] collect() failedorg.springframework.web.client.HttpServerErrorException$BadGateway: 502 Bad Gateway on GET request for "http://localhost/operationsmanager/workflows/e8dba9d8-70b7-441f-ad44-49dded10a054": "<html>...<title>502 Bad Gateway</title>...</html>"
YYYY-MM-DDThh:mm:ss.078+0000 ERROR [vcf_lcm,0000000000000000,0000] [c.v.e.s.o.model.error.ErrorFactory,pool-5-thread-5] [Q0DAMQ] FAILED_TO_DISABLE_BASIC_AUTH_SDDC_MANAGER Failed to disable Basic Authentication API access on SDDC Manager com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Failed to disable Basic Authentication API access on SDDC Manager ... Caused by: org.springframework.web.client.HttpServerErrorException$BadGateway: 502 Bad Gateway on PATCH request for "https://<REDACTED_HOSTNAME>/v1/sddc-manager"df -h shows that the partition /dev/mapper/data_vg-vmware is 100% full due to memory heap dump files (java_pidxxxxxx.hprof) accumulating in /var/log/vmware/vcf/operationsmanager/app-crash-logs:


VMware Cloud Foundation (VCF) 9.x
The operationsmanager service on the SDDC Manager exhausts its allocated Java heap memory during the pre-check task, causing the service to crash repeatedly and generate large heap dump (.hprof) files that fill up the /dev/mapper/data_vg-vmware storage partition.
Establish an SSH session to the SDDC Manager and log in as the root user.
Clean up old .hprof files in /var/log/vmware/vcf/operationsmanager/app-crash-logs to free up space on /dev/mapper/data_vg-vmware:rm -f /var/log/vmware/vcf/operationsmanager/app-crash-logs/*.hprof
/etc/vmware/vcf/operationsmanager/vcf-operations-manager.conf using a text editor such as vi:vi /etc/vmware/vcf/operationsmanager/vcf-operations-manager.conf
-Xmx2G to -Xmx4G.operationsmanager service and verify its operational status:systemctl restart operationsmanagersystemctl status operationsmanager