Problem:
Upgraded Foreman on Debian 7 to Debian 8 now Apache Fails and foreman-installer fails
Expected outcome:
foreman-installer resets apache configuration to work and connections to Puppet resume.
Foreman and Proxy versions:
1.8
Foreman and Proxy plugin versions:
Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
root@bcmdit-puppet-533-robson:/home/bcmdit# foreman-installer
/usr/lib/ruby/vendor_ruby/kafo_parsers/puppet_module_parser.rb:84:in `docs': no documentation found for manifest /usr/share/foreman-installer/modules/foreman/manifests/init.pp, parsing error? (KafoParsers::DocParseError)
from /usr/lib/ruby/vendor_ruby/kafo_parsers/puppet_module_parser.rb:19:in `parse'
from /usr/lib/ruby/vendor_ruby/kafo/puppet_module.rb:44:in `parse'
from /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:85:in `block in modules'
from /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:85:in `map'
from /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:85:in `modules'
from /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:172:in `modules'
from /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:154:in `params'
from /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:187:in `set_parameters'
from /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:66:in `initialize'
from /usr/lib/ruby/vendor_ruby/clamp/command.rb:126:in `new'
from /usr/lib/ruby/vendor_ruby/clamp/command.rb:126:in `run'
from /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:118:in `run'
from /usr/sbin/foreman-installer:18:in `<main>'
root@bcmdit-puppet-533-robson:/home/bcmdit#
root@bcmdit-puppet-533-robson:/home/bcmdit# journalctl -xn
-- Logs begin at Fri 2018-07-13 12:21:46 PDT, end at Sun 2018-07-15 17:22:51 PDT. --
Jul 15 17:22:51 bcmdit-puppet-533-robson.bcmdit.com apache2[10643]: Starting web server: apache2 failed!
Jul 15 17:22:51 bcmdit-puppet-533-robson.bcmdit.com apache2[10643]: The apache2 configtest failed. ... (warning).
Jul 15 17:22:51 bcmdit-puppet-533-robson.bcmdit.com apache2[10643]: Output of config test was:
Jul 15 17:22:51 bcmdit-puppet-533-robson.bcmdit.com apache2[10643]: AH00526: Syntax error on line 6 of /etc/apache2/mods-enabled/alias.conf:
Jul 15 17:22:51 bcmdit-puppet-533-robson.bcmdit.com apache2[10643]: Invalid command 'Order', perhaps misspelled or defined by a module not included in the se
Jul 15 17:22:51 bcmdit-puppet-533-robson.bcmdit.com apache2[10643]: Action 'configtest' failed.
Jul 15 17:22:51 bcmdit-puppet-533-robson.bcmdit.com apache2[10643]: The Apache error log may have more information.
Jul 15 17:22:51 bcmdit-puppet-533-robson.bcmdit.com systemd[1]: apache2.service: control process exited, code=exited status=1
Jul 15 17:22:51 bcmdit-puppet-533-robson.bcmdit.com systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Jul 15 17:22:51 bcmdit-puppet-533-robson.bcmdit.com systemd[1]: Unit apache2.service entered failed state.
root@bcmdit-puppet-533-robson:/home/bcmdit# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up apache2 (2.4.10-10+deb8u12) ...
Directory /etc/apache2/conf.d is not empty - leaving as is
Please note, that directory is considered obsolete and not read anymore by default
05-foreman.d 05-foreman-ssl.d repos
disable obsolete module auth_basic
WARNING: The following essential module will be disabled.
This might result in unexpected behavior and should NOT be done
unless you know exactly what you are doing!
auth_basic
To continue type in the phrase 'Yes, do as I say!' or retry by passing '-f':
Aborting
dpkg: error processing package apache2 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
apache2-mpm-worker depends on apache2 (= 2.4.10-10+deb8u12); however:
Package apache2 is not configured yet.
dpkg: error processing package apache2-mpm-worker (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2.2-common:
apache2.2-common depends on apache2 (>= 2.3~); however:
Package apache2 is not configured yet.
dpkg: error processing package apache2.2-common (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apache2
apache2-mpm-worker
apache2.2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@bcmdit-puppet-533-robson:/home/bcmdit#