Database backup may fail if using a different image than running mariadb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
In Progress
|
Medium
|
Unassigned |
Bug Description
# Steps to reproduce
* Deploy MariaDB using one mariadb-server container image
* Build or pull another mariadb-server image, containing a more recent version of mariadb
* Run kolla-ansible mariadb_backup
# Expected results
Backup completes successfully
# Actual results
Backup may fail with a segmentation fault.
For example:
[00] 2024-02-07 12:15:19 Finished backing up non-InnoDB tables and files
240207 12:15:19 [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:/
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.6.15-
key_
read_
max_
max_threads=1
thread_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0
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 = 0x0 thread_stack 0x49000
Printing to addr2line failed
mariabackup
mariabackup
/lib/
/lib/
mariabackup
mariabackup
mariabackup
mariabackup
/lib/
/lib/
mariabackup
The manual page at https:/
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 unlimited unlimited bytes
Max resident set unlimited unlimited bytes
Max processes unlimited unlimited processes
Max open files 1048576 1048576 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 4076729 4076729 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/share/
Kernel version: Linux version 5.15.0-87-generic (buildd@
/usr/
12 Done | gzip > $BACKUP_
stderr_lines: <omitted>
stdout: |-
Taking a full backup
stdout_lines: <omitted>
One option to avoid this could be to query the image that the MariaDB servers are running, and use the same one to perform the backup.