bloomberg / chef-bach

Chef recipes for Bloomberg's deployment of Hadoop and related components
Apache License 2.0
61 stars 66 forks source link

Building a 12.04 cluster using UEFI_SUPPORT fails #677

Closed amithkanand closed 8 years ago

amithkanand commented 8 years ago

I am hitting following issue while building a 12.04 cluster using UEFI_SUPPORT branch:

================================================================================
Error executing action `upgrade` on resource 'package[zabbix-frontend-php]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '100'
---- Begin output of apt-get -q -y install zabbix-frontend-php=1:2.4.8-1+precise ----
STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
...
...
...
...
ldconfig deferred processing now taking place
STDERR: Syntax error on line 25 of /etc/apache2/sites-enabled/graphite-web:
Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!
invoke-rc.d: initscript apache2, action "restart" failed.
dpkg: error processing zabbix-frontend-php (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 zabbix-frontend-php
E: Sub-process /usr/bin/dpkg returned an error code (1)
---- End output of apt-get -q -y install zabbix-frontend-php=1:2.4.8-1+precise ----
Ran apt-get -q -y install zabbix-frontend-php=1:2.4.8-1+precise returned 100

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/bcpc/recipes/zabbix-head.rb

Running dpkg -l | grep apache shows:

vagrant@bcpc-bootstrap:~$ dpkg -l | grep apache
ii  apache2                          2.4.7-1ubuntu4.13                   amd64        Apache HTTP Server
ii  apache2-bin                      2.4.7-1ubuntu4.13                   amd64        Apache HTTP Server (binary files and modules)
ii  apache2-data                     2.4.7-1ubuntu4.13                   all          Apache HTTP Server (common files)
ii  libapache2-mod-wsgi              3.4-4ubuntu2.1.14.04.2              amd64        Python WSGI adapter module for Apache
http-418 commented 8 years ago

This should be fixed by moving the a2enmod version from bcpc::zabbix-head into bcpc::apache2

amithkanand commented 8 years ago

Opening it again and will close once new changes are tested and cluster builds successfully.

amithkanand commented 8 years ago

Cluster build completed successfully after the fix.