Symptoms:
To resolve this issue we must validate all of the relevant config property values to ensure the addresses are correct, resolvable, and included in the webapp.allowed.origins property as per "Failed Start: An error occurred during initialization" error while accessing the vCloud Director H5 provider and tenant UI.
The relevant property values we should examine are:
For vCloud Director versions 10.2.x and earlier:
List values via direct database query
select name,value from config where name in ('restapi.baseHttpUri','restapi.baseUri','ui.baseHttpUri','ui.baseUri','consoleproxy.external.address','webapp.allowed.origins');
List properties individually via Cell Management Tool
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n <config-property-name> -l
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n ui.baseUri -l
Update and correct config property values
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n ui.baseUri -v "<property-value>"
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n ui.baseUri -v "https://vcd1.vcloud.local"
Continue through the list of properties until all properties have been validated and corrected as needed.
Once this has been done for all of the listed properties you will be able to again login to your vCloud Director instance normally and will have corrected the "Failed to Start" error.
For vCloud Director versions 10.3 and later :
For vCloud Director 10.3 and later, the cell-management-tool options above do not work. The easiest way to query and modify is by using API Explorer.
Browse to :
https://<publicURL>/api-explorer/provider#/cors/queryAllowedOrigins
Click "Try it out" , then click on Execute to get the current settings
Browse to :
https://<publicURL>/api-explorer/provider#/cors/setAllowedOrigins
Click "Try it out"
Make any modifications to the values from above query, paste it in the "allowedOrigins" field, then click on Execute