Thursday, December 2, 2021

vCloude Director Failed to Start

In this article, we are going to discuss an error message that is appearing during login to the vCloud Director web interface. We got the following error message when we are trying to take access to the vCloud Director interface.


An error occurred during the initialization. Accessing the application through an unsupported public URL or poor connectivity might cause this error "


One snapshot for this error message is given below:-





The URL which we are using to access the vCloud Director provider interface, it must be registered to the vCloud Director. There is a property available in the vCloud Director which name is "webapp.allowed.origins". All the URL information that can use to access the vCloud Director Provider interface, is listed in this property. We have to have used these listed URLs if we want to take access to the vCloud Provider web interface. If we are using an URL address that is not registered or listed on the "webapp.allowed.origins" property then we can't take access to the vCloud Director Provider interface. In that case, that error message will appear. If we want to take access to the vCloud Director Provider interface using a new URL address, we must register or enlist it to the "webapp.allowed.origins" property. Only then it is possible to take access to the vCloud Director Provider interface using that new URL address.

To view the list of enlisted or registered URL information that is available on the "webapp.allowed.origins" property, we have to execute the below command on the vCloud Director appliance.

" /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n webapp.allowed.origins -l "

After executing this command, it will show us the enlisted or registered URL information that is currently available on the "webapp.allowed.origins" property.

If we want to update this "webapp.allowed.origins" property or we want to add a new URL address in this property, then we have to execute the below command on the vCloud Director appliance.


" /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n webapp.allowed.origins -v <comma_separated_list_without_space> "


Here, this "<comma_separated_list_without_space>" means, we can add multiple URLs one by one using comma without using any space. Suppose we want to add the "test1.vlcoud.com", "test2.vcloud.com", and "test3.vcloud.com" to the "webapp.allowed.origins" property. Then our command will be as follows:-


" /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n webapp.allowed.origins -v test1.vlcoud.com,test2.vcloud.com,test3.vcloud.com "


That's it. After registering our new URL address, then we can use it to take access to the vCloud Director interface. No more errors will be shown.

Thank you.


No comments:

Post a Comment