Web Hosting Talk







View Full Version : Logrotate crashing raq daily


Garrett
06-24-2002, 12:05 PM
Actually I'm not sure it it's the culprit, but something is.

Every day my raq will die at 4 am. I checked the cron.daily directory, and logrotate is in there. Is there any way to check and see what runs at 4am to kill the raq every day?

I just manually ran the logrotate, and the server died again. I watched the server usage with TOP - the CPU went up to 80is and hovered there for about 20 minutes. The mem was maxed out also (only have 256 megs).

I think it's the logrotate that is causing the daily crashes. If it is, Id like to disable it, and set it to delete the server logs. I dont need them anymore.

Can you guys help? *fingers crossed*

For the longest time, it worked great. I had the latest webalizer installed. But, then it started getting *really* slow at about 4am every day - CPU usage would shoot up to 30. So i uninstalled the webalizer package using the uninstall instructions from the cobalt site (someone on this forum had already pointed out how in another thread). Uninstall looked like it worked oK, but now the raq crashes every day.

Any suggestions?

Thanks in advance!

Thanks!

mlovick
06-24-2002, 12:40 PM
You could go into /etc/logrotate.d/ and move the configuration files out of there. Slowly put each one back and run logrotate each time if you get unusual results with a particular log, then you have tracked down your problem.

Garrett
06-24-2002, 01:38 PM
Awesome, thanks for the suggestions.

I just tried that. I moved all the files into a backup dir somewhere else. Then, I put them in the /etc/logrotate.d/ and ran logrotate.


One by one...

Each time, logrotate ran in about 2 seconds. Finally, after I moved them all, it still ran in 2 seconds. This is really weird - because before when I would run it, it would crash the server without fail.

Any ideas?

FiberOptic
06-24-2002, 02:17 PM
Does the RaQ crash again @ 4 AM?

If not: Don't worry, be happy....

Garrett
06-24-2002, 02:20 PM
Originally posted by FiberOptic
Does the RaQ crash again @ 4 AM?

If not: Don't worry, be happy....

LOL, I don't know yet - guess I will need to wait. I have a hard time with the whole "if it's not broke, don't fix it" thing...

cdstg
06-26-2002, 04:37 AM
I had this problem on a RAQ3 seemed it was the apache one in
logrotate and the parsereport
I tuned on analog now the webstats in gui don't work but does not chrash touch wood I have other stats any way

to turn off mv /usr/local/sbin/analog to
/usr/local/sbin/analog.old

make a new one pico /usr/local/sbin/analog
#!/usr/bin/perl
exit 0

chmod it 700 /usr/local/sbin/analog

and then when logrotate runs anaolog does not use up all that

cpu