301 Redirect on Commandline Login in OpenShift

Solution Unverified - Updated -

Issue

  • It is getting a 301 redirect after hitting the url and after notification on an insecure connection.
$ oc login https://example.openshiftcluster.com:8443/console/
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y

Error from server: Internal error occurred: unexpected response: 301
  • oc login leads to 301 redirect
  • Issues logging in on OpenShift commandline console

Environment

  • Red Hat OpenShift Container Platform
    • 3.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content