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 stopped working from 11.28.48

Discussion in 'General Discussion' started by johnburk, Nov 29, 2010.

  1. johnburk

    johnburk Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    241
    Likes Received:
    0
    Trophy Points:
    16
    Since the update of cpanel to 11.28.48 awstats stopped working correctly. It does update but all new stats are 0. It seems like it does not get the data to update.

    I have seen this on several accounts.

    I noticed that /usr/local/apache/domlogs files are not updating. Anyone else have the same problem? I am not sure if this is a cPanel, Apache or Awstats problem.
     
    #1 johnburk, Nov 29, 2010
    Last edited: Nov 29, 2010
  2. asinkecualo

    asinkecualo Registered

    Joined:
    Dec 16, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I've experienced the same problem I've had no apache access logs for most of the hosted domain from 29th Nov:

    -rw-r----- 2 root XXXX 0 Nov 29 02:10 /usr/local/apache/domlogs/XXXX.tld

    this is very disapointing as I cannot find the root cause in apache for this... any idea?

    thanks
     
  3. johnburk

    johnburk Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    241
    Likes Received:
    0
    Trophy Points:
    16
    It started working again, but I was not able to find any reason why it stopped.
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I have so far seen one other instance of this happening. The cause was the same: domlogs not being updated, with 0-byte size since the last time stats were updated. In the case that I saw, restarting Apache fixed it, but it should not have happened. If you see this happen again, please submit a ticket - preferably without restarting Apache first, if you can avoid it - so that we can log in and investigate and see if we can find a pattern to this.
     
  5. johnburk

    johnburk Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    241
    Likes Received:
    0
    Trophy Points:
    16
    I still have this problem on multiple servers everytime I build with EasyApache. The only way to fix it is to manually restart apache after EasyApache has done a restart.

    cPanel has looked at this several times and they have no clue why it is and how to fix it.

    So if you are experiancing this problem, try a manual restart.

    BTW it started with 11.28.48 and I still have the same problem up to WHM 11.32.2
     
  6. gkgcpanel

    gkgcpanel Well-Known Member

    Joined:
    Jun 6, 2007
    Messages:
    217
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Stats stopped on May 16th, and the domlog file is zero bytes and dated May 16th. I have restarted Apache a few times since May 16th, so this is not working for me.

    Any other ideas why the domlogs are not updating like they are supposed to???
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Is this happening for one domain or all domains on the machine? It would have been better to open up a new thread, since this thread deals with 11.28.

    If all domains aren't working, you might want to check /usr/local/apache/conf/httpd.conf has these lines in it:

    Code:
    <IfModule log_config_module>
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
        LogFormat "%h %l %u %t \"%r\" %>s %b" common
    
        CustomLog "logs/access_log" common
    
        <IfModule logio_module>
            LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    
        </IfModule>
    
    </IfModule>
    If those lines are missing, re-add them below this portion:

    Code:
    <FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
    
        Satisfy All
    </FilesMatch>
    Then run the distiller, rebuild Apache and restart it:

    Code:
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak120625
    /usr/local/cpanel/bin/apache_conf_distiller --update
    /usr/local/cpanel/scripts/rebuildhttpdconf
    /etc/init.d/httpd restart
     
  8. gkgcpanel

    gkgcpanel Well-Known Member

    Joined:
    Jun 6, 2007
    Messages:
    217
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    It's not happening to all of them, just a few. and yes, those lines do exist in my httpd.conf.

    I ran the distiller and rebuilt the httpd.conf file (as shown above)
    and then restarted httpd.

    and that seems to have done it. So I have done everything except the distiller. That seems to be the missing piece here.

    Thanks
     
Loading...

Share This Page