Unable to view pod logs in CLI Or Web Console

Solution Verified - Updated -

Issue

  • oc logs <pod-name> -c <container-name> throws an error: "Error: You must be logged in to the server (the server has asked for the client to provide credentials)"
  • Web console error: "An error occurred while retrieving the requested logs"
  • MachineConfigPool is stuck / not updating

Environment

  • Openshift Container Plateform
    • 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