Project

General

Profile

Actions

Bug #11197

closed

httpd Error: Invalid command 'PassengerEnabled' in Pulp Capsule when --puppet "false" used

Added by Matthias Thubauville almost 9 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Foreman Proxy Content
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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


Related issues 1 (0 open1 closed)

Related to Katello - Bug #9816: Capsule: cannot browse /pub using both http and httpsClosedEric Helms03/18/2015Actions
Actions #1

Updated by Matthias Thubauville almost 9 years ago

  • Related to Bug #9816: Capsule: cannot browse /pub using both http and https added
Actions #2

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release set to 31
  • Triaged changed from No to Yes
Actions #3

Updated by Stephen Benjamin over 8 years ago

  • translation missing: en.field_release changed from 31 to 70

Mass move to 2.4.0

Actions #4

Updated by Justin Sherrill over 8 years ago

  • translation missing: en.field_release changed from 70 to 86
Actions #5

Updated by Justin Sherrill over 8 years ago

  • Subject changed from httpd Error: Invalid command 'PassengerEnabled' in Pulp Capsule to httpd Error: Invalid command 'PassengerEnabled' in Pulp Capsule when --puppet "false" used
Actions #6

Updated by Eric Helms about 8 years ago

  • translation missing: en.field_release changed from 86 to 144
Actions #7

Updated by Eric Helms almost 8 years ago

  • translation missing: en.field_release changed from 144 to 168
Actions #8

Updated by Eric Helms almost 8 years ago

  • Status changed from New to Resolved
  • translation missing: en.field_release changed from 168 to 166

Given the age of this issue and the changes without subsequent reports I am moving this to resolved. If you still see it, please re-open.

Actions

Also available in: Atom PDF