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.

problem with stats and perl???

Discussion in 'General Discussion' started by michaeln, Apr 7, 2003.

  1. michaeln

    michaeln Member

    Joined:
    Nov 20, 2001
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Here is a fix if your stats aren't working.

    See 3rd reply for fix if you have the same problem as described below.

    My customers have complained that stats haven't been updated since April 2nd.

    So I tried running them with runlogsnow.

    It spits out this error: /usr/bin/perl: relocation error:
    /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so: undefined symbol: Perl_sv_2pv

    Anyone have any ideas?

    The last thing I did before the logs stopped working was update cpanel.

    Michael
     
    #1 michaeln, Apr 7, 2003
    Last edited: Apr 10, 2003
  2. michaeln

    michaeln Member

    Joined:
    Nov 20, 2001
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Anyone know what might be causing this???
     
  3. michaeln

    michaeln Member

    Joined:
    Nov 20, 2001
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Is anyone else having this problem.

    From what I can tell Nick updated cpanellogd late last month and I upgraded to that version on the 3rd.

    So Nick, any clue as to how to fix this?
     
  4. michaeln

    michaeln Member

    Joined:
    Nov 20, 2001
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Gee everyone thanks for all of your help.

    I was able to fix it myself.

    It seems the version of RRDs CPanel put on the server did not agree with mine, and a few others servers

    I had to upgrade RRDs:

    If you have the same problem run these commands in shell as root to fix the problem.

    ------------------

    cd /

    mkdir install

    cd install

    wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.40.tar.gz

    tar -zxvf rrdtool-1.0.40.tar.gz

    cd rrdtool-1.0.40

    sh configure

    make

    cd /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/

    cp RRDs.so RRDs.so.backup

    cd /install/rrdtool-1.0.40/perl-shared/blib/arch/auto/RRDs

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

    cd /usr/local/cpanel/3rdparty/lib/perl/

    cp RRDs.pm RRDs.pm.backup

    cd /install/rrdtool-1.0.40/perl-shared/

    cp RRDs.pm /usr/local/cpanel/3rdparty/lib/perl/

    ------------------

    At this points your logs will work

    If you want to finish install RRDs to your server you can type the following:

    ------------------

    cd ../

    make install

    ------------------

    - Michael
     
  5. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    Your complaining about "STATS". What stats would that be? There are at least 4 stats pgms on my server so i have no idea what your referring to and neither do the others.
     
  6. michaeln

    michaeln Member

    Joined:
    Nov 20, 2001
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    All of them.... Rather none of them worked.

    Apparantly all of the stats programs are run from cpanellogd..

    cpanellogd wouldn't work because CPanel installed RRDs as a database for itself.

    RRDs didn't like my server.

    I upgraded RRDs and now everything works.

    In other words. I upgraded CPanel on April 3 appatently in the middle of the server running stats as some domains had them processed for April 3rd and others didn't. None of he stats on the server got updated until I upgraded RRDs last night.

    When I would run /scripts/runlogsnow I would get the error mentioned in the first post.
    /usr/bin/perl: relocation error:
    /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so: undefined symbol: Perl_sv_2pv

    The reason I chose to update RRDs is RRDs.so is the file perl was complaining about.

    Basically it boils down to this.
    If you are having the same problem follow my steps above to fix it.

    Nick, upgrade RRDs to the next version for 7.3 machines and two versions up for 8.0 and 9.0 machines

    Regards,
    Michael
     
Loading...

Share This Page