Web Hosting Talk







View Full Version : My RaQ4i doesn't log rotates - Help!


Franki
03-12-2002, 02:21 PM
Yesterday I restored my RaQ4i and everything is from the start. The cron.daily run but the logs didn't rotate. I'm trying to run manually the command: /usr/sbin/logrotate /etc/logrotate.conf but the cursor returns immediatelly (like running somethign fast). But the logs haven't been rotated, the system doesn't even make the /home/siteXX/logs/web.log files! Why is that? Could any please help me?

surfsailor
03-14-2002, 08:06 PM
Franki -

check your patch level - make sure they are all up2date - had the same problemo!

Also - check to make sure that the main access log is not too big

/var/log/httpd/access - during the code red/nimbda thang - my logs grew so fast that when logrotate tried to run the server would run out of memory (granted there were alot of sites and the access file was large - still didnt think it would top out at more than 512megs of mem - but it did)

Check your error logs as well - the logrotate script is a pig - it has to parse out that main log file into all of your virtual sites!

Good luck -

Surf!

jaschwa
12-19-2002, 07:53 PM
I was having the same problem. My access log was nearly 40MB and re-running logroate also exited right away. Looking at the man pages for logrotate I found out that logrotate only runs once a day. To force it to process the log, add -f to the command.