The insights-client command execution fails due to error "/usr/bin/python: undefined symbol: magic_open"

Solution Verified - Updated -

Issue

  • When trying to register a system with Red Hat Insights, The insights-client command execution fails at the end with the following error:

    # insights-client --register
    Successfully registered host rhel7.example.com
    Automatic scheduling for Insights has been enabled.
    Starting to collect Insights data for rhel7.example.com
    Writing RHSM facts to /etc/rhsm/facts/insights-client.facts ...
    Uploading Insights data.
    Upload attempt 1 of 1 failed! Reason: /usr/bin/python: undefined symbol: magic_open
    All attempts to upload have failed!
    Please see /var/log/insights-client/insights-client.log for additional information
    Upload failed.
    

Environment

  • Red Hat Enterprise Linux 7
  • 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