Actions
Bug #11197
closedhttpd Error: Invalid command 'PassengerEnabled' in Pulp Capsule when --puppet "false" used
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Foreman Proxy Content
Target version:
Description
This line: https://github.com/Katello/katello-installer/blob/master/modules/capsule/templates/httpd_pub.erb#L4
Causes the following error during the startup of the httpd on a pulp capsule
[root@rhel7 ~]# systemctl status httpd -l httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled) Active: failed (Result: exit-code) since Thu 2015-07-23 09:03:56 CEST; 15s ago Process: 22250 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 22248 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 22248 (code=exited, status=1/FAILURE) Jul 23 09:03:56 rhel7.example.com httpd[22248]: AH00526: Syntax error on line 40 of /etc/httpd/conf.d/05-capsule.conf: Jul 23 09:03:56 rhel7.example.com httpd[22248]: Invalid command 'PassengerEnabled', perhaps misspelled or defined by a module not included in the server configuration Jul 23 09:03:56 rhel7.example.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Jul 23 09:03:56 rhel7.example.com kill[22250]: kill: cannot find process "" Jul 23 09:03:56 rhel7.example.com systemd[1]: httpd.service: control process exited, code=exited status=1 Jul 23 09:03:56 rhel7.example.com systemd[1]: Failed to start The Apache HTTP Server. Jul 23 09:03:56 rhel7.example.com systemd[1]: Unit httpd.service entered failed state.
The capsule was installed with the following options (After applying this patch: https://github.com/Katello/katello-installer/pull/237/files?diff=unified)
capsule-installer -v --parent-fqdn "katello.example.com"\ --register-in-foreman "true"\ --foreman-oauth-key "KEY"\ --foreman-oauth-secret "SECRET"\ --pulp-oauth-secret "SECRET"\ --certs-tar "~/fqdn_capsule_sslcerts.tar"\ --puppet "false"\ --puppetca "false"\ --pulp "true"
However it seems that in this combination the mod_passenger gets neither installed nor activated, which is why the above statement in the /etc/httpd/conf.d/05-capsule.conf is not allowed.
Removing the
PassengerEnabled off
statement solved the problem for me, but may not be a general solution.
For completeness:
[root@rhel7 ~]# rpm -qa | grep katello pulp-katello-0.4-1.el7.noarch katello-debug-2.2.1-0.el7.noarch katello-service-2.2.1-0.el7.noarch katello-installer-base-2.2.2-1.el7.noarch katello-certs-tools-2.0.1-1.el7.noarch katello-agent-2.2.1-1.el7.noarch katello-default-ca-1.0-1.noarch katello-server-ca-1.0-1.noarch katello-ca-consumer-deployc001.srv.muenchen.de-1.0-1.noarch katello-selinux-2.2.1-1.el7.noarch [root@rhel7 ~]# rpm -qa | grep capsule capsule-installer-2.2.2-1.el7.noarch
Actions