Build fails with error "unable to upgrade connection: Unauthorized"

Solution Verified - Updated -

Issue

  • oc start-build fails with below error :
Error from server (InternalError): Internal error occurred: unable to upgrade connection: Unauthorized
  • Attempt to get logs from pods gives below error:
error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log machine-config-daemon-xxxx))

Environment

  • Red Hat OpenShift Container Platform
    • 4.x

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