crliuh

Member
Jun 16, 2014
24
1
3
cPanel Access Level
Root Administrator
Hi,

im keep getting Errcode: 24 on all my websites recently. it should be caused by over mysql usage i presume. following are the reports from mysqltuner, im not sure what i should do with the report, anyone please advise. thanks.

Code:
 >>  MySQLTuner 1.3.0 - Major Hayden <[email protected]>
 >>  Bug reports, feature requests, and downloads at http://mysqltuner.com/
 >>  Run with '--help' for additional options and output filtering
[OK] Currently running supported MySQL version 5.5.37-cll
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
ERROR 23 (HY000) at line 1: Out of resources when opening file '/tmp/#sql_59ac_0.MYD' (Errcode: 24)
[--] Data in MyISAM tables: 44M (Tables: 1562)
[--] Data in InnoDB tables: 7M (Tables: 397)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[--] Data in MEMORY tables: 0B (Tables: 16)
Argument "" isn't numeric in numeric gt (>) at ./mysqltuner.pl line 608 (#1)
    (W numeric) The indicated string was fed as an argument to an operator
    that expected a numeric value instead.  If you're fortunate the message
    will identify which operator was so unfortunate.

[OK] Total fragmented tables:

-------- Security Recommendations  -------------------------------------------
ERROR 23 (HY000) at line 1: Out of resources when opening file './mysql/user.MYD' (Errcode: 24)
[OK] All database users have passwords assigned
ERROR 23 (HY000) at line 1: Out of resources when opening file '/tmp/#sql_59ac_0.MYD' (Errcode: 24)
Argument "" isn't numeric in numeric eq (==) at ./mysqltuner.pl line 669 (#1)

-------- Performance Metrics -------------------------------------------------
[--] Up for: 2m 52s (4K q [26.093 qps], 22 conn, TX: 2M, RX: 715K)
[--] Reads / Writes: 98% / 2%
[--] Total buffers: 168.0M global + 2.8M per thread (151 max threads)
[OK] Maximum possible memory usage: 583.2M (14% of installed RAM)
[OK] Slow queries: 0% (0/4K)
[OK] Highest usage of available connections: 1% (2/151)
[!!] Cannot calculate MyISAM index size - re-run script as root user
[!!] Query cache is disabled
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 441 sorts)
[!!] Joins performed without indexes: 4
[!!] Temporary tables created on disk: 26% (299 on disk / 1K total)
[!!] Thread cache is disabled
[OK] Table cache hit rate: 94% (128 open / 135 opened)
[OK] Open file limit used: 20% (209/1K)
[OK] Table locks acquired immediately: 100% (7K immediate / 7K locks)
[OK] InnoDB buffer pool / data size: 128.0M/7.2M
[OK] InnoDB log waits: 0
-------- Recommendations -----------------------------------------------------
General recommendations:
    MySQL started within last 24 hours - recommendations may be inaccurate
    Enable the slow query log to troubleshoot bad queries
    Adjust your join queries to always utilize indexes
    When making adjustments, make tmp_table_size/max_heap_table_size equal
    Reduce your SELECT DISTINCT queries without LIMIT clauses
    Set thread_cache_size to 4 as a starting value
Variables to adjust:
    query_cache_size (>= 8M)
    join_buffer_size (> 128.0K, or always use indexes with joins)
    tmp_table_size (> 16M)
    max_heap_table_size (> 16M)
    thread_cache_size (start at 4)
thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello :)

Please ensure you let MySQL run for at least 24 hours before running the tuner to obtain accurate results. Also, could you elaborate on the specific error message you are receiving?

Thank you.
 

crliuh

Member
Jun 16, 2014
24
1
3
cPanel Access Level
Root Administrator
this is the error i get

DBD::mysql::db selectall_arrayref failed: Can't read dir of '.' (errno: 24)
at /usr/local/cpanel/Cpanel/Exception.pm line 96
Cpanel::Exception::new('Cpanel::Exception::Database::Error', 'Cpanel::Ex ceptionMessage::Raw=SCALAR(0xdd4a70)', 'HASH(0x1a09c48)') called at /usr/local/c panel/Cpanel/Exception.pm line 47
Cpanel::Exception::create('Database::Error', 'Cpanel::ExceptionMessage:: Raw=SCALAR(0xdd4a70)', 'HASH(0x1a09c48)') called at /usr/local/cpanel/Cpanel/Exc eption.pm line 55
Cpanel::Exception::create_raw('Database::Error', 'DBD::mysql::db selecta ll_arrayref failed: Can\'t read dir of ...', 'HASH(0x1a09c48)') called at /usr/l ocal/cpanel/Cpanel/DBI.pm line 79
Cpanel::DBI::_create_exception('Cpanel::DBI::Mysql::db=HASH(0x1a08ec8)', 'DBD::mysql::db selectall_arrayref failed: Can\'t read dir of ...', undef) call ed at /usr/local/cpanel/Cpanel/DBI.pm line 70
Cpanel::DBI::_error_handler('DBD::mysql::db selectall_arrayref failed: C an\'t read dir of ...', 'Cpanel::DBI::Mysql::db=HASH(0x1a08ec8)', undef) called at /usr/local/cpanel/bin/update-roundcube line 126
cpanel::bin::update_roundcube::_check_update_roundcube('--force', undef) called at /usr/local/cpanel/bin/update-roundcube line 58
cpanel::bin::update_roundcube::force_update_roundcube('--force') called at /usr/local/cpanel/bin/update-roundcube line 48
when i try to perform /usr/local/cpanel/bin/update-roundcube --force

because i've having this issue 'DATABASE ERROR: CONNECTION FAILED!' frequently in my roundcube.

http://s24.postimg.org/58u7oka0k/Roundcube_Webmail.jpg


and right now my websites show this error
Can't open file: './myharmon_jo25/mhie3_session.frm' (errno: 24) SQL=INSERT INTO `mhie3_session` (`session_id`, `client_id`, `time`) VALUES ('7e8c4e424d766757bc6644b97ec5c094', 0, '1405557933')


please help.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Feel free to open a support ticket so we can troubleshoot those error messages. You can post the ticket number here so we can update this thread with the outcome.

Thank you.