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.

Tailwatchd failed

Discussion in 'General Discussion' started by vixon, May 10, 2011.

  1. vixon

    vixon Active Member

    Joined:
    Sep 23, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Estonia
    cPanel Access Level:
    Root Administrator
    Hello,

    After upgrading php and mysql to the latest versions Tailwatchd service keeps failing.

    Any help will be highly appreciated.

    tailwatchd_log:

     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    DBD::mysql is a Perl module that needs to be compiled against the version of MySQL that is installed on the server. Since you updated MySQL, the version of DBD::mysql that is installed no longer matches the current version of MySQL. To fix this, simply reinstall DBD::mysql:

    Code:
    # /scripts/perlinstaller --force DBD::mysql
    This should fix the problem. If it does not, please submit a ticket so that we may log into the server and investigate directly.
     
  3. vixon

    vixon Active Member

    Joined:
    Sep 23, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Estonia
    cPanel Access Level:
    Root Administrator
    I have just run

    and it solved the issue.

    Thanks for your quick reply!
     
  4. pak

    pak Member

    Joined:
    Mar 26, 2011
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pakistan
    nice to hear your issued solved :)
     
  5. spritorox

    spritorox Member

    Joined:
    May 28, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    if i reinstall dbd, I lose all existing db?
     
  6. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    DBD::mysql is a Perl module. A Perl module is a set of functions that are made available to Perl scripts. DBD::mysql is what lets cPanel Perl scripts, like eximstats/tailwatchd, connect to, get data from, and send data to, MySQL.

    There is no danger of data loss from reinstalling DBD::mysql. DBD::mysql is only a Perl module, a set of software routines, that lets Perl scripts "talk to" MySQL. It has nothing to do with, and will not affect, your actual MySQL databases.
     
  7. mycuteoo

    mycuteoo Active Member

    Joined:
    Oct 24, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Sir~

    I running "# /scripts/perlinstaller --force DBD::mysql" and got some messages like below...

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

    Can't exec "mysql_config": No such file or directory at Makefile.PL line 82.

    Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
    not contain the path to mysql_config. Resorting to guessed values!
    Can't exec "mysql_config": No such file or directory at Makefile.PL line 464.
    Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
    Can't exec "mysql_config": No such file or directory at Makefile.PL line 464.
    Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
    Can't exec "mysql_config": No such file or directory at Makefile.PL line 464.
    Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located


    PLEASE NOTE:

    For 'make test' to run properly, you must ensure that the
    database user 'root' can connect to your MySQL server
    and has the proper privileges that these tests require such
    as 'drop table', 'create table', 'drop procedure', 'create procedure'
    as well as others.

    mysql> grant all privileges on test.* to 'root'@'localhost' identified by 's3kr1 t';

    You can also optionally set the user to run 'make test' with:

    perl Makefile.PL --testuser=username

    Can't exec "mysql_config": No such file or directory at Makefile.PL line 464.
    Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
    Can't exec "mysql_config": No such file or directory at Makefile.PL line 464.
    Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
    Can't exec "mysql_config": No such file or directory at Makefile.PL line 464.
    Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
    Failed to determine directory of mysql.h. Use

    perl Makefile.PL --cflags=-I<dir>

    to set this directory. For details see the INSTALL.html file,
    section "C Compiler flags" or type

    perl Makefile.PL --help
    No 'Makefile' createdCPAN: YAML loaded ok (v0.73)
    CAPTTOFU/DBD-mysql-4.019.tar.gz
    /usr/bin/perl Makefile.PL -- NOT OK
    Running make install
    Make had some problems, won't install
    Could not read metadata file. Falling back to other methods to determine prerequ isites
    perlmod--Install done

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

    It's still not running...
    Please help me to check it.
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    If this is a DNS only machine without MySQL installed, you will need to install MySQL:

    Code:
    /scripts/mysqlup --force
    Then re-run the "/scripts/perlinstaller --force DBD::mysql" command. If you have MySQL disabled on the machine, please re-enable it by moving the file that was set to disable it:

    Code:
    mv /etc/mysqldisable /etc/mysqldisable.bak
    Thanks!
     
  9. mycuteoo

    mycuteoo Active Member

    Joined:
    Oct 24, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Dear cPanelTristan~

    It's OK.
    Thanks for your help. ^^
     
Loading...

Share This Page