subscription-manager-1.19.21-1.el7 complains: rhsmcertd-worker:140:<module>:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-26: ordinal not in range(128)

Solution Verified - Updated -

Issue

  • After updating to subscription-manager-1.19.21-1.el7, the following abrt reports are repeated:
Subject: [abrt] subscription-manager: rhsmcertd-worker:140:<module>:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-26: ordinal not in range(128) Auto forwarded by a Rule

reason:         rhsmcertd-worker:140:<module>:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-26: ordinal not in range(128)
cmdline:        /usr/bin/python -Es /usr/libexec/rhsmcertd-worker
executable:     /usr/libexec/rhsmcertd-worker
package:        subscription-manager-1.19.21-1.el7
component:      subscription-manager
 --<snip>--
abrt_version:   2.1.11
analyzer:       Python
architecture:   x86_64
 --<snip>--
kernel:         3.10.0-693.el7.x86_64
 --<snip>--
os_release:     Red Hat Enterprise Linux Server release 7.4 (Maipo)
pkg_arch:       x86_64
 --<snip>--

backtrace:
:rhsmcertd-worker:140:<module>:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-26: ordinal not in range(128)
:
:Traceback (most recent call last):
:  File "/usr/libexec/rhsmcertd-worker", line 140, in <module>
:    print _('Unable to update entitlement certificates and repositories')
:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-26: ordinal not in range(128)
:
:Local variables in innermost frame:
:ga_loader: <module 'subscription_manager.ga_loader' from '/usr/lib/python2.7/site-packages/subscription_manager/ga_loader.pyc'>
:exit_on_signal: <function exit_on_signal at 0x10fffff>
:managerlib: <module 'subscription_manager.managerlib' from '/usr/lib/python2.7/site-packages/subscription_manager/managerlib.pyc'>
:inj: <module 'subscription_manager.injection' from '/usr/lib/python2.7/site-packages/subscription_manager/injection.pyc'>
:log: <logging.Logger object at 0xf7ffff>
:args: []
:generate_correlation_id: <function generate_correlation_id at 0xfdffff>
:__package__: None
:logutil: <module 'subscription_manager.logutil' from '/usr/lib/python2.7/site-packages/subscription_manager/logutil.pyc'>
:main: <function main at 0x110ffff>
:__doc__: None
:OptionParser: <class subscription_manager.i18n_optparse.OptionParser at 0x10fffff>
:ConsumerIdentity: <class subscription_manager.identity.ConsumerIdentity at 0xfeffff>
:parser: <subscription_manager.i18n_optparse.OptionParser instance at 0x10bffff>
:__builtins__: <module '__builtin__' (built-in)>
:__file__: '/usr/libexec/rhsmcertd-worker'
:WrappedIndentedHelpFormatter: <class subscription_manager.i18n_optparse.WrappedIndentedHelpFormatter at 0x10fffff>
:sys: <module 'sys' (built-in)>
:USAGE: u'%prog [\u30aa\u30d7\u30b7\u30e7\u30f3]'
:__name__: '__main__'
:action_client: <module 'subscription_manager.action_client' from '/usr/lib/python2.7/site-packages/subscription_manager/action_client.pyc'>
:_: <bound method GNUTranslations.ugettext of <gettext.GNUTranslations instance at 0xe6ffff>>
:init_dep_injection: <function init_dep_injection at 0xffffff>
:logging: <module 'logging' from '/usr/lib64/python2.7/logging/__init__.pyc'>
:dbus: <module 'dbus' from '/usr/lib64/python2.7/site-packages/dbus/__init__.pyc'>
:options: <Values at 0x10cffff: {'autoheal': False}>
:connection: <module 'rhsm.connection' from '/usr/lib64/python2.7/site-packages/rhsm/connection.pyc'>
:signal: <module 'signal' (built-in)>
:e: UnicodeEncodeError('ascii', u'\u30a8\u30f3\u30bf\u30a4\u30c8\u30eb\u30e1\u30f3\u30c8\u8a3c\u660e\u66f8\u3068\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc\u3092\u66f4\u65b0\u4e2d', 0, 23, 'ordinal not in range(128)')
environ:
:LANG=ja_JP.UTF-8
:PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin

 --<snip>--

os_info:
:NAME="Red Hat Enterprise Linux Server"
:VERSION="7.4 (Maipo)"
:ID="rhel"
:ID_LIKE="fedora"
:VARIANT="Server"
:VARIANT_ID="server"
:VERSION_ID="7.4"
:PRETTY_NAME="Red Hat Enterprise Linux"
:ANSI_COLOR="0;31"
:CPE_NAME="cpe:/o:redhat:enterprise_linux:7.4:GA:server"
:HOME_URL="https://www.redhat.com/"
:BUG_REPORT_URL="https://bugzilla.redhat.com/"
:
:REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
:REDHAT_BUGZILLA_PRODUCT_VERSION=7.4
:REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
:REDHAT_SUPPORT_PRODUCT_VERSION="7.4"

Environment

  • Red Hat Enterprise Linux v. 7
  • subscription-manager-1.19.21-1.el7
  • This is specific to non English locale:
# localectl 
   System Locale: LANG=ja_JP.UTF-8
       VC Keymap: us
      X11 Layout: us

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In