bareos_mysql_dump fails on Bareos 25

7 views
Skip to first unread message

Fabién Jardinero

unread,
Dec 23, 2025, 9:46:59 PM (yesterday) Dec 23
to bareos-users
# cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.6"

# bareos-fd --version
25.0.2~pre13.add249aa9

We're considering Bareos with commercial support for our company, my head of IT requested a demo of a few options, I chose Bareos because I've worked with SUSE for a while, but I'm running into issues with the MySQL plugin.

I got this error (full verbose output, error in bold)

# sudo -u bareos /usr/sbin/bareos-fd -d 150 -f
bareos-fd (10): lib/parse_conf.h:460-0 ConfigResourcesContainer: new configuration_resources_ 0x55798b80df80
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/myself.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/myself.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=4
mysql-fd-client (50): lib/plugins.cc:211-0 LoadPlugins
mysql-fd-client (150): filed/fd_plugins.cc:1823-0 IsPluginCompatible called
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]
mysql-fd-client (100): lib/bsock.cc:85-0 Construct BareosSocket
mysql-fd-client (100): lib/tls_openssl_private.cc:57-0 Construct TlsOpenSslPrivate
mysql-fd-client (100): lib/tls_openssl_private.cc:618-0 Set tcp filedescriptor: <5>
mysql-fd-client (100): lib/tls_openssl_private.cc:636-0 Set protocol: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:558-0 Set ca_certfile: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:564-0 Set ca_certdir: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:570-0 Set crlfile_: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:576-0 Set certfile_: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:582-0 Set keyfile_: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:600-0 Set dhfile_: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:624-0 Set cipherlist: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:630-0 Set ciphersuites: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:606-0 Set Verify Peer: <false>
mysql-fd-client (100): lib/tls_openssl_private.cc:612-0 Set ktls: <false>
mysql-fd-client (100): lib/tls_openssl_private.cc:482-0 psk_server_cb. identitiy: R_DIRECTOR bareos-dir.
mysql-fd-client (100): lib/tls_openssl_private.cc:503-0 psk_server_cb. result: 32.
mysql-fd-client (50): lib/bnet.cc:141-0 TLS server negotiation established.
mysql-fd-client (110): filed/socket_server.cc:82-0 Conn: Hello Director bareos-dir calling

mysql-fd-client (110): filed/socket_server.cc:87-0 Got a DIR connection at 23-Dec-2025 21:32:47
mysql-fd-client (100): lib/jcr.cc:185-0 Construct JobControlRecord
mysql-fd-client (120): filed/dir_cmd.cc:571-0 Calling Authenticate
mysql-fd-client (50): lib/cram_md5.cc:106-0 send: auth cram-md5 <2057868628.1766543567@R_CLIENT::mysql-fd-client> ssl=2
mysql-fd-client (100): lib/cram_md5.cc:167-0 cram-get received: auth cram-md5 <115256084.1766543567@R_DIRECTOR::bareos-dir> ssl=2
mysql-fd-client (50): lib/cram_md5.cc:61-0 my_name: <R_CLIENT::mysql-fd-client> - challenge_name: <R_DIRECTOR::bareos-dir>
mysql-fd-client (99): lib/cram_md5.cc:232-0 sending resp to challenge: /++1OwVVpR9qjD+FCX+BCB
mysql-fd-client (120): filed/dir_cmd.cc:572-0 OK Authenticate
mysql-fd-client (100): filed/dir_cmd.cc:441-0 <dird: JobId=24 Job=mysql-job.2025-12-23_21.32.44_41 SDid=29 SDtime=1766368640 Authorization=IEPG-DLBH-ADAM-IAPF-MGKB-JLED-IIDF-FCCA ssl=4

mysql-fd-client (100): filed/dir_cmd.cc:460-0 Executing JobId= command.
mysql-fd-client (5): filed/dir_cmd.cc:1443-24 set sd auth key
mysql-fd-client (5): filed/dir_cmd.cc:1446-24 set sd ssl_policy to 4
mysql-fd-client (120): filed/dir_cmd.cc:937-24 JobId=24 Auth=IEPG-DLBH-ADAM-IAPF-MGKB-JLED-IIDF-FCCA TlsPolicy=4
mysql-fd-client (150): filed/fd_plugins.cc:1910-24 Instantiate plugin_ctx=0x7fb6c4018400 JobId=24
mysql-fd-client (150): filed/fd_plugins.cc:2361-24 fd-plugin: Plugin registered event=12
mysql-fd-client (150): filed/fd_plugins.cc:2361-24 fd-plugin: Plugin registered event=13
mysql-fd-client (150): filed/fd_plugins.cc:2361-24 fd-plugin: Plugin registered event=20
mysql-fd-client (150): filed/fd_plugins.cc:2361-24 fd-plugin: Plugin registered event=17
mysql-fd-client (150): filed/fd_plugins.cc:2361-24 fd-plugin: Plugin registered event=1
mysql-fd-client (150): filed/fd_plugins.cc:2361-24 fd-plugin: Plugin registered event=10
mysql-fd-client (150): filed/fd_plugins.cc:2361-24 fd-plugin: Plugin registered event=11
mysql-fd-client (150): filed/fd_plugins.cc:2361-24 fd-plugin: Plugin registered event=9
mysql-fd-client (150): filed/fd_plugins.cc:2361-24 fd-plugin: Plugin registered event=15
mysql-fd-client (150): filed/fd_plugins.cc:526-24 plugin_ctx=0x7fb6c4018400 JobId=24 event=1
mysql-fd-client (150): filed/fd_plugins.cc:304-24 IsEventForThisPlugin? name=(null) len=0 plugin=python3-fd.so plen=7
mysql-fd-client (100): filed/dir_cmd.cc:441-24 <dird: level = full  mtime_only=0

