Error “http.client.BadStatusLine” in rhsm.log while executing subscription-manager commands on RHEL System.

Solution Verified - Updated -

Issue

  • Subscription-manager command shows error when it ran as a root user, but works fine as sudo.
  • Below error observed while running subscription-manager command on RHEL system:

    # subscription-manager status
    +-------------------------------------------+
    System Status Details
    +-------------------------------------------+
    Remote server error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information.
    

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Satellite 6

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