2022-07-03 22:20:12 19 [ERROR] InnoDB: preallocating 163840 bytes for file ./countedly_local/organizations.ibd failed with error 2 2022-07-03 22:20:12 0x7feb8c3c1700 InnoDB: Assertion failure in file /home/buildbot/buildbot/build/mariadb-10.3.35/storage/innobase/fil/fil0fil.cc line 968 InnoDB: Failing assertion: fsize != os_offset_t(-1) InnoDB: We intentionally generate a memory trap. InnoDB: Submit a detailed bug report to https://jira.mariadb.org/ 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. Please refer to InnoDB: https://mariadb.com/kb/en/library/innodb-recovery-modes/ InnoDB: about forcing recovery. 220703 22:20:12 [ERROR] mysqld got signal 6 ; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. To report this bug, see https://mariadb.com/kb/en/reporting-bugs We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. Server version: 10.3.35-MariaDB-1:10.3.35+maria~focal key_buffer_size=134217728 read_buffer_size=2097152 max_used_connections=4 max_threads=102 thread_count=9 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 760038 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7feb18000c48 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... stack_bottom = 0x7feb8c3c0dd8 thread_stack 0x49000 mysqld(my_print_stacktrace+0x32)[0x5619f7c95f32] mysqld(handle_fatal_signal+0x55d)[0x5619f776c3cd] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7feba6fa6420] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7feba6de100b] /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7feba6dc0859] mysqld(+0x4f0559)[0x5619f7474559] mysqld(+0x50596f)[0x5619f748996f] mysqld(+0x505da1)[0x5619f7489da1] mysqld(+0x508013)[0x5619f748c013] mysqld(+0x509343)[0x5619f748d343] mysqld(+0xb741cd)[0x5619f7af81cd] mysqld(+0xac7c0a)[0x5619f7a4bc0a] mysqld(+0xb25adf)[0x5619f7aa9adf] mysqld(+0xb26192)[0x5619f7aaa192] mysqld(+0xa24828)[0x5619f79a8828] mysqld(+0x9a8351)[0x5619f792c351] mysqld(+0x9aee95)[0x5619f7932e95] mysqld(+0x9b2043)[0x5619f7936043] mysqld(+0x683398)[0x5619f7607398] mysqld(_Z17mysql_alter_tableP3THDPK25st_mysql_const_lex_stringS3_P14HA_CREATE_INFOP10TABLE_LISTP10Alter_infojP8st_orderb+0x366c)[0x5619f761229c] mysqld(_ZN19Sql_cmd_alter_table7executeEP3THD+0x2af)[0x5619f766682f] mysqld(_Z21mysql_execute_commandP3THD+0xde8)[0x5619f756f208] mysqld(_ZN18Prepared_statement7executeEP6Stringb+0x47e)[0x5619f758b1fe] mysqld(_ZN18Prepared_statement12execute_loopEP6StringbPhS2_+0x8e)[0x5619f758b3ee] mysqld(+0x608495)[0x5619f758c495] mysqld(_Z19mysqld_stmt_executeP3THDPcj+0x30)[0x5619f758c5e0] mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x163b)[0x5619f7578e3b] mysqld(_Z10do_commandP3THD+0x12d)[0x5619f757a80d] mysqld(_Z24do_handle_one_connectionP7CONNECT+0x246)[0x5619f7663b96] mysqld(handle_one_connection+0x3f)[0x5619f7663d6f] /lib/x86_64-linux-gnu/libpthread.so.0(+0x8609)[0x7feba6f9a609] /lib/x86_64-linux-gnu/libc.so.6(clone+0x43)[0x7feba6ebd133] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7feb18018268): alter table `organizations` add index `organizations_stripe_id_index`(`stripe_id`) Connection ID (thread ID): 19 Status: NOT_KILLED Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains information that should help you find out what is causing the crash. Writing a core file... Working directory at /var/lib/mysql Resource Limits: Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size unlimited unlimited bytes Max stack size 8388608 unlimited bytes Max core file size 0 unlimited bytes Max resident set unlimited unlimited bytes Max processes unlimited unlimited processes Max open files 1048576 1048576 files Max locked memory 83968000 83968000 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 102134 102134 signals Max msgqueue size 819200 819200 bytes Max nice priority 0 0 Max realtime priority 0 0 Max realtime timeout unlimited unlimited us Core pattern: core Fatal signal 11 while backtracing