Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Aug 2002
    Posts
    48

    Default MySQL crashes during backup and doesn't restart

    This is a strange one... This happens on only one server and only during the backups. This is about half way through the backups...
    ---------------------------------------------------------------------------------

    Copying www logs.............
    .........
    .........
    .........
    Done
    Grabbing mysql dbs...mysqldump: Can't get CREATE TABLE for table `phpbb_privmsgs` (File './ithkus_velocityforum/phpbb_privmsgs.MYD' not found (Errcode: 24))
    Done
    Grabbing mysql privs...DBD::mysql::st execute failed: File './mysql/user.MYD' not found (Errcode: 24) at /usr/local/cpanel/Cpanel/Mysql.pm line 669.
    DBD::mysql::st fetchrow_arrayref failed: fetch() without execute() at /usr/local/cpanel/Cpanel/Mysql.pm line 670.
    DBD::mysql::st execute failed: File './mysql/user.MYD' not found (Errcode: 24) at /usr/local/cpanel/Cpanel/Mysql.pm line 677.
    DBD::mysql::st fetchrow_arrayref failed: fetch() without execute() at /usr/local/cpanel/Cpanel/Mysql.pm line 678.
    Done

    ---------------------------------------------------------------------------------
    Then after the above happens MySQL is down and every backup shows this...
    ---------------------------------------------------------------------------------

    Copying www logs.............
    Done
    /usr/bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user: 'root@localhost' (Using password: YES)'
    Grabbing mysql dbs...DBI connect('mysql:localhost','root',...) failed: Access denied for user: 'root@localhost' (Using password: YES) at /usr/local/cpanel/Cpanel/Mysql.pm line 42
    ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
    ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
    /usr/bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user: 'root@localhost' (Using password: YES)'
    DBI connect('mysql:localhost','root',...) failed: Access denied for user: 'root@localhost' (Using password: YES) at /usr/local/cpanel/Cpanel/Mysql.pm line 42
    ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
    Done
    Grabbing mysql privs...DBI connect('mysql:localhost','root',...) failed: Access denied for user: 'root@localhost' (Using password: YES) at /usr/local/cpanel/Cpanel/Mysql.pm line 42
    ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
    ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
    /usr/bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user: 'root@localhost' (Using password: YES)'
    ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
    ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
    Done

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

    Obviously, MySQL is down at this point and any site that uses MySQL is "broken". On the off chance it might fix it, I just ran mysqlcheck -r --all-databases. Anyone else seen this or have any ideas? It's getting real old having to restart MySQL every day after I get the eximstats error. Checkservd doesn't seem to catch that MySQL is down. Thank you.

    Scott Goodwin

  2. #2
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    The error (24) means too many files are being open. The default setting is usually determined by the open_files_limit which is 4096 I believe.

    You would need to change this in your my.cnf or startup options

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  3. #3
    Member
    Join Date
    Aug 2002
    Posts
    48

    Default

    Just in case any one else runs into this problem....

    Increasing open-files-limit in my.cnf did the trick it appears. Backups ran and MySQL didn't crash. Thank you.

  4. #4
    Member
    Join Date
    Oct 2003
    Location
    UK
    Posts
    14

    Default Increasing open-files-limit in my.cnf

    Hello;

    What do I add in "my.cnf" To Increase the open-files-limit as all I have in that file is root and root password?

    As every Sunday when my server Backups all sites I get:"spamd failed" "apache failed" And the server runs really slow.

    Thanks

    Mike
    Grant

Similar Threads & Tags
Similar threads

  1. Site / MySQL Backup - Crashes Site
    By contemptx in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-09-2007, 06:01 PM
  2. Apache crashes and does not restart every day
    By traian1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-27-2007, 12:05 PM
  3. mysql crashes or restart every 500 seconds
    By alexd in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-29-2005, 03:12 PM
  4. Generate full backup doesn't create mysql properly...
    By accyroy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-02-2005, 04:23 AM
  5. Cpanel graceful restart of apache causing crashes
    By hostultra in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-11-2004, 08:35 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube