insights-client is throwing "No option 'no_proxy' in section: 'server'" during registration due to which registration fails with "401 Unauthorized".

Solution Verified - Updated -

Issue

  • insights-client --register fails with No option 'no_proxy' in section: 'server' during registration due to which registration eventually fails with HTTP Status: 401 Unauthorized.

    # insights-client --register
    Unable to fetch egg url https://cert-api.access.redhat.com/r/insights/platform/module-update-router/v1/channel?module=insights-core: 401: Unauthorized. Defaulting to /release
    Please 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.
    Machine-id found, insights-client can not be registered. Please, unregister insights-client first: `insights-client --unregister`
    
    2024-01-26 09:57:30,058    DEBUG insights.client.auto_config Trying to autoconfigure...
    2024-01-26 09:57:30,071    DEBUG insights.client.auto_config Checking if system is subscription-manager registered
    2024-01-26 09:57:30,072    DEBUG insights.client.auto_config System is subscription-manager registered
    2024-01-26 09:57:30,072    DEBUG insights.client.auto_config No option 'no_proxy' in section: 'server'
    2024-01-26 09:57:30,072    DEBUG insights.client.auto_config System is NOT subscription-manager registered
    

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