Symptoms:
Upgrading a vRealize Automation (vRA) 6.2.5 replica node with embedded clustered PSQL fails with this error:
****** Current service: advanced-designer-service
Upgrade:
Command execution failed with unexpected error: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase/advanced-designer-service-TA58422.xml::1393271824301-2::TA61870:
Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE public.asd_formscenario ADD CONSTRAINT asd_formscenario__resourceoperation_id__asd_resourceoperation__id__fkey FOREIGN KEY (resourceoperation_id) REFERENCES public.asd_resourceoperation (i
d) ON UPDATE NO ACTION ON DELETE NO ACTION: ERROR: there is no unique constraint matching given keys for referenced table "asd_resourceoperation".
Use -e option to get more details.
There are errors while upgrading the webapps database. Check /var/log/vcac/vcac-config.log for more information.
Error updating the DB.
Script /etc/bootstrap/postupdate.d/20-vcac failed, error status 2