Help - Search - Members - Calendar
Full Version: cron error
The Planet Forums > System Administration > Server Hardware > RaQ Support
B-H
I get the following error message every night. I haven't been worried about it, but I am curious as to how I can fix it...???

Error: Can't open log file /var/log/httpd/access_log

I assume this is generated when Webalizer runs its cron job...
webbcite
I don't find anyting in the webalizer scripts referring to access_log.

Is this turning up in your daily cron run? If so, run the following to see if you can find reference to it:

grep access_log /etc/cron.daily/*
B-H
Thanks for the note!

That brings me back to the $ prompt with no other output...

Inside of the cron.daily directory, there's logrotate, slocate.cron, webalizer.cron, makewhatis.cron, tmpwatch, webalizer.pl

No indication of access_log there...

In the /var/log/httpd directory, there's "access" but no "access_log" file...

???
webbcite
How often are you getting the message? Is this in your daily run each morning?

You might also try running:

grep -r access_log /etc/cron*
B-H
I added the -r with both grep lines you gave me, and it still returns me to the $ prompt with no other output. The message is in my "admin" email every morning around 4am...

It's from "root" and to "root" with the following subject: Cron run-parts /etc/cron.daily

As I recall, its been in my email ever since I applied all of the Cobalt updates (pkg files) back when I first leased the RAQ from RS in October... I always associated it with Webalizer, since I installed that pkg at the same time...
feijao
I do have the same problem and can't figure it out.
Doing a grep I get:

grep access_log /etc/cron.daily/*

/etc/cron.daily/00updatestats: APACHE_LOG=/usr/local/apache/logs/access_log
/etc/cron.daily/00updatestats: APACHE_LOG=/var/log/httpd/access_log
/etc/cron.daily/00webalizer:if [ -s /var/log/httpd/access_log ] ; then


Can I remove the 00webalizer? The real webalizer I use is called 00webalizer2
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.