[Bug 603211] Re: Apache fails to start after reboot due to missing /var/run/apache2 direcotry when ssl is enabled

timdaman 603211 at bugs.launchpad.net
Fri Jul 9 19:58:38 BST 2010


In reviewing your email with my teamyou are right. I am pretty sure the
admin how ran into the bug used the OCF script instead of the init.d to try
to match what "heartbeat" is doing. Looking at ocf it doesn't use
apache2ctl, it uses /usr/sbin/apache2. I will retract my bug report from you
and add your additional information the the heartbeat report. My appoligies
for the false accusation and thank you very much for your help.
--Tim


On Fri, Jul 9, 2010 at 1:51 PM, Clint Byrum <clint at fewbar.com> wrote:

> I was unable to reproduce this by installing apache2, enabling ssl,
> hitting the site a few times, and then rebooting the machine.
>
> apache2ctl does clear out  /var/run/apache2/*ssl_scache* .. but thats
> the closest thing I could find to something clearing out
> /var/run/apache2.
>
> Marked as Incomplete.
>
> ** Changed in: apache2 (Ubuntu)
>       Status: New => Incomplete
>
> ** Changed in: apache2 (Ubuntu)
>   Importance: Undecided => Medium
>
> --
> Apache fails to start after reboot due to missing /var/run/apache2
> direcotry when ssl is enabled
> https://bugs.launchpad.net/bugs/603211
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “apache2” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: apache2
>
> For some reason after I rebooted my apache2 server the /var/run/apache2
> directory disappeared. This directory is needed to support mod_ssl which
> makes use of it to store "SSLSessionCache" and "SSLMutex". Apache2 cannot be
> started with ssl enabled and the /var/run/apache2 is directory missing. It
> will log the following message
>
> [Thu Jul 08 00:15:15 2010] [error] (2)No such file or directory: Cannot
> create SSLMutex with file `/var/run/apache2/ssl_mutex'
> Configuration Failed
>
> The solution is to recreat this directory. I am using the following code
> stub
>
> [ -d /var/run/apache2 ] || mkdir /var/run/apache2
>
> There are several solutions to this issue
>
> 1) Ensure /var/run/apche2 doesn't get deleted on reboot
> 2) Ensure startup scripts verify /var/run/apche2 exists and create it if
> missing
> 3) In /etc/apache2/mods-available/ssl.conf  adjust "SSLSessionCache" and
> "SSLMutex" to store these in a more permanent location.
>
> I also have run into this issue while using the OCF startup script included
> with the "heartbeat" package.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/603211/+subscribe
>

-- 
Apache fails to start after reboot due to missing /var/run/apache2 direcotry when ssl is enabled 
https://bugs.launchpad.net/bugs/603211
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.



More information about the Ubuntu-server-bugs mailing list