RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1156208 - Troubleshooting
Summary: Troubleshooting
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.4
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel67
TreeView+ depends on / blocked
 
Reported: 2014-10-23 20:28 UTC by momphh
Modified: 2015-05-15 19:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-21 15:34:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description momphh 2014-10-23 20:28:06 UTC
Hi,

I try to register my fresh redhat EL system 6.4 via the subscription-manager command line and I get this message after entering my login and password :
'utf8' codec can't decode byte 0xe8 in position 9: invalid continuation byte


This is my rhsm.log :

2014-10-23 15:54:35,787 [ERROR]  @managercli.py:148 - Erreur lors de l'enrrgistrementÂ| : 'utf8' codec can't decode byte 0xe8 in position 9: invalid continuation byte
2014-10-23 15:54:35,788 [ERROR]  @managercli.py:149 - 'utf8' codec can't decode byte 0xe8 in position 9: invalid continuation byte
Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 1051, in _do_command
    installed_products=self.installed_mgr.format_for_server())
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 738, in registerConsumer
    return self.conn.request_post(url, params)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 553, in request_post
    return self._request("POST", method, params)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 442, in _request
    body = json.dumps(info)
  File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 230, in dumps
    return _default_encoder.encode(obj)

The version of the subscription-manager is 1.8.22-1.el6_4.x86_64.

Kind of regards.

Comment 2 John Sefler 2014-10-23 21:51:52 UTC
I know that a few "'utf8' codec can't decode" issues have been resolved in newer builds of subscription-manager.  Try registering in English and then yum upgrade subscription-manager*

[root@jsefler ~]# LANG=en_US.utf-8 subscription-manager register --autosubscribe
Username: testuser1
Password: 
Organization: admin
The system has been registered with ID: 9d30a799-6bd2-4749-b603-d53948b3c2a3 

Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

[root@jsefler ~]# yum upgrade subscription-manager*

Comment 3 momphh 2014-10-24 11:54:07 UTC
Hello,

thanks for the reply but I still have same issue even when I set the LANG value.


'utf8' codec can't decode byte 0xe8 in position 9: invalid continuation byte

Comment 4 momphh 2014-10-24 13:43:37 UTC
Hi,


I finally set LANG and ALL_LANG to C value in the /etc/sysconfig/i18n and reboot the system and then try a registration. System registrated :-)

Thanks a lot for your assistance.


Kind of regards.


Note You need to log in before you can comment on or make changes to this bug.