I don't know if this is related to #2172485
It simply tells "No statistics found for" my site and this month -- no debug messages in the log. The stats are there, though.
$ LANG=C sudo ls -l /var/lib/awstats/awstats062015.txt
-rw-r--r-- 1 www-data www-data 11847 Jun 24 17:50 /var/lib/awstats/awstats062015.txt
| Comment | File | Size | Author |
|---|---|---|---|
| 0Screenshot (31).png | 26.6 KB | btbroot |
Comments
Comment #2
egfrith commentedI've tried adding some better error messages to help diagnose this, though the issue is not fixed yet.
Comment #4
btbroot commentedHello.
Nothing have changed in beta3: the behaviour is the same ("No statistics found..."), and no errors in the watchdog.
Comment #6
egfrith commented@btbroot I've done work on a few other issues, and also replaced
exitwithreturnthroughout. Could you let me know if 7.x-1.0-beta4 still has this problem? If so, do you still get the same screenshot posted at the start of the issue?Comment #7
btbroot commented7.x-1.0-beta4 still has this problem, the screenshot is different (see it attached).
Just in case you ask for it, here are the files
...and here is the server:
Comment #8
egfrith commentedIf your site name is "example.com", the names of the awstats files should be awstats062015.example.com.txt; renaming the files this way should make things work. To get awstats to generate this name automatically, I think your AWStats config file would have to be called awstats.example.com.conf. See
http://www.awstats.org/docs/awstats_setup.html
for details.
If you find that renaming files works for you, I can try to make a more meaningful error message and update the docs.
Comment #9
btbroot commentedOK, this appears to be the root cause, indeed.
So, if I understand you right, the module seeks for and displays only those files in awstats data dir which follows awstatsNNNNNN.[hostname].txt naming convention, where [hostname] matches the currently requested hostname in HTTP.
Yes, I believe it is worth to be mentioned in the docs and/or in the notification messages. In my case, the web server and awstats setup has been made in a simplistic way, no virtual hosts, CNAME RR, really one awstats config for the whole web server, and the need for some mimics should be highlighted somehow.
Thanks!
Comment #10
egfrith commentedThanks for checking. In the latest commit (which should show up here soon) I've made a somewhat more informative error message.