Wind River Support Network

HomeDefectsOVP-765
Fixed

OVP-765 : [ovirt-engine] engine-setup failed due to 'Error: Can't start the apache2 service'

Created: Sep 23, 2013    Updated: Mar 11, 2016
Resolved Date: Oct 10, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

Problem Description
======================
[ovirt-engine] engine-setup failed due to 'Error: Can't start the apache2 service'
As logs showing, there miss a apache2's module /usr/lib64/apache2/modules/mod_deflate.so

Expected Behavior
======================
it works well

Observed Behavior
======================
None

Logs
======================

Configuring HTTPD...                                           [ ERROR ]
Error: Can't start the apache2 service
Please check log file /var/log/ovirt-engine/engine-setup_2013_09_23_09_28_34.log for more information

-------------
engine-setup_2013_09_23_09_28_34.log


2013-09-23 09:31:17::DEBUG::common_utils::1199::root:: stopping apache2
2013-09-23 09:31:17::DEBUG::common_utils::1236::root:: executing action apache2 on service stop
2013-09-23 09:31:17::DEBUG::common_utils::372::root:: Executing command --> '/sbin/service apache2 stop'
2013-09-23 09:31:17::DEBUG::common_utils::410::root:: output = failed

2013-09-23 09:31:17::DEBUG::common_utils::411::root:: stderr = httpd: Syntax error on line 75 of /etc/apache2/httpd.conf: Cannot load /usr/lib64/apache2/modules/mod_deflate.so into server: /usr/lib64/apache2/modules/mod_deflate.so: cannot open shared object file: No such file or directory

2013-09-23 09:31:17::DEBUG::common_utils::412::root:: retcode = 1
2013-09-23 09:31:17::DEBUG::common_utils::1189::root:: starting apache2
2013-09-23 09:31:17::DEBUG::common_utils::1236::root:: executing action apache2 on service start
2013-09-23 09:31:17::DEBUG::common_utils::372::root:: Executing command --> '/sbin/service apache2 start'
2013-09-23 09:31:17::DEBUG::common_utils::410::root:: output = Starting web server: apache2failed

2013-09-23 09:31:17::DEBUG::common_utils::411::root:: stderr = httpd: Syntax error on line 75 of /etc/apache2/httpd.conf: Cannot load /usr/lib64/apache2/modules/mod_deflate.so into server: /usr/lib64/apache2/modules/mod_deflate.so: cannot open shared object file: No such file or directory

2013-09-23 09:31:17::DEBUG::common_utils::412::root:: retcode = 1
2013-09-23 09:31:17::DEBUG::setup_sequences::62::root:: Traceback (most recent call last):
  File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60, in run
    function()
  File "/usr/bin/engine-setup", line 1767, in _startHttpd
    srv.start(True)
  File "/usr/share/ovirt-engine/scripts/common_utils.py", line 1194, in start
    raise Exception(output_messages.ERR_FAILED_START_SERVICE % self.name)
Exception: Error: Can't start the apache2 service

2013-09-23 09:31:17::DEBUG::engine-setup::2018::root:: *** The following params were used as user input:
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: override-httpd-config: yes
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: http-port: 80
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: https-port: 443
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: random-passwords: no
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: mac-range: 00:1A:4A:A8:7A:00-00:1A:4A:A8:7A:FF
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: host-fqdn: localhost.localdomain
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: auth-pass: ********
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: org-name: localdomain
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: application-mode: both
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: default-dc-type: NFS
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: db-remote-install: local
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: db-host: localhost
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: db-local-pass: ********
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: nfs-mp: /var/lib/exports/iso_2013_09_23_09_28_35
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: iso-domain-name: ISO_DOMAIN
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: config-nfs: yes
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: override-firewall: None
2013-09-23 09:31:17::DEBUG::engine-setup::2023::root:: config-allinone: no
2013-09-23 09:31:17::ERROR::engine-setup::2440::root:: Traceback (most recent call last):
  File "/usr/bin/engine-setup", line 2434, in <module>
    main(confFile)
  File "/usr/bin/engine-setup", line 2212, in main
    runSequences()
  File "/usr/bin/engine-setup", line 2138, in runSequences
    controller.runAllSequences()
  File "/usr/share/ovirt-engine/scripts/setup_controller.py", line 54, in runAllSequences
    sequence.run()
  File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 154, in run
    step.run()
  File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60, in run
    function()
  File "/usr/bin/engine-setup", line 1767, in _startHttpd
    srv.start(True)
  File "/usr/share/ovirt-engine/scripts/common_utils.py", line 1194, in start
    raise Exception(output_messages.ERR_FAILED_START_SERVICE % self.name)
Exception: Error: Can't start the apache2 service

Steps to Reproduce

1) /lpg-build/cdc/fast_prod/wrlinuxovp/wrlinux-x/wrlinux/configure --enable-board=intel-xeon-core --enable-rootfs=ovp-ovirt-engine --enable-addons=wr-ovp --with-package=wrs-kvm-helper --enable-parallel-pkgbuilds=40 --enable-jobs=40 --with-rcpl-version=0

2) make fs

3) deploy images and starup board.

4) setting ovirt-engine service by run 'engine-setup'

Check the behaving and logs.
Live chat
Online