1

Topic: awstats not updating

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====

Hi I can't see any new statistics since last month.
When I run cronjob manually I get:

root@mail awstats]#  perl /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=smtp -update 
Create/Update database for config "/etc/awstats/awstats.smtp.conf" by AWStats version 7.0 (build 1.971)
From data in log file "perl /usr/share/awstats/tools/maillogconvert.pl standard < /var/log/maillog |"...
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: 40381
 Found 0 dropped records,
 Found 0 comments,
 Found 0 blank records,
 Found 0 corrupted records,
 Found 40276 old records,
 Found 105 new qualified records.

Unless when I login I can see 0 in any stats.

----

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

2

Re: awstats not updating

It says:

misieq wrote:

Found 105 new qualified records.

No error in output at all.

3 (edited by misieq 2015-05-20 16:47:58)

Re: awstats not updating

ZhangHuangbin wrote:

It says:

misieq wrote:

Found 105 new qualified records.

No error in output at all.

I know so do you have any idea why webpage has no new data?
A think it may have stopped working after update from 0.8.7 to .9.0 but why?
or maybe it's somehow connected with hostname change?

4

Re: awstats not updating

*) Upgrading from 0.8.7 to 0.9.0/0.9.1 doesn't impact Awstats at all, we didn't change its config files.
*) Does it work if you're sure /var/log/maillog has new logs?

5

Re: awstats not updating

ZhangHuangbin wrote:

*) Upgrading from 0.8.7 to 0.9.0/0.9.1 doesn't impact Awstats at all, we didn't change its config files.
*) Does it work if you're sure /var/log/maillog has new logs?

Yes. I have new logs.
What's more I have new files in /var/lib/awstas.... strange

6

Re: awstats not updating

Show me basic info of your iRedMail server, so that i can try to reproduce this issue and fix it.

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====

I know you probably filled this info many times, but it's not convenience for me to check your old posts to find this info (waste too much time). This info helps me troubleshoot for you.

7

Re: awstats not updating

ZhangHuangbin wrote:

Show me basic info of your iRedMail server, so that i can try to reproduce this issue and fix it.

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: RH 6.6
- Related log if you're reporting an issue:
====

I know you probably filled this info many times, but it's not convenience for me to check your old posts to find this info (waste too much time). This info helps me troubleshoot for you.

Sorry, I was in hurry. I maintain about 7 different configurations of iRedMail for diferent clients so history wouldnt be a good hint sometimes ;-)
I filled your comment

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: RH 6.6
- Related log if you're reporting an issue:
====

8

Re: awstats not updating

OK, i will try to reproduce this issue and come back later.

9

Re: awstats not updating

Cannot reproduce this issue on CentOS 6.6, Awstats works fine for me.