mysql-fd-client (100): filed/dir_cmd.cc:460-24 Executing level =  command.
mysql-fd-client (10): filed/dir_cmd.cc:1281-24 LevelCmd: level = full  mtime_only=0
mysql-fd-client (150): filed/fd_plugins.cc:526-24 plugin_ctx=0x7fb6c4018400 JobId=24 event=12
mysql-fd-client (150): filed/fd_plugins.cc:304-24 IsEventForThisPlugin? name=(null) len=0 plugin=python3-fd.so plen=7
mysql-fd-client (100): filed/dir_cmd.cc:441-24 <dird: fileset vss=1

mysql-fd-client (100): filed/dir_cmd.cc:460-24 Executing fileset command.
mysql-fd-client (100): filed/fileset.cc:529-24 I
mysql-fd-client (100): filed/fileset.cc:529-24 O MZf4HAX
mysql-fd-client (100): filed/fileset.cc:529-24 G python3:module_path=/usr/lib64/bareos/plugins:module_name=bareos_mysql_dump:db=jiradb
mysql-fd-client (100): filed/fileset.cc:529-24 N
mysql-fd-client (100): filed/fileset.cc:529-24 N
mysql-fd-client (100): filed/fileset.cc:529-24 N
mysql-fd-client (150): filed/fd_plugins.cc:630-24 plugin cmd=python3:module_path=/usr/lib64/bareos/plugins:module_name=bareos_mysql_dump:db=jiradb
mysql-fd-client (150): filed/fd_plugins.cc:526-24 plugin_ctx=0x7fb6c4018400 JobId=24 event=17
mysql-fd-client (150): filed/fd_plugins.cc:366-24 plugin=python3-fd.so plen=7 cmd=python3:module_path=/usr/lib64/bareos/plugins:module_name=bareos_mysql_dump:db=jiradb len=7
mysql-fd-client (150): filed/fd_plugins.cc:304-24 IsEventForThisPlugin? name=python3:module_path=/usr/lib64/bareos/plugins:module_name=bareos_mysql_dump:db=jiradb len=7 plugin=python3-fd.so plen=7
mysql-fd-client (150): filed/fd_plugins.cc:321-24 IsEventForThisPlugin: yes, full match (plugin=python3-fd.so, name=python3:module_path=/usr/lib64/bareos/plugins:module_name=bareos_mysql_dump:db=jiradb)
mysql-fd-client (150): filed/fd_plugins.cc:539-24 updated cmd = 'python3:module_path=/usr/lib64/bareos/plugins:module_name=bareos_mysql_dump:db=jiradb'
mysql-fd-client (150): include/python_plugin_modules_common.inc:66-24 python3-fd.so: python3-fd: Trying to load module with name bareos_mysql_dump
mysql-fd-client (150): include/python_plugin_modules_common.inc:74-24 python3-fd.so: python3-fd: Failed to load module with name bareos_mysql_dump
mysql-fd-client (150): include/python_plugins_common.inc:155-24 python3-fd.so: bareosfd: Traceback (most recent call last):
  File "/usr/lib64/bareos/plugins/bareos_mysql_dump/__init__.py", line 12, in <module>
    import BareosFdWrapper
ModuleNotFoundError: No module named 'BareosFdWrapper'

mysql-fd-client (150): filed/fd_plugins.cc:575-24 Cancel return from GeneratePluginEvent
mysql-fd-client (100): filed/dir_cmd.cc:441-24 <dird: getSecureEraseCmd

mysql-fd-client (100): filed/dir_cmd.cc:460-24 Executing getSecureEraseCmd command.
mysql-fd-client (100): filed/dir_cmd.cc:441-24 <dird: storage address=storage.local port=9103 ssl=4

