View Issue Details

IDProjectCategoryView StatusLast Update
0001521bareos-corefile daemonpublic2023-07-03 14:13
ReporterTomasz_Filipek Assigned Tobruno-at-bareos  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionnot fixable 
PlatformLinuxOSRHEL (and clones)OS Version8
Product Version22.0.2 
Summary0001521: mariadb - problem with plugin
DescriptionHi,

I have problem with backup on mariadb plugin.

Log:
06-Mar 15:46 ala-fd JobId 22: Fatal error: filed/fd_plugins.cc:664 PluginSave: Command plugin "python:module_name=bareos-fd-mariabackup:mycnf=/root/.my.cnf" requested, but is not loaded.

 /etc/bareos/bareos-fd.d/client/myself.conf:

Client {
  Name = ala-fd
  Maximum Concurrent Jobs = 20

  # remove comment from "Plugin Directory" to load plugins from specified directory.
  # if "Plugin Names" is defined, only the specified plugins will be loaded,
  # otherwise all filedaemon plugins (*-fd.so) from the "Plugin Directory".
  #
  Plugin Directory = "/usr/lib64/bareos/plugins"
  Plugin Names = "python"
  #Plugin Directory = /usr/lib64/bareos/plugins
  #Plugin Names = "python"
}

Fileset:
FileSet {
    Name = "mysql-plugin"
    Include {
        Options {
            signature = MD5
        }
        #...
        Plugin = "python"
                 ":module_name=bareos-fd-mariabackup"
                 ":mycnf=/root/.my.cnf"
    }
}

Installed RPMs:
bareos-filedaemon-mariabackup-python-plugin-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-client-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-director-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-database-common-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-storage-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-filedaemon-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-webui-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-database-tools-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-filedaemon-python-plugins-common-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-common-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-tools-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-bconsole-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-database-postgresql-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-contrib-filedaemon-python-plugins-22.0.3~pre33.543c368c6-26.el8.x86_64
bareos-filedaemon-python3-plugin-22.0.3~pre33.543c368c6-26.el8.x86_64

Plugins directory:
drwxr-xr-x. 5 root root 4096 Mar 6 15:45 .
drwxr-xr-x. 4 root root 4096 Mar 6 14:04 ..
drwxr-xr-x. 2 root root 4096 Mar 6 15:45 bareos_mysql_dump
drwxr-xr-x. 6 root root 4096 Mar 6 15:45 bareos_tasks
drwxr-xr-x. 2 root root 4096 Mar 6 15:45 openvz7
-rwxr-xr-x. 1 root root 20648 Mar 6 10:54 autoxflate-sd.so
-rw-r--r--. 1 root root 1928 Mar 6 10:42 bareos-fd-local-fileset.py
-rw-r--r--. 1 root root 1544 Mar 6 10:42 bareos-fd-mariabackup.py
-rw-r--r--. 1 root root 15425 Mar 6 10:42 BareosFdPluginBaseclass.py
-rw-r--r--. 1 root root 11749 Mar 6 10:42 BareosFdPluginLocalFilesBaseclass.py
-rw-r--r--. 1 root root 8020 Mar 6 10:42 BareosFdPluginLocalFileset.py
-rw-r--r--. 1 root root 20092 Mar 6 10:42 BareosFdPluginMariabackup.py
-rw-r--r--. 1 root root 3113 Mar 6 10:42 BareosFdWrapper.py
-rwxr-xr-x. 1 root root 20984 Mar 6 10:54 bpipe-fd.so
-rwxr-xr-x. 1 root root 25496 Mar 6 10:54 python3-fd.so
Steps To ReproduceRun mariadb backup
Tagsmariadb

Activities

bruno-at-bareos

bruno-at-bareos

2023-03-06 16:36

manager   ~0004897

If the file /root/.my.cnf doesn't exist on the FD you are saving with the plugin then it will failed be also sure bareos-fd daemon is allowed to read that file.
Not a bug.
Tomasz_Filipek

Tomasz_Filipek

2023-03-06 18:53

reporter   ~0004898

Last edited: 2023-03-06 19:00

File exist:

[root@ala schedule]# cat /root/.my.cnf
[client]
user=mariabackup
password=XXX
host=127.0.0.1

FD can read this file:

[root@ala schedule]# ps aux|grep bare
root 808396 0.1 0.0 511696 10428 ? Ssl 18:13 0:02 /usr/sbin/bareos-fd -f
bareos 808400 0.1 0.0 510584 11180 ? Ssl 18:13 0:04 /usr/sbin/bareos-sd -f
bareos 808404 0.1 0.0 1161836 15704 ? Ssl 18:13 0:02 /usr/sbin/bareos-dir -f


This configuration worked in version 21.
Today I freshly installed version 22 and it doesn't work.
bruno-at-bareos

bruno-at-bareos

2023-03-07 13:19

manager   ~0004904

It seems you are using python3 so the Plugin Names = "python3" should be used instead of python.
status client should show if the plugin are loaded.
bruno-at-bareos

bruno-at-bareos

2023-06-26 10:14

manager   ~0005094

could you provide the status client after having changed the plugin loading in bareos-fd to python3 please ?
bruno-at-bareos

bruno-at-bareos

2023-07-03 14:13

manager   ~0005112

No answer

Issue History

Date Modified Username Field Change
2023-03-06 15:59 Tomasz_Filipek New Issue
2023-03-06 15:59 Tomasz_Filipek Tag Attached: mariadb
2023-03-06 16:36 bruno-at-bareos Note Added: 0004897
2023-03-06 18:53 Tomasz_Filipek Note Added: 0004898
2023-03-06 18:55 Tomasz_Filipek Note Edited: 0004898
2023-03-06 19:00 Tomasz_Filipek Note Edited: 0004898
2023-03-07 13:19 bruno-at-bareos Note Added: 0004904
2023-06-26 10:14 bruno-at-bareos Assigned To => bruno-at-bareos
2023-06-26 10:14 bruno-at-bareos Status new => feedback
2023-06-26 10:14 bruno-at-bareos Note Added: 0005094
2023-07-03 14:13 bruno-at-bareos Status feedback => closed
2023-07-03 14:13 bruno-at-bareos Resolution open => not fixable
2023-07-03 14:13 bruno-at-bareos Note Added: 0005112