/opt/vmware/sddc-support/sos --health-check on the SDDC Manager appliance fails with an error indicating there are active locks for OPERATIONS_MANAGER.VCF 5.x
VCF 9.0.x
This issue is caused by a stale lock entry in the SDDC Manager platform database. A previous workflow (such as a backup, upgrade, or health check) may have completed or timed out without properly clearing its entry from the lock table. This creates a mismatch where the system believes a resource is still in use.
To resolve this issue, you must manually clear the stale lock from the database and restart the SDDC Manager services.
Note: Ensure you have a powered-off snapshot of the SDDC Manager VM before proceeding with database modifications.
vcf user and switch to root using su -.Example Output:
psql -h localhost -U postgres -d platform -c "select id,resource_lock_type from lock;" id | resource_lock_type
--------------------------------------+-----------------
1#######-####-####-####-########### | EXCLUSIVE
2#######-####-####-####-########### | LIMITED
3#######-####-####-####-########### | LIMITED
4#######-####-####-####-########### | LIMITEDpsql -h localhost -U postgres -d platform -c "delete from lock where id='1#######-####-####-####-###########';"