View Single Post
  #1  
Old 21st August 2006, 15: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:
Code:
[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:
Quote:
man-db
ntp-server
sysklogd
But wasn't lucky here, too.

After checking the /etc/logrotate.d/apache2 I found this:
Code:
/var/log/apache2/*.log {
	weekly
	missingok
	rotate 52
	compress
	delaycompress
	notifempty
	create 640 root adm
	sharedscripts
	postrotate
		if [ -f /var/run/apache2.pid ]; then
			/etc/init.d/apache2 restart > /dev/null
		fi
	endscript
}
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:
Code:
[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,
Mik
Reply With Quote
Sponsored Links