puppetmaster-passenger does not install cleanly from scrach

Bug #948909 reported by Glenn Aaldering
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
puppet (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

When installing puppetmaster-passenger the install will not finish without errors. After doing some research the problem is because apache2 mod_headers is not enabled.

Output from install:

To activate the new configuration, you need to run:
  service apache2 reload
Syntax error on line 29 of /etc/apache2/sites-enabled/puppetmaster:
Invalid command 'RequestHeader', 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 puppetmaster-passenger (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up ruby1.8-dev (1.8.7.352-2ubuntu1) ...
Setting up ssl-cert (1.0.28) ...
Setting up libstdc++6-4.6-dev (4.6.3-1ubuntu2) ...
Setting up g++-4.6 (4.6.3-1ubuntu2) ...
Setting up g++ (4:4.6.2-4ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode.
Setting up build-essential (11.5ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 puppetmaster-passenger
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up puppetmaster-passenger (2.7.11-1) ...
Module ssl already enabled
Site puppetmaster already enabled
Syntax error on line 29 of /etc/apache2/sites-enabled/puppetmaster:
Invalid command 'RequestHeader', 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 puppetmaster-passenger (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 puppetmaster-passenger

The fix:

a2enmod headers
/etc/init.d/apache2 restart

It seems that only the SSL module is enabled through this install, but it needs mod_headers too in order to run

Changed in puppet (Ubuntu):
status: New → Confirmed
Steve Langasek (vorlon)
Changed in puppet (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Glenn Aaldering (glennaaldering) wrote :

This is fixed in bug 948983

Changed in puppet (Ubuntu):
status: Confirmed → Fix Committed
James Page (james-page)
Changed in puppet (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.