Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 21st August 2006, 16:08
jarkand jarkand is offline
Junior Member
Join Date: Aug 2006
Location: Germany (the very south)
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jarkand
Default Apache down every week (caught SIGTERM)

Hey guys,

this is my first post here, so don't push to hard on me, ok

I've been looking around for some time to find any helpful topics on the web but wasn't lucky so far. Let's try it this way.

My system is a Debian 3.1 version (Postfix, Apache2 (Apache/2.0.54 mod_ssl/2.0.54), MySql and Proftp, also).

And here's my problem (and I think it's not related to system only):
Every Sunday my Apache goes down so I sat down and checked the logs. The only thing I found, is an entry in /var/log/apache2/error.log which says:
[Sun Aug 06 06:25:02 2006] [notice] caught SIGTERM, shutting down
Well, every Sunday means that it has something to do with the crons running on my system. So I checked the weekly cron in /etc/cron.weekly and found the standard files which are:
But wasn't lucky here, too.

After checking the /etc/logrotate.d/apache2 I found this:
/var/log/apache2/*.log {
	rotate 52
	create 640 root adm
		if [ -f /var/run/apache2.pid ]; then
			/etc/init.d/apache2 restart > /dev/null
Here you can see that the Apache is restarted but for some reason it fails. OK, more digging and after one week I found this in the apache error log:
[Sun Aug 13 06:25:01 2006] [error] Init: Unable to read pass phrase [Hint: key introduced or changed before restart?]
[Sun Aug 13 06:25:01 2006] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Sun Aug 13 06:25:01 2006] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Aug 13 06:25:01 2006] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Sun Aug 13 06:25:01 2006] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib
As far as I understand the cron is restarting the apache but apache waits for the SSL private key password but there's no one who types it in - right? So it sends the SIGTERM signal and that's it: no Website online

Now my question: am I right? Is this the problem and if so how do I make sure that when apache is restarting, the password is submitted automatically?

Any hints are greatly appreciated. Thanks,
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_mono apache 2.2 ColdDoT Server Operation 5 23rd May 2006 03:58
Apache 2.0.52 - mod_dir.c ZC1 Server Operation 1 21st May 2006 21:31
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 01:45
PHP/MySQL/Apache2/ISPConfig configuration issues? senzapaura General 21 25th December 2005 15:01
Apache 1.3 Support SleeperZ General 3 9th November 2005 12:10

All times are GMT +2. The time now is 14:19.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.