Skip to content

plugin:mariabackup will failed with mariadb 11+ #1775

@bruno-at-bareos

Description

@bruno-at-bareos

Bareos component version

  1. bareos > 22.0
  2. mariadb >= 11.0

Steps to reproduce

  1. install bareos version 23
  2. install mariadb version 11+
  3. setup backup with mariabackup plugin
  4. see error raised during backups

Expected results

Terminated jobs

Actual results

The message below appears when you try to make an incremental mariadb backup. I think the backup work fails because of the warning.

Fatal error: python3-fd-mod: Could not get LSN with command "echo 'SHOW ENGINE INNODB STATUS' | mysql --defaults-extra-file=/root/.my.cnf -r | grep 'Log sequence number' | awk '{ print $4 }'", Error: b"mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead\n"

Environment

- OS: `Linux Ubuntu 22.04`
- component: mariadb version: 11.0.3-MariaDB-1:11.0.3+maria~ubu2204 mariadb.org binary distribution

Relevant log output

No response

Relevant traces output

No response

Anything else?

Mariadb is getting ride of old names, so the long deprecated mysql* and also the symlink mariabackup should be replaced by the real binary name
mariabackup -> mariadb-backup
mysql -> mariadb
....

Initial report https://bugs.bareos.org/view.php?id=1568

An experimental branch exist with some changes may serve as a basis
https://github.com/bruno-at-bareos/bareos/tree/dev/bruno/master/fix-mariadb-11%2B

Metadata

Metadata

Labels

bugThis addresses a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions