When registering RHEL client with Red Hat Insights it fails with UnicodeDecodeError

Solution Verified - Updated -

Issue

When trying to register a Red Hat Enterprise Linux to Insights, and if the following is observed:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 39: ordinal not in range(128)

# insights-client --keep-archive --no-upload
Starting to collect Insights data for ycq-ocs-prp01​.yourcompany
Fatal error
Traceback (most recent call last):
  File "/var/lib/insights/newest.egg/insights/client/phase/v1.py", line 33, in _f
    func(client, config)
...
  File "/usr/lib64/python2.7/posixpath.py", line 80, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 39: ordinal not in range(128)

********Archive saved at None
Starting to collect Insights data for ----
Fatal error
Traceback (most recent call last):
  File "/etc/insights-client/rpm.egg/insights/client/phase/v1.py", line 32, in _f
    func(client, config)
...
  File "/usr/lib64/python2.7/posixpath.py", line 80, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 39: ordinal not in range(128)

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Insights for RHEL 1-latest

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