Google outsourcing?
Carsten Svaneborg
zqex at mpipks-dresden.mpg.de
Fri Nov 18 15:08:36 CET 2005
On Friday 18 November 2005 14:32, Niklas Bolander wrote:
> It is executed from the cron daemon so it should run as root as far as I
> can tell. It's hard to say what goes wrong without testing or access to the
> logs though.
logs doesn't contain a thing, and root hadn't received any mail from the
cron deamon with error messages, which is strange.
I tried to run it manually as root:
gauss:/etc/cron.weekly# ./update_stats.sh
Running '"/home/apache/awstats/wwwroot/cgi-bin/awstats.pl" -update
-config=gauss.ffii.org -configdir="/home/apache/awstats/wwwroot/cgi-bin"' to
update config gauss.ffii.org
Update for config "/home/apache/awstats/wwwroot/cgi-bin/
awstats.gauss.ffii.org.conf"
With data in log file "/home/apache/awstats/tools/logresolvemerge.pl /home/
wiki/GaussWiki/log/mointwisted.log* |"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Error: Command for pipe '/home/apache/awstats/tools/logresolvemerge.pl /home/
wiki/GaussWiki/log/mointwisted.log* |' failed
Setup ('/home/apache/awstats/wwwroot/cgi-bin/awstats.gauss.ffii.org.conf'
file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs'
directory).
Running the offending command manually:
gauss:~# /home/apache/awstats/tools/logresolvemerge.pl /home/wiki/GaussWiki/
log/mointwisted.log*
Error: Couldn't open log file "/home/wiki/GaussWiki/log/mointwisted.log.221" :
Too many open files.
Ok. There is 1679 log files in the subdirectory, which may explain why
it chokes. It reads the first 900 log files and that's it.
Suggestions?
Does awstats nees access to all the log files, or can it handle them
incrementally, since then moving/deleting the already processed logs should
do the trick. Is there a simple way to do this?
--
Mvh. Carsten
More information about the Gauss-parl
mailing list