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 682326 - https://server.testrelm/ipa/xml: Bad Request intermittent errors
Summary: https://server.testrelm/ipa/xml: Bad Request intermittent errors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: mod_nss
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On: 669118
Blocks: 749401
TreeView+ depends on / blocked
 
Reported: 2011-03-04 20:52 UTC by Jenny Severance
Modified: 2015-01-04 23:46 UTC (History)
3 users (show)

Fixed In Version: mod_nss-1.0.8-12.el6
Doc Type: Bug Fix
Doc Text:
Due to an incorrect use of the memcpy() function in the mod_nss module, running the Apache HTTP Server with this module enabled could cause some requests to fail with the following message written to the error_log file: request failed: error reading the headers This update applies a patch to ensure that the memcpy() function is now used in accordance with the current specification, and using the mod_nss module no longer causes HTTP requests to fail.
Clone Of:
: 749401 (view as bug list)
Environment:
Last Closed: 2011-05-19 14:15:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
httpd error log (13.32 KB, application/x-gzip)
2011-03-04 20:52 UTC, Jenny Severance
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0735 0 normal SHIPPED_LIVE mod_nss bug fix update 2011-05-18 18:09:19 UTC

Description Jenny Severance 2011-03-04 20:52:08 UTC
Created attachment 482372 [details]
httpd error log

Description of problem:
ipa CLI admin commands intermittently returning ..

ipa: ERROR: cannot connect to u'https://qe-blade-12.testrelm/ipa/xml': Bad Request

/var/log/httpd/error_log when Bad Request is received:

[Fri Mar 04 15:48:10 2011] [error] [client 10.16.76.43] request failed: error reading the headers
[Fri Mar 04 15:48:17 2011] [error] [client 10.16.76.43] request failed: error reading the headers


Version-Release number of selected component (if applicable):
ipa-server-2.0.0-13.20110304T0712zgitbd3e499.el6.x86_64
ipa-admintools-2.0.0-13.20110304T0712zgitbd3e499.el6.x86_6

How reproducible:
intermittent

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Dmitri Pal 2011-03-04 20:59:27 UTC
Any logs from the server would be helpful too.
If nothing is happening on the server it might indicate networking issues.
If there is something we would want to see it.

Comment 2 Dmitri Pal 2011-03-04 21:01:25 UTC
I meant the other side. I see that the attached log is from the server. Is there anything on the client?

Comment 4 Jenny Severance 2011-03-04 21:07:50 UTC
I am running these tests on the server ... there isn't a client in the environment at this time.

Comment 5 Rob Crittenden 2011-03-04 21:10:18 UTC
This needs to be fixed in mod_nss.

This is caused by a glibc change related to memcpy(). I didn't think this change was done in RHEL 6 otherwise I would have fixed this already. I haven't seen this problem in RHEL 6 myself, though I've only done limited testing.

Comment 6 Rob Crittenden 2011-03-09 18:48:12 UTC
Backported patch from Fedora

Comment 8 Kashyap Chamarthy 2011-04-19 16:01:22 UTC
Jenny, do you have a quick reproducer(I know you said 'intermittent', but just checking) or can you point me to the 'CLI admin commands' you were trying?

Comment 9 Jaromir Hradilek 2011-04-20 14:52:48 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Due to an incorrect use of the memcpy() function in the mod_nss module, running the Apache HTTP Server with this module enabled could cause some requests to fail with the following message written to the error_log file:

    request failed: error reading the headers

This update applies a patch to ensure that the memcpy() function is now used in accordance with the current specification, and using the mod_nss module no longer causes HTTP requests to fail.

Comment 10 Kashyap Chamarthy 2011-05-02 04:17:12 UTC
VERIFIED.

- RHEL 6.1(x86_64) nightly
- Version info:
-----------------------------
[root@tiger ~]# rpm -q mod_nss
mod_nss-1.0.8-12.el6.x86_64
-----------------------------

Verification procedure:
1. Configure IPA server
2. Ensure there is valid a Krb ticket for 'admin' user(if not get one)
# kinit admin
3. Run any ipa command like 'ipa user-find admin' (or 'ipa user-show admin') for an hour or two 
4.Ensure there are no 'failed requests' in /var/log/httpd/error_log

Successful verification Result
######################################################
[root@tiger ~]# kinit admin
######################################################
[root@tiger ~]# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: admin.PNQ.REDHAT.COM

Valid starting     Expires            Service principal
05/02/11 03:59:31  05/03/11 03:59:27  krbtgt/LAB.ENG.PNQ.REDHAT.COM.PNQ.REDHAT.COM
[root@tiger ~]# 
######################################################
[root@tiger ~]# while [ true ] ; do ipa user-find admin ; done
--------------
1 user matched
--------------
  User login: admin
  Last name: Administrator
  Home directory: /home/admin
  Login shell: /bin/bash
  Account disabled: False
  Member of groups: admins
----------------------------
Number of entries returned 1
----------------------------
.
.
.
######################################################
[root@tiger ~]# grep -i "request failed"  /var/log/httpd/error_log
[root@tiger ~]# 
######################################################

Comment 11 errata-xmlrpc 2011-05-19 14:15:10 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0735.html


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