Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 28 of 28
  1. #16
    Member
    Join Date
    Dec 2002
    Posts
    240

    Default

    Quote Originally Posted by mohit View Post
    only option i can think is left for me is to migrate to a new box now.

    I've a reseller who seems to be over-loading my server with 10G traffic a day and i am not able to show him bandwidth usage details.

    another one is having their monthly usage clubbed together and is real mad at me now.
    I've increased the value of "The load average above the number of cpus at which logs file processing should be suspended" under "Tweak Settings" in WHM on your server. Let me know if you continue to experience this problem the next time stats are scheduled to run.
    You can try that it was the suggested solution we were given. Did not work obviously since it's not a load related problem at all.


    The other option is every day manually run /scripts/runweblogs username

    This will run bandwidth for the user when it runs the web stats. Awful to have to manually run stats for 1% of users per server though. It would be nice if they'd just fix the bug they introduced when fixing another bandwidth related bug.

  2. #17
    Member
    Join Date
    Jul 2005
    Location
    Sticky On Internet
    Posts
    555

    Default

    Check this post, which says

    "An additional requirement for our enhanced log file processing is a larger disk space requirement inside of the /var partition. Upon upgrading to 11.25.0 if cPanel detects that your /var partition is too small it will disable bandwidth stats processing until the space requirement is remedied. If there is inadequate space in /var, notification is set to the level 1 notification targets as specified in WHM's Contact Manager.

    To re-enable:

    1. Symlink /var/cpanel/bandwidth to a partition with sufficient space

    2. Remove the file /etc/rrdtooldisable

    3. Re-run upcp
    "
    ref: this post

  3. #18
    Member
    Join Date
    Dec 2002
    Posts
    240

    Default

    Quote Originally Posted by mohit View Post
    Check this post, which says


    ref: this post

    Except that would disable all bandwidth not select sites.

    Anyways a better suggestion:

    /scripts/autorepair repair_bwsummary

    /usr/local/cpanel/bin/repair_bwsummary

    Then might also try

    /usr/local/cpanel/bin/repair_bwsummary username

    replacing username with the specific one that is broken.


    Going to see if this fixes it won't know for 24 hours.

  4. #19
    Member
    Join Date
    Dec 2002
    Posts
    240

    Default

    This has been confirmed to be a bug. I wasn't give an ETA on a fix but I doubt migrating to another server or anything of that nature will resolve this. Just need to wait for cPanel to fix this which is hopefully soon.

  5. #20
    Member
    Join Date
    Aug 2005
    Posts
    8

    Default

    Does anyone have any news?

  6. #21
    Member
    Join Date
    Dec 2002
    Posts
    240

    Default

    Quote Originally Posted by EliteHosting View Post
    Does anyone have any news?
    Nope.

    I'd go open a ticket maybe if enough people do it might become a priority to fix this.

  7. #22
    Registered User
    Join Date
    Nov 2002
    Location
    BA, Argentina
    Posts
    27

    Default

    I think this problem could be due to a change in the way the ftpserver is registering the information in the logs under /usr/local/apache/domlogs/ftp.XXX-ftp_log; this hint can be observed at /usr/local/cpanel/logs/stats_log

    Below I´m pasting a scratch of my stats_log

    Code:
    warn [Internal Warning while parsing [stdin] 29967]
    Argument "r" isn't numeric in subtraction (-) at /usr/local/cpanel/Cpanel/Bandwi
    dth/BytesLogs.pm line 152, <GEN3281> line 1.
     at /usr/local/cpanel/Cpanel/Bandwidth/BytesLogs.pm line 152
            Cpanel::Bandwidth::BytesLogs::parse_ftplog('ftp', '/usr/local/apache/dom
    logs/ftp.XXX-ftp_log', 9663676416, 'Cpanel::BandwidthDB=HASH(0x19addfe8)
    ', 'HASH(0x195f1d58)') called at /usr/local/cpanel/Cpanel/Logd.pm line 1786
            Cpanel::Logd::parseftpbyteslog('XXX', '/usr/local/apache/domlogs/ftp
    .XXX-ftp_log', 9663676416, 'HASH(0x19fb09b8)', 'Cpanel::BandwidthDB=HASH
    (0x19addfe8)', 'HASH(0x19c25e18)') called at /usr/local/cpanel/Cpanel/Logd.pm li
    ne 714
    I have two possible solutions, 1 clear the log file for ftp logs "echo > ftp.XXX-" in where the error be observed.

    2. Disable the bandwidth data collector from 'WHM > Statistics Software Configuration', and run through cron a bash script to run / scripts / runweblog for every user on the system.

    The problem here occurs when the bandwith collector process find an error within any ftp log file, when that happens apparently the whole process is terminated.

  8. #23
    Member
    Join Date
    Dec 2002
    Posts
    240

    Default

    It's apparently fixed in CURRENT although have not tried it as of yet.

  9. #24
    Registered User
    Join Date
    Jul 2008
    Posts
    1

    Default

    I also confirm that have the same problem with bandwith not calculating on one of my servers with version cPanel 11.25.0-R43473 on other servers with older version everything is ok. Can someone confirm that CURRENT version will fix this problem ?

    I also have the same logs as kokoman, so i will check if clearing ftp logs will help ...

    UPDATE:

    Ok, current RELEASE works for me.
    Last edited by promike; 04-10-2010 at 11:11 AM.

  10. #25
    Member
    Join Date
    Apr 2005
    Posts
    123

    Default

    It seems bandwidth updates are broken again;

    cPanel 11.25.0-R46156 - WHM 11.25.0 - X 3.9

    cPanel has informed me it's a known bug and they are working on fixing it.

    Sigh.

  11. #26
    Member
    Join Date
    Jul 2005
    Location
    Sticky On Internet
    Posts
    555

    Default

    Earlier Box had this problem and I migrated it to a new hardware resolved the issue.

    Recently Migrated another server and now I am again left with bandwidth not updating.
    however i do see a patch posted at
    http://forums.cpanel.net/f5/rrdtool-...tml#post689630

    but haven't tried it,

    If anyone tries the above patch, please do share your experience.

    Thanks.

  12. #27
    Member stugster's Avatar
    Join Date
    Apr 2002
    Location
    Edinburgh, UK
    Posts
    78
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    We're experiencing this problem too... and have been since about March.

    We're running WHM 11.26.8, cPanel 11.26.9. Moving onto a brand new box did not resolve the issue.

    Going to raise a ticket with them... as they haven't responded here. And we'll see where that gets us.

    Funnily enough, monitoring bandwidth is a pretty major thing for us webhosts. I'm amazed there isn't an obvious fix.

  13. #28
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default Re: Bandwidth not calculating

    I am facing same problem too, one of my cpanel account is showing bandwith usage but i can't calculate

    all, HTTP (web), and POP (mail) bandwidth usage

    i tried below below scripts to fix this issue but it doesn't worked
    /scripts/runweblogs username
    /scripts/autorepair repair_bwsummary
    /usr/local/cpanel/bin/repair_bwsummary
    /usr/local/cpanel/bin/repair_bwsummary username

    And i got following error when ran these /usr/local/cpanel/bin/repair_bwsummary username
    -bash-3.2# /usr/local/cpanel/bin/repair_bwsummary
    syntax error at /usr/local/cpanel/bin/repair_bwsummary line 77, near ") {"
    Execution of /usr/local/cpanel/bin/repair_bwsummary aborted due to compilation errors.
    Last edited by crazyaboutlinux; 12-25-2010 at 04:58 AM.

Similar Threads & Tags
Similar threads

  1. how cPanel is calculating quotas with mysql
    By httpwwf in forum cPanel and WHM Discussions
    Replies: 47
    Last Post: 02-06-2009, 09:43 AM
  2. Calculating spam percentage
    By shacker23 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-12-2006, 05:49 AM
  3. how cPanel is calculating quotas with mysql.
    By httpwwf in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-29-2004, 07:11 PM
  4. Calculating bandwidth usage
    By GameOver in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-03-2003, 12:22 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube