insights-client --compliance command fails with error 401 Too many tries please try again in a few minutes

Solution Verified - Updated -

Issue

  • insights-client --compliance command fails with below error

    # insights-client --compliance
    Unable to fetch egg url. Defaulting to /release
    ERROR: Could not download dynamic configuration
    Debug Info:
    Conf status: 401
    Debug Info:
    Conf message: {
      "error": {"message":"Too many tries, please try again in a few minutes."}
    }
    
  • Running remediation playbook for insights compliance fails with below error

    TASK [run insights] ************************************************************
    09:19:48
    3137
    fatal: [client.example.com]: FAILED! => {"changed": false, "cmd": ["insights-client"], "delta": "0:00:06.941087", "end": "2022-04-22 09:19:55.871461", "msg": "non-zero return code", "rc": 1, "start": "2022-04-22 09:19:48.930374", "stderr": "", "stderr_lines": [], "stdout": "Unable to fetch egg url. Defaulting to /release\nERROR: Could not download dynamic configuration\nDebug Info: \nConf status: 401\nDebug Info: \nConf message: {\n  \"error\": {\"message\":\"Unable to authenticate user \"}\n}\n\nPlease ensure that the system is registered with RHSM for CERT auth, or that correct credentials are set in /etc/insights-client/insights-client.conf for BASIC auth.\nThis machine has not yet been registered. Use --register to register this machine.", "stdout_lines": ["Unable to fetch egg url. Defaulting to /release", "ERROR: Could not download dynamic configuration", "Debug Info: ", "Conf status: 401", "Debug Info: ", "Conf message: {", "  \"error\": {\"message\":\"Unable to authenticate
    

Environment

  • 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