Audit scans scheduled from Satellite are failing with error "'ascii' codec can't encode character u'\u2013' in position 274: ordinal not in range(128)"

Solution Verified - Updated -

Issue

  • Audit scans are failing with below tracebacks,
The log shows the following errors:
Traceback (most recent call last):
  File "/usr/sbin/rhn_check", line 382, in <module>
    cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 84, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhn_check", line 75, in main
    self.__run_remote_actions()
  File "/usr/sbin/rhn_check", line 179, in __run_remote_actions
    self.handle_action(action)
  File "/usr/sbin/rhn_check", line 234, in handle_action
    parser.feed(data)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 601, in feed
    self._parser.Parse(data, 0)
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\u2013' in position 274: ordinal not in range(128)

Environment

  • Red Hat Satellite 5.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