[Pkg-puppet-devel] Bug#788125: Missing directory referenced in SSL configuration

Simon Van der Linden simon at vanderlinden.eu.org
Mon Jun 8 20:49:19 UTC 2015


Package: puppet-module-puppetlabs-apache
Version: 1.1.1-1

In my manifest, I have:

  class { '::apache’:
    apache_version => 2.4,
    ...
  }

  class { 'apache::mod::ssl': }

In /etc/apache2/mods-enabled/ssl.conf, one can find:

    Mutex file:${APACHE_RUN_DIR}/ssl_mutex

When I start apache, I get the following error:

Jun  8 22:33:06 vulturnus apache2[17654]: Starting web server: apache2 failed!
Jun  8 22:33:06 vulturnus apache2[17654]: The apache2 configtest failed. ... (warning).
Jun  8 22:33:06 vulturnus apache2[17654]: Output of config test was:
Jun  8 22:33:06 vulturnus apache2[17654]: AH00526: Syntax error on line 13 of /etc/apache2/mods-enabled/ssl.conf:
Jun  8 22:33:06 vulturnus apache2[17654]: Invalid Mutex directory in argument file:/var/run/apache2/ssl_mutex
Jun  8 22:33:06 vulturnus apache2[17654]: Action 'configtest' failed.
Jun  8 22:33:06 vulturnus apache2[17654]: The Apache error log may have more information.
Jun  8 22:33:06 vulturnus systemd[1]: apache2.service: control process exited, code=exited status=1
Jun  8 22:33:06 vulturnus systemd[1]: Failed to start LSB: Apache2 web server.
Jun  8 22:33:06 vulturnus systemd[1]: Unit apache2.service entered failed state.

The problem is that the directory /var/run/apache2/ssl_mutex does not exist and is not created by the startup script or Apache. Creating it fixes the problem temporarily, but as /run is a tmpfs, at the next reboot the directory will be gone and the problem will be there again.

In more recent version of puppetlabs/apache, they set the Mutex parameter to ‘default’. Backporting the following change would fix the issue:

https://github.com/puppetlabs/puppetlabs-apache/commit/2093c1e763ffa0760bbe92cb7ba912979062daae


More information about the Pkg-puppet-devel mailing list