Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    14

    Default runlogsnow PERL broken?

    Stats are not being calculated like they should so I ran:
    /scripts/runlogsnow to see what the problem might be:


    Code:
    (internal death) Fri Jun  2 20:08:35 2006 [19515] 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 62
            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]==> cPanel Log Daemon version 22.2
    cPanel version: 120 stable (latest stable)

    before that it had a problem with extracpus not being 0, which worked before 120/116.
    Code:
    [a fatal error or timeout occurred while processing this directive]==> WARNING: configured processor count does not match

  2. #2
    aby
    aby is offline
    Member aby's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    638

    Default

    Try updating perl from layer1.cpanel.net
    Aby

    MSN "abyvarghese007"
    Yahoo " abyattaikkulathu"

    http://slashome.com

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    14

    Default

    I'm checking for new updates daily with
    /scripts/upcp.

  4. #4
    aby
    aby is offline
    Member aby's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    638

    Default

    Quote Originally Posted by phiber
    I'm checking for new updates daily with
    /scripts/upcp.

    I mean you can update the perl using the perlinstaller that can be downloaded from

    http://layer1.cpanel.net/
    Aby

    MSN "abyvarghese007"
    Yahoo " abyattaikkulathu"

    http://slashome.com

  5. #5
    Member
    Join Date
    Mar 2003
    Posts
    14

    Default

    ok, updated perl to 5.8.7, but now when I run /scripts/runlogsnow:

    Code:
    /usr/bin/perl: relocation error: /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so: undefined symbol: Perl_Gthr_key_ptr

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    37

    Default

    cd /usr/local/src/
    wget http://people.ee.ethz.ch/~oetiker/we...-1.0.49.tar.gz
    tar -zxf rrdtool-1.0.49.tar.gz
    cd rrdtool*
    ./configure
    make
    make install
    make site-perl-install

    mv /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so.bk

    cp /usr/local/src/rrdtool-1.0.49/perl-shared/blib/arch/auto/RRDs/RRDs.so /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so

    mv /usr/local/cpanel/3rdparty/lib/perl/RRDs.pm /usr/local/cpanel/3rdparty/lib/perl/RRDs.pm.bk

    cp /usr/local/src/rrdtool-1.0.49/perl-shared//RRDs.pm /usr/local/cpanel/3rdparty/lib/perl/RRDs.pm
    Tss -- Tweaking, securing, monitoring. We do it all @ TotalServerSolutions

  7. #7
    Member
    Join Date
    Mar 2003
    Posts
    14

    Default

    and this worked :-)

  8. #8
    Member
    Join Date
    Jun 2003
    Location
    NC, USA
    Posts
    94

    Default

    Worked for me too.. Thanks!

  9. #9
    Member
    Join Date
    Apr 2005
    Location
    Texas
    Posts
    63

    Default moving isn't necessary

    Moving the files as you've described isn't necessary if you provide the proper prefix options to configure for rrdtool, please note that the tarball should already be downloaded by cPanel, it's just the rrdtoolinstall script doesn't know how to untar it apparently :

    /usr/local/cpanel/src/3rdparty/gpl
    tar -xvzf rrdtool-1.0.49.tar.gz
    cd rrdtool-1.0.49
    ./configure --prefix=/usr/local/cpanel/3rdparty --enable-shared
    make
    make install
    make site-perl-install

    cpanellogd should no longer error out as before.

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    37

    Default

    true, but i prefer to keep backups.
    Tss -- Tweaking, securing, monitoring. We do it all @ TotalServerSolutions

  11. #11
    Registered User
    Join Date
    Jun 2006
    Posts
    1

    Default Worked

    Worked perfectly, thank you.

  12. #12
    Registered User
    Join Date
    May 2006
    Posts
    3

    Default

    Quote Originally Posted by theuruguayan
    cd /usr/local/src/
    wget http://people.ee.ethz.ch/~oetiker/we...-1.0.49.tar.gz
    tar -zxf rrdtool-1.0.49.tar.gz
    cd rrdtool*
    ./configure
    make
    make install
    make site-perl-install

    mv /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so.bk

    cp /usr/local/src/rrdtool-1.0.49/perl-shared/blib/arch/auto/RRDs/RRDs.so /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so

    mv /usr/local/cpanel/3rdparty/lib/perl/RRDs.pm /usr/local/cpanel/3rdparty/lib/perl/RRDs.pm.bk

    cp /usr/local/src/rrdtool-1.0.49/perl-shared//RRDs.pm /usr/local/cpanel/3rdparty/lib/perl/RRDs.pm


    Thanks for the help!

  13. #13
    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

    Probably simpler to just run:

    /usr/local/cpanel/bin/rrdtoolinstall --force
    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

Similar Threads & Tags
Similar threads

  1. Broken Perl install
    By PaulBZ in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-31-2009, 08:45 AM
  2. MailScanner broken after Perl update
    By tmallardi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-14-2007, 06:33 AM
  3. perl 5.8.8 broken?
    By flash7 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-25-2007, 04:51 AM
  4. 12/21/2005 update seems to have broken mysql, gd, perl, and others
    By nat in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-21-2005, 11:52 AM
  5. Perl broken after initial install
    By digitalsky in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-06-2004, 10:57 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube