Thursday, January 6, 2022

[SOLVED] OpenShift Online v3+ - Adding new route gives forbidden error

Issue

I successfully installed on OpenShift Online (Starter Plan, US Virginia server) a Java Web Application (with MySQL Persistent service). The runtime is Tomcat. I managed to build the WAR from an external Git repository (via ssh authentication moreover) and deploy the app to the container. It is reachable from autogenerated route, but i'm getting a weird error setting up a custom new one linked to a www domain. Here's the message:

Route is invalid: spec.host: Forbidden: you do not have permission to set the host field of the route.

I suppose that's a platform bug, but don't know how to work it out (if possible). Any idea please? Many thanks in advance.


Solution

This is meant by Supports Custom Domains for the non-starter (Pro) plan. With the starter plan, you cannot specify domain names.



Answered By - Florian Weimer