SID-00518: Cronjob for statistic update fails
| Status: |
Answered |
TWiki version: |
4.3.2 |
Perl version: |
5.8.8 |
| Category: |
CategoryStatistics |
Server OS: |
Mac OSX 10.5 |
Last update: |
16 years ago |
I am using the following cronjob for automatically updating the statistics:
*/1 * * * * (cd /Library/WebServer/Documents/twiki/tools; ./geturl.pl 127.0.0.1 /twiki/bin/statistics.pl >/dev/null 2>&1)
I use a 1 minute refresh, just to check if it works. I've also tried to run it on command line without piping the output. When i run it i get this:
Statistics for Sep 2009<br />
* Reporting on Main web<br />
- view: 107, save: 14, upload: 0<br />
- top view: 33
WebHome<br />
- top contributor: 7
OnkieBonkie<br />
- Topic
WebStatistics updated<br />
* Reporting on Sandbox web<br />
- view: 3, save: 0, upload: 0<br />
- top view: 2
WebHome<br />
- Topic
WebStatistics updated<br />
* Reporting on TWiki web<br />
- view: 105, save: 0, upload: 0<br />
- top view: 52
WebStatistics<br />
- ERROR: no permission to CHANGE statistics topic in TWiki<br />
* Reporting on Trash web<br />
- view: 0, save: 0, upload: 0<br />
- Topic
WebStatistics updated<br />
The problem is that the statistics page isn't being updated and the following error is the cause of that
ERROR: no permission to CHANGE statistics topic in TWiki
Please help, because i have no idea what the problem is, everything alse works fine.
--
IvarLugtenburg - 2009-09-06
Discussion and Answer
The error is still there, but it does update the statistics page. It will have to do
--
IvarLugtenburg - 2009-09-06
You can run the statistics script directly from the command line, no need to call as cgi script. Here is a sample crontab entry:
59 23 * * * (cd /var/www/twiki/bin; nice ./statistics >/var/www/twiki/data/.statistics.out 2>&1)
--
PeterThoeny - 2009-09-07
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.