Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
When trying to include my workstation to insights, utility is exiting with traceback during the upload of data. This traceback is not helpful in sorting out the issue.
Version-Release number of selected component (if applicable):
redhat-access-insights-1.0.11-0.el7.noarch
How reproducible:
my machine
Steps to Reproduce:
1. sudo redhat-access-insights --register [or without it]
Actual results:
Traceback is printed [using output in log file for better verbosity]:
2016-11-10 15:56:01,614 DEBUG Found /etc/redhat-access-insights/machine-id
2016-11-10 15:56:01,614 DEBUG Uploading /var/tmp/peYd9p/insights-dhcp-24-168.brq.redhat.com-20161110155550.tar.gz to https://cert-api.access.redhat.com/r/insights/uploads/a045ea9a-c6a3-4308-96b1-ed0c4c7ae3e4
2016-11-10 15:56:01,615 ERROR ['Traceback (most recent call last):\n', ' File "/bin/redhat-access-insights", line 9, in <module>\n load_entry_point(\'redhat-access-insights==1.0.11\', \'console_scripts\', \'redhat-access-insights\')()\n', ' File "/usr/lib/python2.7/site-packages/redhat_access_insights/__init__.py", line 654, in _main\n rc = collect_data_and_upload(config, options)\n', ' File "/usr/lib/python2.7/site-packages/redhat_access_insights/__init__.py", line 252, in collect_data_and_upload\n rc = _do_upload(pconn, tar_file, collection_duration, options)\n', ' File "/usr/lib/python2.7/site-packages/redhat_access_insights/__init__.py", line 272, in _do_upload\n upload = pconn.upload_archive(tar_file, collection_duration)\n', ' File "/usr/lib/python2.7/site-packages/redhat_access_insights/connection.py", line 654, in upload_archive\n upload = self.session.post(upload_url, files=files, headers=headers)\n', ' File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 522, in post\n return self.request(\'POST\', url, data=data, json=json, **kwargs)\n', ' File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 461, in request\n prep = self.prepare_request(req)\n', ' File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 394, in prepare_request\n hooks=merge_hooks(request.hooks, self.hooks),\n', ' File "/usr/lib/python2.7/site-packages/requests/models.py", line 295, in prepare\n self.prepare_headers(headers)\n', ' File "/usr/lib/python2.7/site-packages/requests/models.py", line 409, in prepare_headers\n check_header_validity(header)\n', ' File "/usr/lib/python2.7/site-packages/requests/utils.py", line 800, in check_header_validity\n "not %s" % (value, type(value)))\n', "InvalidHeader: Header value 0.32 must be of type str or bytes, not <type 'float'>\n"]
2016-11-10 15:56:01,615 DEBUG Deleting: /var/tmp/peYd9p
Expected results:
As I am not sure if I have configuration correct, I expect two scenarios possible scenarios:
1) Service works and let the report to be used in insights.
2) Traceback is not shown, and explanation what could be wrong is printed instead.
Additional info:
Hi, can you please run the Client in "verbose" mode via "sudo redhat-access-insights --register --verbose" and send us the STDOUT or an archive of /var/log/redhat-access-insights. Thanks
It seems like there is a connectivity issue with the Satellite server. Can you please run "sudo redhat-access-insights --test-connection --verbose." Can you confirm this workstation has access to the Satellite? Thanks
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2017:2324