vmware-vcd services on cell members may fail to start or crash repeatedly.VMware vCloud Director
This issue occurs when database maintenance scripts are executed while VCD cells in the server group are still active (online).
Cleanup scripts are designed to purge historical data, such as expired tasks, audit logs, and events directly from the database. If VCD cells are running during this process, they maintain active database connections and hold in-memory references to the objects the script is attempting to modify or delete.
This conflict creates a race condition, resulting in:
To prevent this issue, the VCD service must be stopped on all cells in the server group before executing any database maintenance scripts.
Correct Procedure for Inventory Cleanup
/opt/vmware/vcloud-director/bin/cell-management-tool -u <admin_username> cell --shutdownvmware-vcd stop or systemctl stop vmware-vcd vmware-vcd service on all cells, one at a time.Important: If you have already run the script while cells were active, the database may be in a corrupted state. The recommended fix is to follow the steps above (stop all cells) and re-run the cleanup script. This allows the script to complete its operation on a static database, which may resolve the inconsistencies. If the issue persists, you may need to restore the VCD database from a healthy backup taken before the script was run.