Project

General

Profile

Actions

Bug #10426

closed

Apache not started on a fresh centos7 install (selinux problem)

Added by François ARMAND over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Priority:
78
Name check:
Fix check:
Regression:

Description

On fresh centos 7 install, apache server is not started.

It seems that the problem is with systemd, because:

root@server:/home/vagrant# systemctl start httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
root@server:/home/vagrant# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2017-03-15 17:03:56 UTC; 5s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 4512 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 4510 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
 Main PID: 4510 (code=exited, status=0/SUCCESS)

Mar 15 17:03:56 server systemd[1]: Starting The Apache HTTP Server...
Mar 15 17:03:56 server httpd[4510]: httpd (pid 28970) already running
Mar 15 17:03:56 server kill[4512]: kill: cannot find process "" 
Mar 15 17:03:56 server systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 15 17:03:56 server systemd[1]: Failed to start The Apache HTTP Server.
Mar 15 17:03:56 server systemd[1]: Unit httpd.service entered failed state.
Mar 15 17:03:56 server systemd[1]: httpd.service failed.
root@server:/home/vagrant#

BUT: just executing:

root@server:/home/vagrant# httpd
root@server:/home/vagrant# root@server:/home/vagrant# ps aux | grep http
apache    1040  0.0  0.6 361856  9220 ?        S    16:58   0:00 httpd
apache    1041  0.0  0.5 361968  9096 ?        S    16:58   0:00 httpd
apache    1042  0.0  0.5 361832  8780 ?        S    16:58   0:00 httpd
...

And then Rudder works


Subtasks 3 (0 open3 closed)

Bug #10479: Remove all calls to semanage in our packagesReleasedBenoît PECCATTEActions
Bug #10481: Backport parent fix to 3.1ReleasedBenoît PECCATTEActions
Bug #10491: selinux policy should be applied at the end of postinstall or technique folder will not be managed correctlyReleasedAlexis MoussetActions

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #10372: On Centos 7.3, upgrading from 4.0 to 4.1 fail due to SELinux problemReleasedBenoît PECCATTEActions
Actions

Also available in: Atom PDF