View Full Version : Problem with awstats automatic update
Marko Peric
10-29-03, 12:25 PM
I installed awstats a week ago, and try as I might, it refuses to auto update. I have no trouble doing manual updates, but it just won't update on it's own. Yes, I've checked my chmod permissions, and yes, I have edited my crontab file and put in three carriage returns. Anyone got any further suggestions for me?
Marko from Dontmindme.com (http://dontmindme.com)
YvetteKuhns
10-29-03, 01:05 PM
Do you have an .htaccess file installed? Properly? ;)
By the way, congratulations on your recent marriage. :)
You will have to setup a corntab for auto update.
refer http://help.powweb.com for more.
Originally posted by Marko Peric
I installed awstats a week ago, and try as I might, it refuses to auto update. I have no trouble doing manual updates, but it just won't update on it's own. Yes, I've checked my chmod permissions, and yes, I have edited my crontab file and put in three carriage returns. Anyone got any further suggestions for me?
Marko
Might help if you post your crontab file, maybe someone can see a potential problem.
If you are sure that your crontab is correct, you might try changing your conf file name to just awstats.conf instead of having your domain name in it.
Marko Peric
10-30-03, 10:07 AM
Okay, serveral replies all at once here, first, I do have a .htaccess file installed, in my /htdocs directory, and it hasn't given me any trouble before. Do I need one in the cgi-bin directory as well? Oh, and thanks for the congrats.
Second, yes, I have a crontab file, I did follow the tutorial and I've read a number of threads on this board about similar problems. The crontab file is in the /etc directory, and it reads as follows:
0 0 * * * /www/d/dontmindme/cgi-bin/awstats.pl -config=dontmindme.com -update >>/www/d/dondtmindme/logs/cronaw.log 2>>/www/d/dontmindme/logs/cronaw.err
It hasn't generated any error reports for me yet. Shrug. And here's something odd. Looking at my stats this morning, it may have run earlier on its own, although not at the time it was set for, which just has me more puzzled. Any suggestions?
You have it set for 0 0 which would be midnight California time. (just in case you didn't know)
Crontab file looks ok to me, and if the manual update works then your conf file is being seen and working as it's supposed to.
You might try setting the time to run at a later time, something like 2:30am (30 2 * *) and see what happens tomorrow morning.
Marko Peric
10-30-03, 11:11 AM
Okay, I've tweaked crontab to run later in the morning, let's see what happens.
Marko Peric
10-31-03, 04:53 PM
Well, I just checked, and no, awstats did not run this morning. I'm half tempted to fully uninstall them and reinstall from scratch.
YvetteKuhns
10-31-03, 05:05 PM
Since you tweaked the crontab file, you may have to turn your stats off and back on. You shouldn't have to do it, but you know how these things are. Or a clean reinstall with the corrected crontab could help. Good luck.
Check this line in your conf file:
AllowToUpdateStatsFromBrowser=0
If it is set to "1" then you will only be able to update manually, it must be set to "0" to update automatically.
Look at the top of your stats page and see if it says "update manually" if so then you wont get an automatic update.
I had this same problem and that solved it.
Cheers
Aussie.
I have had the same problem. Althought I think that its powwebs fault that my access logs dont work 30% of the week.
I am starting to get really pi**ed off.
Marko Peric
11-1-03, 12:01 PM
Okay, I've done the AllowToUpdateStatsFromBrowser=0
change, and when I load stats new, the manual update option isn't there, so lets see if that helps.
Further bulletins as events warrant.
Marko Peric
11-10-03, 11:45 AM
I finally have automatic update working. The problem may have been that my ftp program wasn't set to automatically switch between uploading in ascii and binary, and so my crontab was being uploaded as a binary. It's something really basic that I completely missed. It's been running fine for a few days now.
This is why there's the general recommendation to upload the file as crontab.txt and then rename it.
Originally posted by Aussie
Check this line in your conf file:
AllowToUpdateStatsFromBrowser=0
If it is set to "1" then you will only be able to update manually, it must be set to "0" to update automatically.
Look at the top of your stats page and see if it says "update manually" if so then you wont get an automatic update.
I had this same problem and that solved it.
Cheers
Aussie.
That's not true. I have mine set to "1" and manually update quite often, and when cron jobs run I get an auto update as well. They should have no problem running together.
I agree - I have the manual update enabled and get my automatic updates just fine. The reason for the setting is that you may not want people viewing the stats to rerun the analysis.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.