mysql-fd-client (100): filed/dir_cmd.cc:460-24 Executing storage  command.
mysql-fd-client (100): lib/bsock.cc:85-24 Construct BareosSocket
mysql-fd-client (100): filed/dir_cmd.cc:1459-24 StorageCmd: storage address=storage.local port=9103 ssl=4
mysql-fd-client (110): filed/dir_cmd.cc:1474-24 Open storage: storage.local:9103 ssl=4
mysql-fd-client (100): lib/bsock.cc:161-24 All source addresses
mysql-fd-client (100): lib/bsock_tcp.cc:271-24 Current host[ipv4;192.168.101.1;9103]  All host[ipv4;192.168.101.1;9103]
mysql-fd-client (100): lib/bsock_tcp.cc:199-24 who=Storage daemon host=storage.local port=9103
mysql-fd-client (110): filed/dir_cmd.cc:1501-24 Connection OK to SD.
mysql-fd-client (100): lib/tls_openssl_private.cc:57-24 Construct TlsOpenSslPrivate
mysql-fd-client (100): lib/tls_openssl_private.cc:618-24 Set tcp filedescriptor: <6>
mysql-fd-client (100): lib/tls_openssl_private.cc:636-24 Set protocol: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:558-24 Set ca_certfile: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:564-24 Set ca_certdir: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:570-24 Set crlfile_: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:576-24 Set certfile_: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:582-24 Set keyfile_: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:600-24 Set dhfile_: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:624-24 Set cipherlist: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:630-24 Set ciphersuites: <>
mysql-fd-client (100): lib/tls_openssl_private.cc:606-24 Set Verify Peer: <false>
mysql-fd-client (50): lib/tls_openssl.cc:61-24 Preparing TLS_PSK CLIENT context for identity R_JOB mysql-job.2025-12-23_21.32.44_41
mysql-fd-client (100): lib/tls_openssl_private.cc:612-24 Set ktls: <false>
mysql-fd-client (100): lib/tls_openssl_private.cc:545-24 psk_client_cb. identity: R_JOB mysql-job.2025-12-23_21.32.44_41.
mysql-fd-client (50): lib/bnet.cc:192-24 TLS client negotiation established.
mysql-fd-client (50): lib/bsock.cc:391-24 TwoWayAuthenticate failed, because job was canceled.
mysql-fd-client (100): lib/bsock.cc:137-24 Destruct BareosSocket
mysql-fd-client (100): lib/tls_openssl_private.cc:80-24 Destruct TlsOpenSslPrivate
mysql-fd-client (100): filed/dir_cmd.cc:463-24 Quit command loop. Canceled=1
mysql-fd-client (110): filed/dir_cmd.cc:487-24 End FD msg: 2800 End Job TermCode=102 JobFiles=0 ReadBytes=0 JobBytes=0 Errors=1 VSS=0 Encrypt=0

mysql-fd-client (150): filed/fd_plugins.cc:1925-24 Free instance fd-plugin_ctx_list=0x7fb6c4018400 JobId=24
mysql-fd-client (100): lib/jcr.cc:378-24 Destruct JobControlRecord
mysql-fd-client (50): lib/crypto_openssl.cc:1544-24 SSL_get_error() returned ssl-error
mysql-fd-client (100): lib/tls_openssl_private.cc:80-24 Destruct TlsOpenSslPrivate
mysql-fd-client (100): lib/bsock.cc:137-24 Destruct BareosSocket
mysql-fd-client (100): lib/bsys.cc:659-24 write_last_jobs seek to 192
mysql-fd-client (100): lib/jcr.cc:268-24 FreeCommonJcr: 0x7fb6c4014b90
mysql-fd-client (100): filed/dir_cmd.cc:507-0 Done with FreeJcr


So I went ahead and fixed the BareosFdWrapper and BareosFdPluginBaseclass and managed to get rid of the error but then I was getting:

"AttributeError: module 'bareosfd' has no attribute 'PluginBase'"

I've tried many changes to the plugin .py files (I cannot remember how much now) and the issue is always comes back with:

"15 2025-12-23 21:24:28 File JobId 22: Because no backup data was received, no device was reserved. As such no Session Labels were written for this job."

I'm not well versed in Python (or programming at all) so I'm not really getting anywhere with trying to fix the code.
Unfortuantely I cannot use bareos-filedaemon-percona-xtrabackup-python-plugin because that works with MySQL 8.4 and I have MySQL 8.0
I can backup any other files from the same host, so the issue is not really the config but the plugin (seems to me, might be wrong).

I tried downloading an older version of Bareos but it seems that community support is only for current (I totally understand, free product= we are the testers), should I open a bug?
Any help would be greatly appreciated!

Bruno Friedmann (bruno-at-bareos)

unread,
4:04 AM (18 hours ago) 4:04 AM
to bareos-users
Hi Fabién
So the module you're trying to use is a community module which is supported / developed by the community. Bareos gmbH package it, that's all.
But anyway this module has a systemtest and should be tested before release (I will check if this is the case under SUSE).

What you might want to try instead perconna is the mariadb plugin which allow pitr backup/restore on mariadb and that one should work out of the box.

If you can yes, please open an issue on github, giving as much information as you can.

Regards

Bruno Friedmann (bruno-at-bareos)

unread,
5:13 AM (17 hours ago) 5:13 AM
to bareos-users
> Unfortuantely I cannot use bareos-filedaemon-percona-xtrabackup-python-plugin because that works with MySQL 8.4 and I have MySQL 8.0

For the right version, it seems version 8.0 can still be grabbed from perconna

Install that version to connect the plugin with.

Regards
Reply all
Reply to author
Forward
0 new messages