Skip to main content

Issue with MySQL

Comments

9 comments

  • cPanelMichael
    Hello :) The following thread is useful for troubleshooting InnoDB corruption, which is referenced in your error output: InnoDB Repair Guide Thank you.
    0
  • david.cocos
    I don't think that it is a corruption issue, because the server never failed to go back on, after crashing, and the error log doesn't show the same file that can't be locked. Also, the errors mention a file named "fil0fil.cc" which I am unable to find on the server (I used the "find" command via SSH). Can it be something regarding the maximum number of open files? It is set to 50000, is that enough? Regarding the RAM issue, what values should I increase in my.cnf? Would this be any good? Global key_buffer_size=128M->4G innodb_buffer_pool_size=8->11G query_cache_limit=8M->1G Thread sort_buffer_size=256K->1M read_buffer_size=128K->512K join_buffer_size=12M->512K read_rnd_buffer_size=256k->1M thread_stack=256K->1M
    0
  • cPanelMichael
    You may want to run the MySQL tuner and make changes based on it's recommendations. We have a "Workarounds and Optimization" forum that you can open a thread in to get input from others on how to best configure MySQL. Thank you.
    0
  • david.cocos
    Can you give me any information about the "fil0fil.cc" file? This file is called on every error that appears in the error log "Assertion failure in thread in file fil0fil.cc line 875", and it always says that it is unable to lock a ibd file, giving the error 37.
    0
  • cPanelMichael
    It's simply part of the InnoDB corruption error message. Please see this part of the output: [QUOTE]InnoDB: If you get repeated assertion failures or crashes, even InnoDB: immediately after the mysqld startup, there may be InnoDB: corruption in the InnoDB tablespace.
    The fact that MySQL starts does not mean there is not InnoDB corruption. You may need to consult with a qualified system administrator if the guide linked earlier is not helpful. Thank you.
    0
  • david.cocos
    Hello, I have decoded this with stack trace. fil_node_open_file(fil_node_t*, fil_system_t*, fil_space_t*) + 1624 fil_node_prepare_for_io(fil_node_t*, fil_system_t*, fil_space_t*) + 89 fil_io(unsigned long, bool, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, void*, void*) + 299 buf_read_page_low(dberr_t*, bool, unsigned long, unsigned long, unsigned long, unsigned long, long, unsigned long) + 285 buf_read_page(unsigned long, unsigned long, unsigned long) + 75 buf_page_get_gen(unsigned long, unsigned long, unsigned long, unsigned long, buf_block_t*, unsigned long, char const*, unsigned + 659 btr_cur_open_at_index_side_func(bool, dict_index_t*, unsigned long, btr_cur_t*, unsigned long, char const*, unsigned long, mtr_ + 864 row_search_max_autoinc(dict_index_t*, char const*, unsigned long*) + 281 ha_innobase::innobase_initialize_autoinc() + 373 ha_innobase::open(char const*, int, unsigned int) + 2801 handler::ha_open(TABLE*, char const*, int, int) + 62 open_table_from_share(THD*, TABLE_SHARE*, char const*, unsigned int, unsigned int, unsigned int, TABLE*, bool) + 1572 open_table(THD*, TABLE_LIST*, Open_table_context*) + 456 open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) + 3242 open_normal_and_derived_tables(THD*, TABLE_LIST*, unsigned int) + 79 fill_schema_table_by_open(THD*, bool, TABLE*, st_schema_table*, st_mysql_lex_string*, st_mysql_lex_string*, Open_tables_backup* + 524 get_all_tables(THD*, TABLE_LIST*, Item*) + 1648 get_schema_tables_result(JOIN*, enum_schema_table_state) + 753 JOIN::prepare_result(List**) + 157 JOIN::exec() + 223 mysql_select(THD*, TABLE_LIST*, unsigned int, List&, Item*, SQL_I_List*, SQL_I_List*, Item*, unsigned + 592 handle_select(THD*, select_result*, unsigned long) + 391 execute_sqlcom_select(THD*, TABLE_LIST*) + 621 mysql_execute_command(THD*) + 8504 mysql_parse(THD*, char*, unsigned int, Parser_state*) + 815 dispatch_command(enum_server_command, THD*, char*, unsigned int) + 5215 do_handle_one_connection(THD*) + 207 handle_one_connection + 71 pfs_spawn_thread + 298 _end + 110703905 _end + 91210685
    Can you please tell me what it does and if there is anything wrong with it.
    0
  • cPanelMichael
    I'm not seeing much information there to help determine the cause of the issue. Have you reviewed the InnoDB repair guide linked in the earlier post? Thank you.
    0
  • david.cocos
    Yes I've done that. I have checked all the ibd files with innochecksum and they all appeared to be ok. What happens is: every 5 minutes innodb finds a corrupted tablespace, and it crashes, and when it gets back up it repairs the broken file. And like once a day I receive a like 5 e-mails saying that mysql has failed, and after that it recovers. My problem is that I can't figure out what is causing these crashes. Also I tried to install mysqlmymonlite, and when I try to use ./mysqlmymonlite mysqltuner " The --forcemem option is required for remote connections". How can I run past this?
    0
  • cPanelMichael
    You may need to consult with a database specialist or a qualified system administrator if you are unable to determine why MySQL is crashing. I don't believe a MySQL tuner would help very much, but you can post to the following thread if you are having trouble with that application: mysqlmymonlite.sh server stats gathering tool for cPanel Server Thank you.
    0

Please sign in to leave a comment.