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.

cpanel bad dbd.pm??

Discussion in 'General Discussion' started by thurmma, Nov 3, 2003.

  1. thurmma

    thurmma Member

    Joined:
    Nov 3, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    We are running Maxsponder software at work on a remote dedicated server. Last week maxsponder started acting up for no apparent reason and then wouldn't let us in at all.

    After talking to the support people at Maxsponder it has has been brought to our attention that through an auto update to cpanel, there was a bug in the dbd.pm module on line 113.

    We are currently dead in the water with maxsponder and want a fix for this. We don't care where the fix comes from but, we need it fast.

    Thank you.
     
  2. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gatineau, Quebec, Canada
    I agree, we need a fix for this, please guys???

    I'm experiencing the same problems with this specific script.

    How could we downgrade?
     
  3. thurmma

    thurmma Member

    Joined:
    Nov 3, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    We got it fixed. It required a reinstall of PERL and all associated modules.
     
  4. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gatineau, Quebec, Canada
    Would you care to detail some of the steps? I tried going to search.cpan.net to drop the DBD.pm version to an earlier version and it didn't help at all...

    Any details or step-by-steps would be great.

    Thanks!
     
  5. thurmma

    thurmma Member

    Joined:
    Nov 3, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I wish I could tell you more but, I am not the Admin on our dedicated server.

    I have posted the email that I received back from him. I hope this will help.

    There should have been some kind of response from the cpanel team on this but, I guess they are not interested in problems of this nature.

    Admin's email I received:

    >I did everything .....
    >
    >Reinstalled Perl, then the Perl Modules, updated all >frontend and backend software, etc.

    I realize that this isn't much to go on but, that is all I have to send. Sorry.
     
  6. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gatineau, Quebec, Canada
    Darned!

    Cuz I'm the admin here and can't do it. I mean, reinstalling perl.

    :( How sad.
     
  7. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gatineau, Quebec, Canada
    *cackles*

    Here's a step by step ladies and gents:

    Upgrade perl:

    - Log into a shell.
    - mkdir perl
    - cd perl
    - wget http://layer1.cpanel.net/perl581installer.tar.gz
    - tar -zxf perl581installer.tar.gz
    - cd perl581installer/
    - ./install

    When that's done, downgrade DBD:

    - cd ..
    - wget http://search.cpan.org/CPAN/authors/id/R/RU/RUDY/DBD-mysql-2.9002.tar.gz
    - tar -zxf DBD-mysql-2.9002.tar.gz
    - cd DBD-mysql-2.9002/
    - perl Makefile.PL
    - make
    - make install

    That's it!

    I knew I'd figure it out! Enjoy all! Upgrading to perl 5.8.1 will fix the garbage bug that doesn't let you downgrade to BDB-mysql 2.9002. Now, once that upgrade's done, it works AOK.

    Jamie :D

    EDIT: You can go back to the root folder and rm -rf perl to remove the files left behind.
     
  8. Valetia

    Valetia Well-Known Member

    Joined:
    Jun 20, 2002
    Messages:
    207
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Thanks Jamie, this was very helpful!
     
  9. jdatwood

    jdatwood Active Member

    Joined:
    May 10, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    DBD still gets "broken" when you run cpup....??? :mad:

    I've been having to go thru for months now and downgrade dbd after Cpanel upgrades.... has this EVER been reported in the bug tracker?
     
  10. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gatineau, Quebec, Canada
    The best thing for you to do is go look up the error on Maxsponder's website.

    They have a fix. I implemented it and it is now compatible with the new DBD.pm modules and it supports all new cPanel versions.

    All I did was:

    -=-=-
    In all cgi files, I replaced this line:

    $dbh = $drh->connect( $workspace,$userid,$password );

    With this line:

    $dbh = $drh->connect( $workspace,$userid,$password ,{'RaiseError' => 1});
    -=-=-

    Hope this helps. Try it out. :)

    Jamie S.
    Kisok.ws
     
Loading...

Share This Page