2025-08-10 17:22:38 1365416 [Warning] Aborted connection 1365416 to db: 'unconnected' user: 'unauthenticated' host: 'ip-10-211-64-204.ap-southeast-1.compute.internal' (This connection closed normally without authentication) 2025-08-10 17:22:39 1359654 [ERROR] Could not use /data/HCL/mariadb/mariadb-binlog/Starhuab_Prd for logging (error 2). Turning logging off for the whole duration of the MariaDB server process. To turn it on again: fix the cause, shutdown the MariaDB server and restart it. 2025-08-10 17:22:39 1359654 [ERROR] Could not use /data/HCL/mariadb/mariadb-binlog/Starhuab_Prd.001773 for logging (error 0). Turning logging off for the whole duration of the MariaDB server process. To turn it on again: fix the cause, shutdown the MariaDB server and restart it. 2025-08-10 17:22:39 1359654 [ERROR] mariadbd: Error writing file '(null)' (errno: 0 "Internal error/check (Not system error)") 250810 17:22:39 [ERROR] mysqld got signal 11 ; 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.5.9-MariaDB-log key_buffer_size=134217728 read_buffer_size=131072 max_used_connections=261 max_threads=5002 thread_count=263 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 103339422 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f774c019c58 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 = 0x7f789f3fbdb0 thread_stack 0x49000 Can't start addr2line /data/HCL/mariadb/bin/mariadbd(my_print_stacktrace+0x2e)[0x55a09daf98ae] /data/HCL/mariadb/bin/mariadbd(handle_fatal_signal+0x307)[0x55a09d4d7b47] /lib64/libpthread.so.0(+0x12990)[0x7f7d3e15f990] /lib64/libc.so.6(+0x24bc2)[0x7f7d3ce4bbc2] /data/HCL/mariadb/bin/mariadbd(_my_b_write+0x41)[0x55a09dadb021] /data/HCL/mariadb/bin/mariadbd(_ZN16Log_event_writer14write_internalEPKhm+0x16)[0x55a09d5e0606] /data/HCL/mariadb/bin/mariadbd(_ZN16Log_event_writer12write_headerEPhm+0xd0)[0x55a09d5e7eb0] /data/HCL/mariadb/bin/mariadbd(_ZN9Log_event12write_headerEm+0xc6)[0x55a09d5e86d6] /data/HCL/mariadb/bin/mariadbd(_ZN14Gtid_log_event5writeEv+0x14d)[0x55a09d5e934d] /data/HCL/mariadb/bin/mariadbd(_ZN13MYSQL_BIN_LOG11write_eventEP9Log_eventP17binlog_cache_dataP11st_io_cache+0x99)[0x55a09d5c36b9] /data/HCL/mariadb/bin/mariadbd(_ZN13MYSQL_BIN_LOG16write_gtid_eventEP3THDbby+0x195)[0x55a09d5c4695] /data/HCL/mariadb/bin/mariadbd(_ZN13MYSQL_BIN_LOG5writeEP9Log_eventPc+0x9a8)[0x55a09d5d5138] /data/HCL/mariadb/bin/mariadbd(_ZN3THD12binlog_queryENS_22enum_binlog_query_typeEPKcmbbbi+0x10a)[0x55a09d287fca] /data/HCL/mariadb/bin/mariadbd(_Z13write_bin_logP3THDbPKcmb+0xd5)[0x55a09d35faa5] /data/HCL/mariadb/bin/mariadbd(_Z21mysql_execute_commandP3THD+0x514f)[0x55a09d2d9a6f] /data/HCL/mariadb/bin/mariadbd(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x349)[0x55a09d2db169] /data/HCL/mariadb/bin/mariadbd(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x1905)[0x55a09d2dd215] /data/HCL/mariadb/bin/mariadbd(_Z10do_commandP3THD+0x10b)[0x55a09d2debdb] /data/HCL/mariadb/bin/mariadbd(_Z24do_handle_one_connectionP7CONNECTb+0x1b2)[0x55a09d3c9bc2] /data/HCL/mariadb/bin/mariadbd(handle_one_connection+0x34)[0x55a09d3c9e84] /data/HCL/mariadb/bin/mariadbd(+0xc6228d)[0x55a09d74d28d] /lib64/libpthread.so.0(+0x81ca)[0x7f7d3e1551ca] /lib64/libc.so.6(clone+0x43)[0x7f7d3ce608d3] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7f774c029748): FLUSH HOSTS Connection ID (thread ID): 1365252 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=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off 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 /data/HCL/mariadb/data 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 163489 163489 processes Max open files 37047 37047 files Max locked memory 65536 65536 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 163489 163489 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: |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e 250810 17:22:40 mysqld_safe Number of processes running now: 0 250810 17:22:40 mysqld_safe mysqld restarted 2025-08-10 17:22:41 0 [Note] /data/HCL/mariadb/bin/mariadbd (mysqld 10.5.9-MariaDB-log) starting as process 223205 ... 2025-08-10 17:22:41 0 [Note] mariadbd: Aria engine: starting recovery recovered pages: 0% 26% 58% 100% (0.0 seconds); tables to flush: 1 0 (0.0 seconds); 2025-08-10 17:22:41 0 [Note] mariadbd: Aria engine: recovery done 2025-08-10 17:22:41 0 [Note] InnoDB: innodb_page_size=32768 2025-08-10 17:22:41 0 [Note] InnoDB: Uses event mutexes 2025-08-10 17:22:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2025-08-10 17:22:41 0 [Note] InnoDB: Number of pools: 1 2025-08-10 17:22:41 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2025-08-10 17:22:41 0 [Note] InnoDB: Using Linux native AIO 2025-08-10 17:22:41 0 [Note] InnoDB: Initializing buffer pool, total size = 17179869184, chunk size = 134217728 2025-08-10 17:22:41 0 [Note] InnoDB: Completed initialization of buffer pool 2025-08-10 17:22:41 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2025-08-10 17:22:41 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=9438862538651,9438863160435 2025-08-10 17:22:44 0 [Note] InnoDB: Transaction 206913226 was in the XA prepared state. 2025-08-10 17:22:44 0 [Note] InnoDB: Transaction 206913227 was in the XA prepared state. 2025-08-10 17:22:44 0 [Note] InnoDB: Transaction 206913228 was in the XA prepared state. 2025-08-10 17:22:44 0 [Note] InnoDB: Transaction 206913229 was in the XA prepared state. 2025-08-10 17:22:44 0 [Note] InnoDB: Transaction 206913230 was in the XA prepared state. 2025-08-10 17:22:44 0 [Note] InnoDB: Transaction 206913232 was in the XA prepared state. 2025-08-10 17:22:44 0 [Note] InnoDB: Transaction 206913233 was in the XA prepared state. 2025-08-10 17:22:44 0 [Note] InnoDB: 7 transaction(s) which must be rolled back or cleaned up in total 0 row operations to undo 2025-08-10 17:22:44 0 [Note] InnoDB: Trx id counter is 206913237 2025-08-10 17:22:44 0 [Note] InnoDB: Starting final batch to recover 44558 pages from redo log. 2025-08-10 17:23:01 0 [Note] InnoDB: Last binlog file '/data/HCL/mariadb/mariadb-binlog/Starhuab_Prd.001772', position 15748085934 2025-08-10 17:23:01 0 [Note] InnoDB: 128 rollback segments are active. 2025-08-10 17:23:02 0 [Note] InnoDB: Starting in background the rollback of recovered transactions 2025-08-10 17:23:02 0 [Note] InnoDB: Rollback of non-prepared transactions completed 2025-08-10 17:23:02 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2025-08-10 17:23:02 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2025-08-10 17:23:02 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2025-08-10 17:23:02 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2025-08-10 17:23:02 0 [Note] InnoDB: 10.5.9 started; log sequence number 9439257669431; transaction id 206913238 2025-08-10 17:23:02 0 [Note] InnoDB: Creating #1 encryption thread id 139881883875072 total threads 4. 2025-08-10 17:23:02 0 [Note] InnoDB: Loading buffer pool(s) from /data/HCL/mariadb/data/ib_buffer_pool 2025-08-10 17:23:02 0 [Note] InnoDB: Creating #2 encryption thread id 139881875482368 total threads 4. 2025-08-10 17:23:02 0 [Note] InnoDB: Creating #3 encryption thread id 139881867089664 total threads 4. 2025-08-10 17:23:02 0 [Note] InnoDB: Creating #4 encryption thread id 139881514792704 total threads 4. 2025-08-10 17:23:02 0 [Note] Plugin 'FEEDBACK' is disabled. 2025-08-10 17:23:02 0 [Note] Using encryption key id 2 for temporary files 2025-08-10 17:23:02 0 [Note] InnoDB: Buffer pool(s) load completed at 250810 17:23:02 2025-08-10 17:24:24 0 [Note] InnoDB: Starting recovery for XA transactions... 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction 206913232 in prepared state after recovery 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction 206913233 in prepared state after recovery 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction 206913229 in prepared state after recovery 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction contains changes to 2 rows 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction 206913228 in prepared state after recovery 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction 206913227 in prepared state after recovery 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction 206913230 in prepared state after recovery 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction 206913226 in prepared state after recovery 2025-08-10 17:24:24 0 [Note] InnoDB: Transaction contains changes to 4 rows 2025-08-10 17:24:24 0 [Note] InnoDB: 7 transactions in prepared state after recovery 2025-08-10 17:24:24 0 [Note] Found 7 prepared transaction(s) in InnoDB 2025-08-10 17:24:24 0 [ERROR] Found 7 prepared transactions! It means that mysqld was not shut down properly last time and critical recovery information (last binlog or tc.log file) was manually deleted after a crash. You have to start mysqld with --tc-heuristic-recover switch to commit or rollback pending transactions. 2025-08-10 17:24:24 0 [ERROR] Aborting 250810 17:24:45 mysqld_safe mysqld from pid file /data/HCL/mariadb/pid/PRD_puawsapse1stardbs1001.pid ended 250810 18:35:26 mysqld_safe Starting mariadbd daemon with databases from /data/HCL/mariadb/data 2025-08-10 18:35:26 0 [Note] /data/HCL/mariadb/bin/mariadbd (mysqld 10.5.9-MariaDB-log) starting as process 224801 ... 2025-08-10 18:35:26 0 [Note] InnoDB: innodb_page_size=32768 2025-08-10 18:35:26 0 [Note] InnoDB: Uses event mutexes 2025-08-10 18:35:26 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2025-08-10 18:35:26 0 [Note] InnoDB: Number of pools: 1 2025-08-10 18:35:26 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2025-08-10 18:35:27 0 [Note] InnoDB: Using Linux native AIO 2025-08-10 18:35:27 0 [Note] InnoDB: Initializing buffer pool, total size = 17179869184, chunk size = 134217728 2025-08-10 18:35:27 0 [Note] InnoDB: Completed initialization of buffer pool 2025-08-10 18:35:27 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2025-08-10 18:35:27 0 [Note] InnoDB: Transaction 206913226 was in the XA prepared state. 2025-08-10 18:35:27 0 [Note] InnoDB: Transaction 206913227 was in the XA prepared state. 2025-08-10 18:35:27 0 [Note] InnoDB: Transaction 206913228 was in the XA prepared state. 2025-08-10 18:35:27 0 [Note] InnoDB: Transaction 206913229 was in the XA prepared state. 2025-08-10 18:35:27 0 [Note] InnoDB: Transaction 206913230 was in the XA prepared state. 2025-08-10 18:35:27 0 [Note] InnoDB: Transaction 206913232 was in the XA prepared state. 2025-08-10 18:35:27 0 [Note] InnoDB: Transaction 206913233 was in the XA prepared state. 2025-08-10 18:35:27 0 [Note] InnoDB: 7 transaction(s) which must be rolled back or cleaned up in total 0 row operations to undo 2025-08-10 18:35:27 0 [Note] InnoDB: Trx id counter is 206913237 2025-08-10 18:35:27 0 [Note] InnoDB: 128 rollback segments are active. 2025-08-10 18:35:27 0 [Note] InnoDB: Starting in background the rollback of recovered transactions 2025-08-10 18:35:27 0 [Note] InnoDB: Rollback of non-prepared transactions completed 2025-08-10 18:35:27 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2025-08-10 18:35:27 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2025-08-10 18:35:27 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2025-08-10 18:35:27 0 [Note] InnoDB: 10.5.9 started; log sequence number 9439473368600; transaction id 206913238 2025-08-10 18:35:27 0 [Note] InnoDB: Creating #1 encryption thread id 140220833969920 total threads 4. 2025-08-10 18:35:27 0 [Note] InnoDB: Loading buffer pool(s) from /data/HCL/mariadb/data/ib_buffer_pool 2025-08-10 18:35:27 0 [Note] InnoDB: Creating #2 encryption thread id 140220615882496 total threads 4. 2025-08-10 18:35:27 0 [Note] InnoDB: Creating #3 encryption thread id 140220603295488 total threads 4. 2025-08-10 18:35:27 0 [Note] InnoDB: Creating #4 encryption thread id 140220590708480 total threads 4. 2025-08-10 18:35:27 0 [Note] Plugin 'FEEDBACK' is disabled. 2025-08-10 18:35:27 0 [Note] Using encryption key id 2 for temporary files 2025-08-10 18:35:27 0 [Note] InnoDB: Buffer pool(s) load completed at 250810 18:35:27 2025-08-10 18:36:48 0 [Note] InnoDB: Starting recovery for XA transactions... 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction 206913232 in prepared state after recovery 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction 206913233 in prepared state after recovery 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction 206913229 in prepared state after recovery 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction contains changes to 2 rows 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction 206913228 in prepared state after recovery 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction 206913227 in prepared state after recovery 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction 206913230 in prepared state after recovery 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction 206913226 in prepared state after recovery 2025-08-10 18:36:48 0 [Note] InnoDB: Transaction contains changes to 4 rows 2025-08-10 18:36:48 0 [Note] InnoDB: 7 transactions in prepared state after recovery 2025-08-10 18:36:48 0 [Note] Found 7 prepared transaction(s) in InnoDB 2025-08-10 18:36:48 0 [ERROR] Found 7 prepared transactions! It means that mysqld was not shut down properly last time and critical recovery information (last binlog or tc.log file) was manually deleted after a crash. You have to start mysqld with --tc-heuristic-recover switch to commit or rollback pending transactions. 2025-08-10 18:36:48 0 [ERROR] Aborting 250810 18:36:52 mysqld_safe mysqld from pid file /data/HCL/mariadb/pid/PRD_puawsapse1stardbs1001.pid ended 2025-08-10 18:50:00 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 18:50:00 0 [Note] InnoDB: Transaction 206913230 in prepared state after recovery 2025-08-10 18:50:00 0 [Note] InnoDB: Transaction contains changes to 1 rows 2025-08-10 18:50:00 0 [Note] InnoDB: Transaction 206913226 in prepared state after recovery 2025-08-10 18:50:00 0 [Note] InnoDB: Transaction contains changes to 4 rows 2025-08-10 18:50:00 0 [Note] InnoDB: 7 transactions in prepared state after recovery 2025-08-10 18:50:00 0 [Note] Found 7 prepared transaction(s) in InnoDB 2025-08-10 18:50:00 0 [Note] InnoDB: Buffer pool(s) load completed at 250810 18:50:00 2025-08-10 18:50:00 0 [Note] Please restart mysqld without --tc-heuristic-recover 2025-08-10 18:51:20 0 [ERROR] Can't init tc log 2025-08-10 18:51:20 0 [ERROR] Aborting 250810 18:51:24 mysqld_safe mysqld from pid file /data/HCL/mariadb/pid/PRD_puawsapse1stardbs1001.pid ended 250810 18:53:26 mysqld_safe Starting mariadbd daemon with databases from /data/HCL/mariadb/data 2025-08-10 18:53:26 0 [Note] /data/HCL/mariadb/bin/mariadbd (mysqld 10.5.9-MariaDB-log) starting as process 225956 ... 2025-08-10 18:53:26 0 [Note] InnoDB: innodb_page_size=32768 2025-08-10 18:53:26 0 [Note] InnoDB: Uses event mutexes 2025-08-10 18:53:26 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2025-08-10 18:53:26 0 [Note] InnoDB: Number of pools: 1 2025-08-10 18:53:26 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2025-08-10 18:53:26 0 [Note] InnoDB: Using Linux native AIO 2025-08-10 18:53:26 0 [Note] InnoDB: Initializing buffer pool, total size = 17179869184, chunk size = 134217728 2025-08-10 18:53:26 0 [Note] InnoDB: Completed initialization of buffer pool 2025-08-10 18:53:26 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2025-08-10 18:53:27 0 [Note] InnoDB: 128 rollback segments are active. 2025-08-10 18:53:27 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2025-08-10 18:53:27 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2025-08-10 18:53:27 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2025-08-10 18:53:27 0 [Note] InnoDB: 10.5.9 started; log sequence number 9439473405770; transaction id 206913246 2025-08-10 18:53:27 0 [Note] InnoDB: Creating #1 encryption thread id 139725729945344 total threads 4. 2025-08-10 18:53:27 0 [Note] InnoDB: Loading buffer pool(s) from /data/HCL/mariadb/data/ib_buffer_pool 2025-08-10 18:53:27 0 [Note] InnoDB: Creating #2 encryption thread id 139725717358336 total threads 4. 2025-08-10 18:53:27 0 [Note] InnoDB: Creating #3 encryption thread id 139725704771328 total threads 4. 2025-08-10 18:53:27 0 [Note] InnoDB: Creating #4 encryption thread id 139725419575040 total threads 4. 2025-08-10 18:53:27 0 [Note] Plugin 'FEEDBACK' is disabled. 2025-08-10 18:53:27 0 [Note] Using encryption key id 2 for temporary files 2025-08-10 18:53:27 0 [Note] InnoDB: Buffer pool(s) load completed at 250810 18:53:27 2025-08-10 18:53:27 0 [Note] Server socket created on IP: '10.211.64.40'. 2025-08-10 18:53:27 2 [Note] Event Scheduler: scheduler thread started with id 2 2025-08-10 18:53:27 0 [Note] Reading of all Master_info entries succeeded 2025-08-10 18:53:27 0 [Note] Added new Master_info '' to hash table 2025-08-10 18:53:27 0 [Note] /data/HCL/mariadb/bin/mariadbd: ready for connections. Version: '10.5.9-MariaDB-log' socket: '/var/lib/mysql/mysqld.sock' port: 3306 MariaDB Server