1

Topic: Awstats is not updating statistics.

I'm running iRedMail on an Ubuntu server and everything works perfectly except awstats is not being updated.  The cron jobs exist and I keep getting this at the top of the awstats page:

Never updated (See 'Build/Update' on awstats_setup.html page)

Is there some configuration file or something that I need to run to kick off the update?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Awstats is not updating statistics.

Check cron logs first...

3

Re: Awstats is not updating statistics.

Where would I find the cron logs?  I looked under /var/log/ but didn't find a log for cron.

4

Re: Awstats is not updating statistics.

Is cron daemon running on your system? Does the command in crontab work as expected while running it manually?

5

Re: Awstats is not updating statistics.

Yes I verified the cron service is running, and I ran the perl scripts that were in cron manually:

perl /usr/lib/cgi-bin/awstats.pl -config=mail3.beltrailway.com > /dev/null
perl /usr/lib/cgi-bin/awstats.pl -config=mail > /dev/null

This still did not update the site.

Thanks for your help.

6

Re: Awstats is not updating statistics.

What's the output message while you ran it manually?

7

Re: Awstats is not updating statistics.

Nothing, it just goes back to the command line.

8 (edited by maxie_ro 2010-03-18 22:37:55)

Re: Awstats is not updating statistics.

I don't know if this will help you, but my cron entry is quite different... Maybe Linux flavor difference?

exec /usr/share/awstats/tools/awstats_updateall.pl now -configdir="/etc/awstats" -awstatsprog="/usr/share/awstats/wwwroot/cgi-bin/awstats.pl"

LE:
And, do you have proper conf files in /etc/awstats or whatever?

LE2:
And when I run it, I get:

Running '"/usr/share/awstats/wwwroot/cgi-bin/awstats.pl" -update -config=default -configdir="/etc/awstats"' to update config default
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 6.95 (build 1.943)
From data in log file "/var/log/httpd/access_log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 16838)
Jumped lines in file: 16838
 Found 16838 already parsed records.
Parsed lines in file: 9
 Found 0 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 9 new qualified records.

Running '"/usr/share/awstats/wwwroot/cgi-bin/awstats.pl" -update -config=localho st.localdomain -configdir="/etc/awstats"' to update config localhost.localdomain
Create/Update database for config "/etc/awstats/awstats.localhost.localdomain.co nf" by AWStats version 6.95 (build 1.943)
From data in log file "/var/log/httpd/access_log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 16838)
Jumped lines in file: 16838
 Found 16838 already parsed records.
Parsed lines in file: 9
 Found 0 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 9 new qualified records.

Running '"/usr/share/awstats/wwwroot/cgi-bin/awstats.pl" -update -config=mail -c onfigdir="/etc/awstats"' to update config mail
Create/Update database for config "/etc/awstats/awstats.mail.conf" by AWStats ve rsion 6.95 (build 1.943)
From data in log file "perl /usr/bin/maillogconvert.pl standard < /var/log/maill og |"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 16971
 Found 3 dropped records,
 Found 0 corrupted records,
 Found 16953 old records,
 Found 15 new qualified records.

Running '"/usr/share/awstats/wwwroot/cgi-bin/awstats.pl" -update -config=mx2.mydomain.tld -configdir="/etc/awstats"' to update config mx2.mydomain.tld
Create/Update database for config "/etc/awstats/awstats.mx2.mydomain.tld.conf" by AW Stats version 6.95 (build 1.943)
From data in log file "/var/log/httpd/access_log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 16839)
Jumped lines in file: 16839
 Found 16839 already parsed records.
Parsed lines in file: 9
 Found 0 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 9 new qualified records.

9

Re: Awstats is not updating statistics.

I am also experiencing this same problem with 'Advanced Web Statistics 6.9 (build 1.925)'

Looking at the cron file '/etc/cron.hourly/00awstats'
it refers to /var/log/httpd/access_log, which only seems to be logging events involving my ubuntu machine, and not any others on the network.  (a mix between XP and ubuntu).

Also, being March 18th today... newest log with data in it ../access_log.1 is dated for Feb 23. 

The latest .../access_log is empty. 

My users are only using HTTPS, don't know if it makes a difference.  But we've had internal and external access of webmail and no report of it.

Hope this helps.

10

Re: Awstats is not updating statistics.

Yes, I forgot to mention that too, I am only access through SSL.  Could Awstat be looking at the wrong log files?