Hi Fabien,
in case nobody answered you yet: Could you post your fileset and/or
client configuration ? Im guessing that you accidentally missed
"python:" in your plugin line. The actual plugin that you want to use
is the python plugin. The mysql "plugin" just tells python what to do.
See https://docs.bareos.org/Appendix/Howtos.html#backup-mysql-python for
the documentation.
You want:
Client{
...
PluginDirectory=/usr/lib64/bareos/plugins
PluginNames="python3"
}
and
FileSet{
Name="mysql"
Include{
Options{
Signature=XXH128
Compression=LZ4
}
Plugin="python3"
":module_name=bareos_mysql_dump"
":db=test,wikidb"
#Plugin = "python3"
# ":module_name=bareos_mysql_dump"
# ":mysqlhost=dbhost"
# ":mysqluser=bareos"
# ":mysqlpassword=bareos"
}
}
Kind Regards
Sebastian Sura
Am 20.12.25 um 01:53 schrieb Fabién Jardinero:
Hello! I'm trying to get the MySQL plugin (bareos_mysql_dump) to work
but I get the error noted on the subject when trying to load it.
*Environment*:
# cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.6"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.6"
PRETTY_NAME="openSUSE Leap 15.6"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.6"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"
# mysql --version
mysql Ver 8.0.44 for Linux on x86_64 (MySQL Community Server - GPL)
# bareos-fd --version
25.0.2~pre13.add249aa9
*Mysql plugin downloaded from*
https://github.com/bareos/bareos/tree/master/contrib/fd-plugins/bareos_mysql_dump
*Installed Packages from Bareos repo (on Mysql FD client):*
*
*
i | bareos-common
i+ | bareos-filedaemon
i | bareos-filedaemon-python-plugins-common
i+ | bareos-filedaemon-python3-plugin
i+ | python3-bareos
*Debug:*
sudo -u bareos /usr/sbin/bareos-fd -d 150 -f
bareos-fd (10): lib/parse_conf.h:460-0 ConfigResourcesContainer: new
configuration_resources_ 0x55eafe45ab20
bareos-fd (100): lib/parse_conf.cc:181-0 config file =
/etc/bareos/bareos-fd.d/*/*.conf
bareos-fd (100): lib/lex.cc:295-0 glob
/etc/bareos/bareos-fd.d/*/*.conf: 4 files
bareos-fd (100): lib/lex.cc:194-0 open config file:
/etc/bareos/bareos-fd.d/client/mysql-fd.conf
bareos-fd (100): lib/lex.cc:194-0 open config file:
/etc/bareos/bareos-fd.d/director/bareos-dir.conf
bareos-fd (100): lib/lex.cc:194-0 open config file:
/etc/bareos/bareos-fd.d/director/bareos-mon.conf
bareos-fd (100): lib/lex.cc:194-0 open config file:
/etc/bareos/bareos-fd.d/messages/Standard.conf
bareos-fd (100): lib/lex.cc:295-0 glob
/etc/bareos/bareos-fd.d/*/*.conf: 4 files
bareos-fd (100): lib/lex.cc:194-0 open config file:
/etc/bareos/bareos-fd.d/client/mysql-fd.conf
bareos-fd (100): lib/lex.cc:194-0 open config file:
/etc/bareos/bareos-fd.d/director/bareos-dir.conf
bareos-fd (100): lib/lex.cc:194-0 open config file:
/etc/bareos/bareos-fd.d/director/bareos-mon.conf
bareos-fd (100): lib/lex.cc:194-0 open config file:
/etc/bareos/bareos-fd.d/messages/Standard.conf
mysql-fd-client (100): lib/bsys.cc:616-0 ReadStateFile seek to 192
mysql-fd-client (100): lib/recent_job_results_list.cc:57-0 Read
num_items=10
mysql-fd-client (50): lib/plugins.cc:211-0 LoadPlugins
mysql-fd-client (50): lib/plugins.cc:290-0 Found plugin:
name=python3-fd.so len=13
mysql-fd-client (150): filed/fd_plugins.cc:1823-0 IsPluginCompatible
called
mysql-fd-client (50): lib/plugins.cc:286-0 Rejected plugin:
want=-fd.so name=BareosFdMySQLclass.py len=21
mysql-fd-client (150): filed/fd_plugins.cc:1800-0 Loaded plugin:
python3-fd.so
mysql-fd-client (10): filed/socket_server.cc:122-0 filed: listening on
port 9102
mysql-fd-client (10): filed/socket_server.cc:122-0 filed: listening on
port 9102
mysql-fd-client (100): lib/bnet_server_tcp.cc:141-0 Addresses
host[ipv4;0.0.0.0;9102] host[ipv6;::;9102]
Can I make the debug more verbose to see why it's being rejected?
Permissions for the plugins are:
# ll
total 44
-rw-r--r-- 1 bareos bareos 9945 Dec 19 19:40 BareosFdMySQLclass.py
-rwxr-xr-x 1 bareos bareos 31632 Dec 16 05:44 python3-fd.so
Thanks in advance!
MfG.
--
You received this message because you are subscribed to the Google
Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/bareos-users/a18d8ec8-6603-4a42-80ce-9227b9d763fen%40googlegroups.com
<https://groups.google.com/d/msgid/bareos-users/a18d8ec8-6603-4a42-80ce-9227b9d763fen%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Sebastian [email protected]
Bareos GmbH & Co. KG Phone: +49 221 630693-0
https://www.bareos.com
Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/bareos-users/9465d93e-8baf-40ce-816e-8f1512da9cf8%40bareos.com.