Skip to content

[24.0.0] MariaDB python module broken, when specify an config file #2148

@mdc-webdb

Description

@mdc-webdb

Bareos component version

bareos-fd --version
24.0.0

Steps to reproduce

Fileset:

...
 Plugin = "python"
             ":module_path=/usr/lib64/bareos/plugins"
             ":module_name=bareos-fd-mariabackup"
             ":mycnf=/etc/bareos/mariadb.cnf"
...

Expected results

Working backup

Actual results

Error:
python3-fd-mod: Unable to determine mariadb version

Environment

- OS: RHEL 9.5
- component: MariaDB 10.6

Relevant log output

Relevant traces output

Anything else?

Running debug mode, I see that the mycnf option was not set:

(100): module/bareosfd.cc:1422-327777 python3-fd.so: python3-fd-mod: mariadb version check: "['mariadb', '-r', '--batch', '--skip-column-names', '--execute', 'select version();']"  
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)                                                                                                                                 
(100): module/bareosfd.cc:1422-327777 python3-fd.so: python3-fd-mod: No mariadb version detected: Command '['mariadb', '-r', '--batch', '--skip-column-names', '--execute', 'select v
ersion();']' returned non-zero exit status 1.

The needed option --defaults-extra-file=... are not set. See here

Metadata

Metadata

Labels

bugThis addresses a bug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions