Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 27
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    50

    Default Stats stopped working

    Hello,
    All of our clients have noticed that on our servers, the stats have stopped working. I've tried updating everything and have done basic troubleshooting, but have had no luck. I tried running /scripts/runlogsnow and I got the following error:

    (internal death) Wed Dec 7 01:06:38 2005 [28249] error: Modification of a read-only value attempted at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBI.pm line 279.
    eval {...} called at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBI.pm line 276
    require DBI.pm called at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBD/mysql.pm line 7
    DBD::mysql::BEGIN() called at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Scalar/Util.pm line 0
    eval {...} called at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Scalar/Util.pm line 0
    require DBD/mysql.pm called at /usr/local/cpanel/cpanellogd line 60
    main::BEGIN() called at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Scalar/Util.pm line 0
    eval {...} called at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Scalar/Util.pm line 0
    [a fatal error or timeout occurred while processing this directive]==> WARNING: configured processor count does not match
    ==> actual processor count (1)! Running stats programs
    ==> on this system may cause excessive load!


    Can anyone tell me what is causing this? It stated about a week ago and is not isolated on any specific server.


    Thank you!
    John / Callery Networks, Inc.
    Customer Assistant

  2. #2
    Member
    Join Date
    Aug 2003
    Posts
    50

    Default

    Also - in tweak settings I've bumped the server load up for the stats - even though the server loads are generally very low - but this hasn't done anything, either.


    Thanks!
    John / Callery Networks, Inc.
    Customer Assistant

  3. #3
    Member
    Join Date
    Nov 2002
    Location
    Barcelona, Edo. Anzoategui, Venezuela
    Posts
    13

    Default Stats stopped working

    I have the same error. Can anyone tell me what is causing this?

    Thank you...
    Juan Simao
    Help Desk
    http://www.iguanahosting.com

  4. #4
    Member
    Join Date
    Aug 2003
    Posts
    50

    Default

    Hi everyone,
    The stat's are still not working on our end - and we are still getting that error.

    Does anyone have any idea as to what is causing this?


    Thanks!
    John / Callery Networks, Inc.
    Customer Assistant

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2004
    Posts
    392

    Wink

    hey

    might be a permissions thing on a file it uses ..
    have a look in the perl code at the line it tells you, chances are it will have a filename listed there

    check the apache logs have propper permissions and readable by all (/usr/local/apache/domlogs).

    open a support request with cpanel, they can log on and have a look and fix it

    cheers
    andy
    UK Managed Hosting
    UK Linux Support
    The information given above is intended to be advice only.

  6. #6
    Member
    Join Date
    Jul 2003
    Posts
    10

    Default

    I'm in the same boat.

    MySQL is v4.1.x
    Perl v5.6.1
    Red Hat 7.3

    I've run /scripts/upcp --force
    I've run /scripts/perlinstaller --force Scalar::Util (it installs v1.18)
    I've run /scripts/perlinstaller --force Bundle:BD::mysql and it hangs after display a warning starting with "Perl versions below 5.6.1 are no longer supported by the DBI"

    So I tried "perl -MCPAN -e'force install Bundle:BD::mysql'", and it installs DBI v1.49, Data-ShowTable v3.3, DBD-mysql v2.9008, then DBD-mysql v3.000, all without error (bar tests failing because it can't connect to the DB locally.

    All to no avail

    The error is similar to OP's ..
    # /scripts/runweblogs <username>
    Log checker loaded ok..
    (internal death) Sat Dec 10 16:23:14 2005 [15703] error: Modification of a read-
    only value attempted at /usr/lib/perl5/site_perl/5.6.1/i686-linux/DBI.pm line 27
    9.
    eval {...} called at /usr/lib/perl5/site_perl/5.6.1/i686-linux/DBI.pm li
    ne 276
    require DBI.pm called at /usr/lib/perl5/site_perl/5.6.1/i686-linux/DBD/m
    ysql.pm line 7
    DBD::mysql::BEGIN() called at /usr/lib/perl5/site_perl/5.6.1/i686-linux/
    Scalar/Util.pm line 0
    eval {...} called at /usr/lib/perl5/site_perl/5.6.1/i686-linux/Scalar/Ut
    il.pm line 0
    require DBD/mysql.pm called at /usr/local/cpanel/cpanellogd line 60
    main::BEGIN() called at /usr/lib/perl5/site_perl/5.6.1/i686-linux/Scalar
    /Util.pm line 0
    eval {...} called at /usr/lib/perl5/site_perl/5.6.1/i686-linux/Scalar/Ut
    il.pm line 0
    [a fatal error or timeout occurred while processing this directive]==> cPanel Lo
    g Daemon version 22.2
    ==> Shared RRDTOOL support enabled
    Processing <username>...
    Anything else I should look for?

  7. #7
    Member
    Join Date
    Aug 2002
    Posts
    1,118

    Default

    This looks like its a problem with perl versions 5.8.1 and older. We have servers running 5.8.1 and they are reporting this error, but servers that are running 5.8.3 or higher do not report this error. Can anyone else verify this? I see a couple of threads involving this error and they all reference 5.8.1 or older versions of perl. I see where there is a perl 5.8.7 installer available through layer1, but I am reluctant to upgrade using it, because I have heard of how important perl is to the underlying cpanel system. The stats do appear to be generated so I don't think it is causing any problems, so I'm not sure if I see a reason to upgrade. The only reason that I can think of, is perhaps there is something else that is running behind the scenes that is having problems because of this error, and I just don't see it.

    Can anyone else verify that this is only a problem with 5.8.1 versions of perl and older? Has anyone upgraded those installations to perl 5.8.7? Did you experience any problems?
    Last edited by sparek-3; 12-10-2005 at 02:56 PM.

  8. #8
    Member
    Join Date
    Jul 2003
    Posts
    10

    Default

    Quote Originally Posted by sparek-3
    perl versions 2.8.1 and older
    Do you mean v5.8.1 and older? If so then, no, because as I say above I have v5.6.1.

    .cg

  9. #9
    Member
    Join Date
    Aug 2002
    Posts
    1,118

    Default

    Yea, I mean 5.8.1. I don't know where I got the 2, must've been looking at something else and meaning something different. I have editted that post to show the 5's to clear up any confusion. 5.6.1 would be older than 5.8.1 so it would fall into this category.

    Sorry for the confusion and thanks for pointing it out.

  10. #10
    Member
    Join Date
    Jul 2003
    Posts
    10

    Default

    OK .. Scalar::Util is borked .. when I build the latest version it gives a warning about the Weaken method not being available. In DBI.pm (as the error says), there is a check for this function.. so I simply commented it out, and returned 0, and all seems ok-ish.

    So in /usr/lib/perl5/site_perl/5.6.1/i686-linux/DBI.pm I changed line 275+ to
    # check for weaken support, used by ChildHandles
    my $HAS_WEAKEN = eval {
    require Scalar::Util;
    # this will croak() if this Scalar::Util doesn't have a working weak
    #Scalar::Util::weaken(my $test = \"foo");
    0;
    };
    , to always return fals for the check (because, Scalar::Util warns me it's not available).. that stops the error I reported above from happening, and doesn't seem to break anything else (if there is a check in DBI, there is the implication that it's OK to not have it!).

    So now to get rid of my "The server is having trouble keeping up with your statistics processing schedule" warnings.

    In /usr/local/cpanel/logs/stats_log I notice a bunch of
    About to fork for cinemat [DOMAIN: domain.com]
    Unable to get urchin profileid for domain.com
    Unable to get urchin logid for domain.com
    Running /scripts/runstatsonce each time I get this in the logs, seems to clear that one and move on to the next. Each time the logs seem to be generated OK .. as in there are the expected number of hits reported for the month that was missing, in the problem domains/accounts.

    It seems to have worked for me, but I'd wait for somebody who knows better to comment before you try this yourself!

    .cg

  11. #11
    Member
    Join Date
    Aug 2003
    Posts
    50

    Default

    cPanel support told me that the fix for this is currently only available in the recent Edge updates - which resolved the problem.

    Try updating to edge and see if that resolves the problem temporarily.
    John / Callery Networks, Inc.
    Customer Assistant

  12. #12
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I just discovered the exact same issue on a few of my servers. Upgraded from perl 5.8.1 to 5.8.7 using the cPanel perl distribution and that fixed those, the others were indeed fixed using the latest EDGE. Looks like two different problems affecting the same thing.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  13. #13
    Member
    Join Date
    Jan 2005
    Posts
    159

    Default

    same problem

  14. #14
    Member isputra's Avatar
    Join Date
    May 2003
    Location
    Mbelitar
    Posts
    593

    Default

    how to fix this ?

    upgrade to C-60 got this problem
    It's me ...... It's me ......

  15. #15
    Member
    Join Date
    Jan 2005
    Posts
    159

    Default

    upgrade perl to 5.8.7 this will fix

Similar Threads & Tags
Similar threads

  1. Stats stopped working - any ideas?
    By Brook in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-11-2007, 12:48 PM
  2. Webalizer stats stopped
    By apc1 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-27-2005, 12:29 PM
  3. Stats stopped running
    By ethank in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 09-08-2005, 02:03 PM
  4. Urchin stats stopped working!
    By wills in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-27-2005, 08:38 PM
  5. Stats Stopped Working
    By VH-Robert in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-20-2003, 01:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube