we have followed the documentation instructions to upgrade an application (without downtime):
https://documentation.mindsphere.io/resources/html/operator-cockpit/en-US/119273250827.html
However, we encountering difficulties upgrading our App, we get the following Error:
Error - Version upgrade pre-validation failed: One of the components in either the new version or the old version has multiple URLs mapping.
We would like to know if we are doing something wrong or there is some system issue.
Solution
As per the error message you have to check the URLs/routes which is having multiple component/app names in the cloud foundry.
Login into your application space in the cloud foundry.
run cf app command.
you will get all the components list in that space with the name and other details like URLs/routes.
Please check which URLs/routes are used by multiple components once you get the component name with the same routes. please update the route of one of the components with a different route or delete the component which is not in use.
command to unmap and map the route
cf unmap-route APP_NAME DOMAIN [--hostname HOSTNAME] [--path PATH] cf map-route APP_NAME DOMAIN [--hostname HOSTNAME] [--path PATH]
if you want to see a list of routes in the current space.
cf routes
to delete the component name/app.
cf delete APP_NAME
Please note: There is one to one relationship between component and route.
Notes
For any questions or support in this matter, contact us through the support center.