CANCELLED.Upgrade SDDC_MANAGER - [####] using BUNDLE - SDDC_MANAGER:9.1.x.psql -h localhost -U postgres -d platform -c "select * from lock;" shows existing entries in the lock table, such as resources of type DOMAIN, SYSTEM, NSX, or VCENTER held by OPERATIONS_MANAGERVMware Cloud Foundation 9.x
SDDC Manager
The issue is caused by stale resource locks remaining in the SDDC Manager platform database from a previous or failed workflow. These locks prevent the Lifecycle Management (LCM) service from acquiring the necessary deployment-level lock to proceed with the upgrade.
To resolve this and allow the upgrade to proceed, all four locks should be cleared. Follow these steps:
Important: Ensure you have a fresh snapshot of the SDDC Manager VM before performing the steps below.
psql -h localhost -U postgres -d platform -c "truncate lock;"systemctl restart lcm