LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2007, 08:29 AM   #1
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 538

Rep: Reputation: 30
Angry httpd -USR1 causes server to hang every night


Help me, I have a newer server (hardware) with an older OS on it (mandrake MNF, kernel 2.4.18-8) It has been giving me problems since day 1.

The latest problem I have is that it has been crashing (hanging) like clockwork every night just after 04:00 AM. This has been going on for 3 weeks now.

The last command before it hangs in the /var/log/messages file is httpd -USR1 succeeded. I've included an excerpt of the messages log below just incase that's not what's causing the crashes.

Anyway, I need to know what that command is (I think it is Apache, which I need), and how I can either stop it from crashing my server or just stop that command from running entirely. Thanks for any input.

Jan 6:
Code:
Jan  6 04:00:00 MDKSERV CROND[17876]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  6 04:00:00 MDKSERV CROND[17879]: (root) CMD (   /usr/sbin/ntpdate -u tock.utoronto.ca )
Jan  6 04:00:00 MDKSERV CROND[17880]: (root) CMD (   /usr/sbin/monitoring.pl)
Jan  6 04:01:01 MDKSERV CROND[17896]: (root) CMD (nice -n 19 run-parts /etc/cron.hourly)
Jan  6 04:01:01 MDKSERV CROND[17898]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  6 04:02:00 MDKSERV CROND[17924]: (root) CMD (nice -n 19 run-parts /etc/cron.daily)
Jan  6 04:02:00 MDKSERV CROND[17926]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  6 04:02:00 MDKSERV anacron[17935]: Updated timestamp for job `cron.daily' to 2007-01-06
Jan  6 04:03:00 MDKSERV CROND[17988]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  6 04:03:13 MDKSERV AESctl: httpd -USR1 succeeded
Jan 7:
Code:
Jan  7 04:00:00 MDKSERV CROND[16307]: (root) CMD (   /usr/sbin/monitoring.pl)
Jan  7 04:01:00 MDKSERV CROND[16323]: (root) CMD (nice -n 19 run-parts /etc/cron.hourly)
Jan  7 04:01:00 MDKSERV CROND[16325]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  7 04:02:00 MDKSERV CROND[16351]: (root) CMD (nice -n 19 run-parts /etc/cron.daily)
Jan  7 04:02:00 MDKSERV CROND[16353]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  7 04:02:00 MDKSERV anacron[16362]: Updated timestamp for job `cron.daily' to 2007-01-07
Jan  7 04:03:00 MDKSERV CROND[16417]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  7 04:03:18 MDKSERV AESctl: httpd -USR1 succeeded
Jan 9:
Code:
Jan  9 04:00:00 MDKSERV CROND[17891]: (root) CMD (   /usr/sbin/adsl-reconnect.sh)
Jan  9 04:00:00 MDKSERV CROND[17893]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  9 04:00:00 MDKSERV CROND[17896]: (root) CMD (   /usr/sbin/ntpdate -u tock.utoronto.ca )
Jan  9 04:00:00 MDKSERV CROND[17897]: (root) CMD (   /usr/sbin/monitoring.pl)
Jan  9 04:01:00 MDKSERV CROND[17913]: (root) CMD (nice -n 19 run-parts /etc/cron.hourly)
Jan  9 04:01:00 MDKSERV CROND[17915]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  9 04:02:01 MDKSERV CROND[17943]: (root) CMD (nice -n 19 run-parts /etc/cron.daily)
Jan  9 04:02:01 MDKSERV CROND[17945]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  9 04:02:01 MDKSERV anacron[17954]: Updated timestamp for job `cron.daily' to 2007-01-09
Jan  9 04:03:00 MDKSERV CROND[18009]: (root) CMD (   /usr/share/msec/promisc_check.sh)
Jan  9 04:03:18 MDKSERV AESctl: httpd -USR1 succeeded
 
Old 01-10-2007, 06:43 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,358
Blog Entries: 55

Rep: Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545
I need to know what that command is (I think it is Apache, which I need), and how I can either stop it from crashing my server or just stop that command from running entirely.
Good you posted your cron log.
Cron logs as 'MM DD HH:MM:SS Uname Processname[PID]: Message' so the command is 'aesctl'.
The package containing the command is 'rpm -q --whatprovides /usr/sbin/aesctl'.
The command is probably referenced in 'grep aesctl -r /etc/logrotate.d'.
Your (or root) email could show there's an error.
If none you could try if stopping, sleep 5s, then starting instead of using aesctl works.
 
Old 01-11-2007, 03:58 PM   #3
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 538

Original Poster
Rep: Reputation: 30
Hi Unspawn, thanks for replying. Especially thanks for telling me the commands to type in. There was only one problem in that it isn't actually "aesctl" but "AESctl" but I was able to figure that out

Anyhow, it appears that we are restarting AESctl, or apache, for some reason at 4 AM.

Code:
[root@MDKSERV sbin]# rpm -q --whatprovides /usr/sbin/AESctl
apache-conf-1.3.23-4mdk
[root@MDKSERV sbin]# grep AESctl -r /etc/logrotate.d
/etc/logrotate.d/apache:        AESctl reload
/etc/logrotate.d/apache:        AESctl reload
According to the above, there must be a file in "logrotate.d" containing this entry about AESctl. So I did some digging and found the apache file contains:

Code:
/var/log/httpd/*log {
    monthly
    missingok
    nocompress
    prerotate
        AESctl reload
    endscript
    postrotate
        AESctl reload
    endscript
}
Now I may not be a logrotate guru, but it says "monthly" and I can certainly tell you that my server is crashing with this message EVERY DAY. So... my questions are.... 1. WHY do I need this AESctl thing to restart apache all the time, and 2. How do I stop it from crashing? (I don't quite get the sleep 5 thing)

Thank you very much for your help.

Oh I forgot to mention that we don't use this server for emails so I didn't get any emails with an error message in it.

Last edited by Avatar; 01-11-2007 at 04:00 PM.
 
Old 01-16-2007, 11:10 AM   #4
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 538

Original Poster
Rep: Reputation: 30
Please help this is driving us nuts. How do i delete that entry that says to restart the HTTP server?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server hang sunhui Linux - Software 1 03-21-2006 08:05 PM
Funny: MS server failed last night musicman_ace General 0 05-29-2005 05:08 AM
the time of the server hang ust Linux - Distributions 6 04-08-2005 10:01 PM
A little goblin disables my linux server during the night...freezes... help! crazyswede Linux - General 6 07-28-2004 04:12 AM
server UNC hang athenerx Linux - Newbie 0 06-13-2001 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration