The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Awstats not updating after upgrade to 11.2.15 C

Discussion in 'General Discussion' started by prodigious, May 24, 2007.

  1. prodigious

    prodigious Member

    Joined:
    Feb 7, 2005
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hello everyone,

    After my upgrade to the 11's in WHM and CPanel, it seems that my AWStats isn't working any longer, and even worse, my logs are still being deleted every 24 hours so each day that goes by without an update means more lost statistics.

    Now, I can go to each domain's AWStats page and manually update, which it will do, but it will only update the last 24 hours, leaving the last several days (this started on May 17th) empty.

    I tried running /scripts/runweblogs now and while it didn't give me any errors, it also didn't update AWStats for the domain I tested it on.

    Anyone have any ideas? I know I can keep my log files rather than rotate them every 24 hours but I don't wish to do that and bloat my server with huge files just yet. I'm more concerned about getting AWStats back to normal.
     
  2. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    I am having the same problem with one of my servers.
     
  3. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Please open a ticket as this is certainly very abnormal.
     
  4. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    Submitted. Ticket number 205632.
     
  5. astopy

    astopy Well-Known Member

    Joined:
    Apr 3, 2003
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I'm seeing this as well. Did you find a solution?
     
  6. borki

    borki Member

    Joined:
    Jan 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Interesting, when running the stats script from the shell, it reports some broken linkage?!?

    /usr/local/apache/domlogs/testdomain.ch linkage to /usr/local/apache/domlogs/testdom/testdomain.ch was broken, resetting....Done

    Anyone knows about this one?

    On an older cPanel server I have a directory under /usr/local/apache/domlogs for every customer. It seems to contain the normal weblog file again (no symlinks). But on the newer cPanel server, there is no such directory.. it created one, when running /scripts/runweblogs manually..

    Does this help?

    Regards,
    Reto

    UPDATE: After upgrading to the latest version, it seems to fix up automatically. There is also another thread on this forum regarding this issue..
     
    #6 borki, Aug 20, 2007
    Last edited: Aug 20, 2007
  7. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    Marty and/or cPanel staff, has there been any progress made on ticket 205632?

    We are having this same issue with one our servers. What's odd is that it is only effecting one or two users. Other users are getting updates. The "Update Now" button works fine, but /scripts/runweblogs doesn't generate the appropriate .txt file for AWStats. Marty/prodigious, is this the same behaviour you guys are encountering or are AWStats broken server wide for you?

    I've tried updating to both CURRENT and back down to STABLE as borki stated he was able to resolve this with an update, however neither have corrected the issue. Will probably end up submitting our own ticket soon unless anyone has details on a fix.
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You may want to submit a ticket of your own for this particular issue.
     
  9. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    Solution (to my problem at least)

    I was finally able to find a solution to my problem. To investigate, I output a lot of debug information from cpanellogd and eventually found that awstats was unable to create the directories it (thought it) needed.

    "Error: awstats failed to create directory DirData"

    If you're curious, I found this info by editting cpanellogd and adding:

    print $_;
    print "\n";

    below "if ( $readbytes <= 8192 ) {" in the logrunnerGo() function.

    The fix essentially boiled down to there being an awstats.conf file present within

    /usr/local/cpanel/3rdparty/bin

    When awstats was running, it would see the config file here first and use it instead of the config file generated within the tmp/awstats/ directory. It would then try to create a directory for the user in a location it didn't have permission to. After removing awstats.conf from that directory, it correctly updated stats.

    I can't say what would have caused the issue as I'm not sure what would have generated an awstats.conf file in this directory, but I hope this helps someone.
     
Loading...

Share This Page