AWstats does not update any more

Discussion in 'ISPConfig 3 Priority Support' started by concept21, May 4, 2017.

  1. concept21

    concept21 Member

    My site's AWstats does not update any more after 22nd April. How do I repair it?
    The report is still showing last month's data even though I select 2017-5 to show.
    -------------------------------------------
    Last Update: 22 Apr 2017 - 00:02
    Reported period: Month Apr 2017
    -------------------------------------------
    My system is ISPConfig 3.1.2, Ubuntu 16.04 amd64. :(
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you have current log entries in /var/www/domain.tld/log/access.log for that site?
     
  3. concept21

    concept21 Member

    Yes, there is a access.log linked to 20170505-access.log. Looks good or not? :(
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    does it contain latest log lines?
     
  5. concept21

    concept21 Member

    Yes, everyday some visits even though it is new. :(
     

    Attached Files:

  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the root crontab to ensure that no ispconfig cronjobs are commented out (disabled).
     
  7. concept21

    concept21 Member

    They are enabled.
    I guess my ISPConfig 3.1.2 is broken for no obvious reason. :(
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Check that the awstats settings under System > server config are correct (check that the paths / files mentioned there exist on your server).
     
  9. concept21

    concept21 Member

    Yes, all files in the right places and correctly filled in the ISPConfig control panel.
    AWstats is not working yet! :(
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you remember if you did anything special on the day it stopped working? Is it not working for one site or for all sites?
     
  11. concept21

    concept21 Member

    I limit access to my site's stats/ to my own IP only.
    I also turn on ModSecurity 2.9 and Core Rule Set 3. Even I turn them off, there is still no awstats update.

    Is it possible that awstats wont update the stats pages if there is no new visit during a certain period? :oops:
     
  12. concept21

    concept21 Member

    Sometimes, mysql server shows this error. Are they relevant this issue?
    --------------
    [Note] Aborted connection 1293 to db: 'dbispconfig' user: 'ispconfig' host: 'localhost' (Got timeout reading communication packets)
     
  13. concept21

    concept21 Member

    I also find that all 2 web sites suffer from this issue. I host only 2 web sites on this ispconfig installation. :(
     
  14. concept21

    concept21 Member

    OH!!! I discover a clue! I installed the 2nd new site at the afternoon of 22 Apr 2017 and AWstats stops working since then!!! :eek:
    How to repair it???
     
  15. concept21

    concept21 Member

    Cause is found at last!!! Error message from ispc cron log:
    ------------
    PHP Warning: rename(/var/www/clients/client1/web1/web/stats/awstats.mysite.com.html,/var/www/clients/client1/web1/web/stats/awsindex.html):
    No such file or directory in /usr/local/ispconfig/server/lib/classes/cron.d/150-awstats.inc.php on line 162
    ----------
    How to repair it? :D
     
  16. concept21

    concept21 Member

    Solved! Awstats reports are set in xml format, not the required html format! :p
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, so you probably changed some awstats config values before the issue started?
     
  18. concept21

    concept21 Member

    I activate some plugins in the file /etc/awstats/awstats.conf.local
    The xml report format setting causes this issue! :p
     
  19. concept21

    concept21 Member

    HAHAH!!! WORKS AGAIN!!!
    Reported period
    Month May 2017
    First visit 01 May 2017 - 10:12
    Last visit 11 May 2017 - 11:13
     
  20. concept21

    concept21 Member

    By the way, if I want to back up several years` stats data for analysis, which directories should I back up? :)
     

Share This Page