Registering a system to Red Hat Insights fails with error 401 Unauthorized

Solution Verified - Updated -

Issue

  • insights-client command fails with below error:-

    # insights-client --test-connection
    Running Connection Tests...
    === Begin Upload URL Connection Test ===
    Testing: https://cert-api.access.redhat.com/r/insights/uploads/
    POST https://cert-api.access.redhat.com/r/insights/uploads/
    HTTP Status: 401 Unauthorized
    HTTP Response Text: Insights services authentication failed
    
    Connection failed
    === End Upload URL Connection Test: FAILURE ===
    
    === Begin API URL Connection Test ===
    Testing: https://cert-api.access.redhat.com/r/insights/
    GET https://cert-api.access.redhat.com/r/insights/
    HTTP Status: 401 Unauthorized
    HTTP Response Text: Insights services authentication failed
    
    Connection failed
    === End API URL Connection Test: FAILURE ===
    
    Connectivity tests completed with some errors
    See /var/log/insights-client/insights-client.log for more details.
    

Environment

  • Red Hat Enterprise Linux
  • Red Hat Insights

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