On Satellite v 5.6, while syncing channels from RHN satellite-sync command fails with "'ascii' codec can't decode byte 0xc3 in position 47: ordinal not in range(128)"

Solution Unverified - Updated -

Issue

  • On Satellite v 5.6 while syncing channels from RHN satellite-sync command fails with bellow error:
SYNC ERROR: attempting to display as much information as possible:
(Check logs/email for potentially more detail)
UnicodeDecodeError('ascii', 'IntegrityError: llave duplicada viola restricci\xc3\xb3n de unicidad \xc2\xabrhn_dcm_id_pk\xc2\xbb\n\n', 47, 48, 'ordinal not in range(128)')
'ascii' codec can't decode byte 0xc3 in position 47: ordinal not in range(128)

and an email with this content:
13:22:06 SYNC ERROR: attempting to display as much information as possible:

Exception reported from satellite.example.com
Time: Thu Oct 10 13:22:06 2013
Exception type <type 'exceptions.UnicodeDecodeError'>

Exception Handler Information
Traceback (most recent call last):
  File "/usr/bin/satellite-sync", line 168, in <module>
    sys.exit(abs(main() or 0))
  File "/usr/bin/satellite-sync", line 160, in main
    systemExit_exception(6, msg, e)
  File "/usr/bin/satellite-sync", line 117, in systemExit_exception
    tb = header + fetchTraceback()
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnTB.py", line 190, in fetchTraceback
    severity=None, with_locals=with_locals)
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnTB.py", line 150, in Traceback
    ostream.write("%s\n" % exc.getvalue().encode('utf-8'))
  File "/usr/lib64/python2.6/StringIO.py", line 270, in getvalue
    self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 47: ordinal not in range(128)

Environment

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