Insights-client throwing error "UnicodeEncodeError: 'ascii' codec can't encode character '\ufffd' in position 94: ordinal not in range(128)" during provisioning using kickstart.
Issue
-
insights-client is throwing error while registering the system through kickstart:
--- Logging error --- Traceback (most recent call last): File "/usr/lib64/python3.6/logging/__init__.py", line 996, in emit stream.write(msg) UnicodeEncodeError: 'ascii' codec can't encode character '\ufffd' in position 94: ordinal not in range(128) Call stack: File "/usr/lib/python3.6/site-packages/insights_client/run.py", line 18, in <module> sys.exit(phase()) File "/etc/insights-client/rpm.egg/insights/client/phase/v1.py", line 32, in _f func(client, config) File "/etc/insights-client/rpm.egg/insights/client/phase/v1.py", line 129, in update client.update() File "/etc/insights-client/rpm.egg/insights/client/__init__.py", line 258, in update egg_paths = self.fetch() File "/etc/insights-client/rpm.egg/insights/client/__init__.py", line 157, in fetch force) File "/etc/insights-client/rpm.egg/insights/client/__init__.py", line 72, in _init_connection return func(self, *args, **kwargs) File "/etc/insights-client/rpm.egg/insights/client/__init__.py", line 208, in _fetch response = self.connection.get(url) File "/etc/insights-client/rpm.egg/insights/client/connection.py", line 195, in get return self._http_request(url, 'GET', **kwargs) File "/etc/insights-client/rpm.egg/insights/client/connection.py", line 191, in _http_request logger.log(NETWORK, "HTTP Response Text: %s", res.text) Message: 'HTTP Response Text: %s' Arguments: ('PK\x03\x04\n\x00\x00\x00\x00\x00\x00\x00!L\ufffd\x06\ufffd2\x01\x00\x00\x00\x01\x00\x00\x00\x1d\x00\x00\x00EGG INFO/dependency_links.txt\nPK\x03\x04\x14\x00\x00\x00\x08\x00\x00\x00!L\ufffd\ufffd\u02e0\ufffd\x00\x00\x00\ufffd\x01\x00\x00\x19\x00\x00\x00EGG-INFO/entry_points.txte\ufffdQ\x0e\ufffd \x0c\ufffd\ufffd=\ufffd\x17\ufffd\x070\ufffdI\ufffd\u0150\ufffdic\ufffd\ufffd\x83\ufffd\ufffd\t\ufffd!
-
While using
insights-client --register
in kickstart, it produces a lot of garbage error in the install.post.log.
Environment
- Red Hat Enterprise Linux 8
- Red Hat Insights
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.