Bug 1219591 - /var/run/httpd22 file is deleted after reboot
Summary: /var/run/httpd22 file is deleted after reboot
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: httpd
Version: 2.1.0
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: DR01
: 2.1.1
Assignee: Coty Sutherland
QA Contact: Jan Stourac
URL:
Whiteboard:
Depends On:
Blocks: 1338654
TreeView+ depends on / blocked
 
Reported: 2015-05-07 17:49 UTC by Leticia Konno
Modified: 2020-09-20 12:14 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Prior to EWS 2.1.1, when a rhel-7 server reboots the /var/run/httpd22 file was deleted and it was not possible to start the httpd22 service again. This was resolved by adding the directory to the system's tmpfiles.d configuration so that the system recreates the directory after every reboot.
Clone Of:
: 1338654 (view as bug list)
Environment:
Last Closed: 2019-06-13 09:17:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1442453 0 None None None Never

Description Leticia Konno 2015-05-07 17:49:11 UTC
Description of problem:

After RHEL 7 server reboot the /var/run/httpd22 file is deleted and it is not possible to start Apache again with the following erros:

[Thu May 07 09:01:09 2015] [error] (2)No such file or directory: could not create /etc/httpd22/run/httpd22.pid
[Thu May 07 09:01:09 2015] [error] httpd22: could not log pid to file /etc/httpd22/run/httpd22.pid

Version-Release number of selected component (if applicable):
httpd22-2.2.26-38.ep6.el7.x86_64
RHEL 7

How reproducible:

Steps to Reproduce:
1. install httpd from JBoss EAP 6 channel in RHEL 7
2. reboot the server

Actual results:

Apache will not start. 
As a workaround, create /etc/tmpfiles.d/httpd22.conf containing "d /var/run/httpd22 755 apache apache" and reboot.

Comment 6 Permaine Cheung 2016-05-26 18:10:09 UTC
Weinan, please look into this in the httpd build. thanks!

Comment 10 Jan Stourac 2016-08-09 14:54:15 UTC
Successfully verified with httpd22-2.2.26-54.ep6.el7.x86_64, thank you for the fix, Coty.

Comment 11 Gianluca Cecchi 2017-05-17 12:14:11 UTC
Hello, could it happen a regression in
httpd22-2.2.26-56.ep6.el7.x86_64 from rhsm channel jb-eap-6.4-for-rhel-7-server?
Because we fresh installed this package and we have the problem, solvable only with the workaround of creating the file /etc/tmpfiles.d/httpd22.conf as detailed in Description of the bug?

Comment 12 Gianluca Cecchi 2017-05-17 12:16:00 UTC
The product of this case is EWS2 while we have problem with EAP, but for another case we opened in the past the technician supporting us told the packages are the same for the 2 channels, but I don't believe it is actually true....

Comment 13 Coty Sutherland 2017-05-18 03:48:19 UTC
Hi Gianluca, it isn't possible for there to be a regression as there is only one build matching the provided identifier. The changelog of the package provided shows that the issue was fixed in 2.2.26-47, so everything should be working as expected. If this is readily reproducible with a new install, please provide your steps via a support case so that we can verify and we will work to address it.

Also, this particular package is indeed shared between EWS 2 and the EAP repositories as noted by the "Available From" section of the download page here: https://access.redhat.com/downloads/content/httpd22/2.2.26-56.ep6.el7/x86_64/fd431d51/package


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