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 1804015 - Running ipa-backup continuously causes httpd to crash and makes it irrecoverable
Summary: Running ipa-backup continuously causes httpd to crash and makes it irrecoverable
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nss
Version: 7.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: nss-nspr-maint
QA Contact: Alicja Kario
URL:
Whiteboard:
Depends On: 1804262
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-18 02:40 UTC by rmitra
Modified: 2023-09-07 21:55 UTC (History)
10 users (show)

Fixed In Version: nss-3.53.1-3.el7_9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 21:18:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 1629661 0 -- RESOLVED MPConfig calls in SSL initializes policy before NSS is initialized. 2021-02-15 15:13:00 UTC
Red Hat Product Errata RHSA-2020:4076 0 None None None 2020-09-29 21:19:41 UTC

Description rmitra 2020-02-18 02:40:04 UTC
Description of problem
======================

1. When ipa-backup is run continuously for few hours, httpd crashes with 7/BUS error and afterwards, IPA services are not restored.

2. While reproducing this issue by running ipa-backup in a loop, ipa-backup eventually fails after file-system becomes full, which is normal. However, the following behaviour is seen:

a) After clearing up the file-system space, IPA services cannot be restarted because httpd continues to fail.

b) Manual start using "systemctl status httpd" also fails.

c) Reboot doesn't restore IPA service, however after reboot, manual restart of httpd works.


Version-Release number of selected component (if applicable)
============================================================

RHEL 7.6+


How reproducible
================

Run "ipa-backup" in a loop, with or without sufficient sleeps in between and wait for file system to become full.

# ipa-backup ; sleep 1; time { RET=0; while [ $RET -eq 0 ]; do ipa-backup ; sleep 1; systemctl status httpd ; RET=$?; echo "**** status=$RET ****"; done; }


Steps to Reproduce
==================

1. Run ipa-backup in a loop until file system becomes full. The sleeps in between don't really matter.

# ipa-backup ; sleep 1; time { RET=0; while [ $RET -eq 0 ]; do ipa-backup ; sleep 1; systemctl status httpd ; RET=$?; echo "**** status=$RET ****"; done; }

2. Once httpd starts failing, it goes into an irrecoverable state i.e. cannot be restored manually even after clearing up disk space.

3. Reboot fails to restore IPA services automatically.


Actual results
==============

Continuously running ipa-backup breaks httpd service.


Expected results
================

ipa-backup should be robust enough to check for available space before disrupting service and shouldn't be able to cause IPA services (especially httpd) to enter an irrecoverable state.

Comment 5 Rob Crittenden 2020-02-18 13:38:19 UTC
What do you mean reboot doesn't restore the services and has to be done manually?

Exact package versions are necessary for ipa-server, httpd, mod_nss and nss.

Comment 7 Rob Crittenden 2020-02-19 15:49:15 UTC
The key error message is:

[Fri Feb 07 11:24:26.408975 2020] [core:emerg] [pid 30649] (28)No space left on device: AH00023: Couldn't create the proxy mutex 
[Fri Feb 07 11:24:26.408999 2020] [proxy:crit] [pid 30649] (28)No space left on device: AH02478: failed to create proxy mutex

This may mean that Apache is out of semaphores.

# ipcs -s

If there are a ton of semaphores you can clean this up with without requiring a reboot.

# for x in `ipcs -s | awk '{print $2}'`; do ipcrm -s $x; done

Comment 8 François Cami 2020-02-24 08:52:15 UTC
As for ipa-backup being enhanced to predict how much space a backup is going to take, this is covered by:
"RFE: predict how much space a backup is going to take" https://bugzilla.redhat.com/show_bug.cgi?id=1796589 

Rituparna, would you agree to close the current bug (#1804015) after reviewing the RFE above and Rob's comments in #7 please?

Comment 32 errata-xmlrpc 2020-09-29 21:18:46 UTC
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 (Moderate: nss and nspr security, bug fix, and enhancement update), 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/RHSA-2020:4076


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