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.

runlogsnow PERL broken?

Discussion in 'General Discussion' started by phiber, Jun 2, 2006.

  1. phiber

    phiber Member

    Joined:
    Mar 27, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Try updating perl from layer1.cpanel.net
     
  3. phiber

    phiber Member

    Joined:
    Mar 27, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    I'm checking for new updates daily with
    /scripts/upcp.
     
  4. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India

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

    http://layer1.cpanel.net/
     
  5. phiber

    phiber Member

    Joined:
    Mar 27, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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. theuruguayan

    theuruguayan Active Member
    PartnerNOC

    Joined:
    Jul 6, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cd /usr/local/src/
    wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.x/rrdtool-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
     
  7. phiber

    phiber Member

    Joined:
    Mar 27, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    and this worked :)
     
  8. matthewdavis

    matthewdavis Well-Known Member

    Joined:
    Jun 26, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    NC, USA
    Worked for me too.. Thanks!
     
  9. xidica

    xidica Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas
    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. theuruguayan

    theuruguayan Active Member
    PartnerNOC

    Joined:
    Jul 6, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    true, but i prefer to keep backups.
     
  11. beuno

    beuno Registered

    Joined:
    Jun 13, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Worked

    Worked perfectly, thank you.
     
  12. bloggerman

    bloggerman Registered

    Joined:
    May 13, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1


    Thanks for the help!
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Probably simpler to just run:

    /usr/local/cpanel/bin/rrdtoolinstall --force
     
Loading...

Share This Page