Project

General

Profile

Bug #16972

httpd fails to start after mod_ssl updated

Added by Chris Roberts over 2 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Upgrades
Target version:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from BZ:

Description of problem:
Running "yum update" on a Satellite 6.2 beta installed on RHEL 7 results in package httpd being updated from 2.4.6-40.el7 to 2.4.6-40.el7_2.1.
This causes previously non existent file /etc/httpd/conf.d/ssl.conf to be created.
Running "foreman-installer --scenario katello --upgrade" does not remove /etc/httpd/conf.d/ssl.conf and httpd fails to start.
"Listen 443" in /etc/httpd/conf.d/ssl.conf conflicts with "Listen 443" on /etc/httpd/conf/ports.conf .

Version-Release number of selected component (if applicable):
foreman-installer-1.11.0.3-1.el7sat

How reproducible:
Always

Steps to Reproduce:
1. Run "yum update" on the Satellite and have httpd package updated.
2. Running "foreman-installer --scenario katello --upgrade"
3.

Actual results:
httpd fails to start:

  1. foreman-installer --scenario katello --upgrade
    Upgrading...
    Upgrade Step: stop_services...
    Upgrade Step: start_databases...
    Upgrade Step: migrate_pulp...
    Upgrade Step: start_httpd...
    Upgrade step start_httpd failed. Check logs for more information.
  1. tail /var/log/httpd/error_log
    [Mon May 16 09:26:03.951254 2016] [core:crit] [pid 46664] (22)Invalid argument: AH00069: make_sock: for address [::]:443, apr_socket_opt_set: (IPV6_V6ONLY)
    (98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
    (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
    [Mon May 16 09:26:03.951314 2016] [mpm_prefork:alert] [pid 46664] no listening sockets available, shutting down
    [Mon May 16 09:26:03.951317 2016] [:emerg] [pid 46664] AH00019: Unable to open logs, exiting
    /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:105:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:105:in `new'
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:105:in `connect'
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:86:in `socket'
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:90:in `head_request'
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:145:in `<main>'
    /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:105:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:105:in `new'
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:105:in `connect'
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:112:in `connect'
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:86:in `socket'
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:90:in `head_request'
    from /usr/share/gems/gems/passenger-4.0.18/helper-scripts/prespawn:145:in `<main>'

Duplicated "Listen 443" directives as a result of httpd package provided file /etc/httpd/conf.d/ssl.conf not being cleared by "foreman-installer --scenario katello --upgrade":

  1. grep -r "Listen 443" /etc/httpd
    /etc/httpd/conf/ports.conf:Listen 443
    /etc/httpd/conf.d/ssl.conf:Listen 443 https

Expected results:
"foreman-installer --scenario katello --upgrade" resolves the conflict and httpd starts successfully.


Related issues

Related to Katello - Bug #17507: We no longer need to delete ssl.conf when we move to the latest puppetlabs-apache versionClosed2016-11-28

Associated revisions

Revision bcec45fe (diff)
Added by Chris Roberts over 2 years ago

Fixes #16972 - Adding post hook to create ssl.conf file (#414)

History

#1 Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/413 added

#3 Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/414 added

#4 Updated by Chris Roberts over 2 years ago

  • Pull request deleted (https://github.com/Katello/katello-installer/pull/413)

#5 Updated by Chris Roberts over 2 years ago

  • Target version changed from 129 to 133

#6 Updated by Chris Roberts over 2 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#7 Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/431 added

#8 Updated by Stephen Benjamin over 2 years ago

  • Related to Bug #17507: We no longer need to delete ssl.conf when we move to the latest puppetlabs-apache version added

Also available in: Atom PDF