View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001521 | bareos-core | file daemon | public | 2023-03-06 15:59 | 2023-07-03 14:13 |
Reporter | Tomasz_Filipek | Assigned To | bruno-at-bareos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | not fixable | ||
Platform | Linux | OS | RHEL (and clones) | OS Version | 8 |
Product Version | 22.0.2 | ||||
Summary | 0001521: mariadb - problem with plugin | ||||
Description | Hi, 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 Reproduce | Run mariadb backup | ||||
Tags | mariadb | ||||
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. |
|
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. |
|
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. |
|
could you provide the status client after having changed the plugin loading in bareos-fd to python3 please ? | |
No answer | |
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 |