Ldpa Plugin problem

34 views
Skip to first unread message

Silvio Schloeffel

unread,
Dec 15, 2023, 5:16:03 AM12/15/23
to bareos...@googlegroups.com
Hi,


updated the server to
bareos-filedaemon-python3-plugin-23.0.0~pre1334.639dd301d-16.el8.x86_64
and since then ldap backup failed with:

storage-serv-fd JobId 10202: Fatal error: bareosfd: Traceback (most
recent call last):
File "/usr/lib64/bareos/plugins/BareosFdWrapper.py", line 55, in
parse_plugin_definition
return bareos_fd_plugin_object.parse_plugin_definition(plugindef)
File "/usr/lib64/bareos/plugins/bareos-fd-ldap.py", line 77, in
parse_plugin_definition
super(BareosFdPluginLDAP, self).parse_plugin_definition(plugindef)
File "/usr/lib64/bareos/plugins/BareosFdPluginBaseclass.py", line 224,
in parse_plugin_definition
plugindef_options = parse_plugindef_string(plugindef)
File "/usr/lib64/bareos/plugins/BareosFdPluginBaseclass.py", line 52, in
parse_plugindef_string
val = val[:-1] + ":" + plugin_options.pop(0)
NameError: name 'plugin_options' is not defined


Checked with the last updated version
bareos-filedaemon-python3-plugin-23.0.0~pre1368.230e60dd6-18.el8.x86_64
today and the error still exists.

Best

Silvio


OpenPGP_signature.asc

Andreas Rogge

unread,
Dec 18, 2023, 4:09:28 AM12/18/23
to bareos...@googlegroups.com
Hi Silvio,

I guess in your plugin-options in the FileSet you have a masked colon
(:) on one of the options. I probably broke that with the recent PR
improving plugin configuration.
I'll come up with a solution today with which you will be able to
hot-fix your installation.
Hopefully we will have fixed packages sometime later this week.

Best Regards,
Andreas

Am 15.12.23 um 11:15 schrieb Silvio Schloeffel:
--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://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
OpenPGP_0x00314758866BD59E.asc
OpenPGP_signature.asc

Andreas Rogge

unread,
Dec 18, 2023, 4:45:37 AM12/18/23
to bareos...@googlegroups.com
Hi Silvio,

you have to options for a quick hot-fix:
1) just change "plugin_options" to "parts" in BareosFdPluginBaseclass on
line 52
2) replace your BareosFdPluginBaseclass.py with this one:
https://raw.githubusercontent.com/bareos/bareos/bc86f2be270fc2bf7091100a8ad1017bf59aa403/core/src/plugins/filed/python/pyfiles/BareosFdPluginBaseclass.py

As I said, I hope we'll have packages for the fix shortly.

Best Regards,
Andreas
OpenPGP_0x00314758866BD59E.asc
OpenPGP_signature.asc

Silvio Schloeffel

unread,
Dec 18, 2023, 4:54:56 AM12/18/23
to bareos...@googlegroups.com
Hi Andreas,

thanks for the solutions.
Will check it in the afternoon.

Best

Silvio



Am 18.12.23 um 10:45 schrieb Andreas Rogge:
> Hi Silvio,
>
> you have to options for a quick hot-fix:
> 1) just change "plugin_options" to "parts" in BareosFdPluginBaseclass on
> line 52
> 2) replace your BareosFdPluginBaseclass.py with this one:
> https://raw.githubusercontent.com/bareos/bareos/bc86f2be270fc2bf7091100a8ad1017bf59aa403/core/src/plugins/filed/python/pyfiles/BareosFdPluginBaseclass.py
>
> As I said, I hope we'll have packages for the fix shortly.
>
> Best Regards,
> Andreas

--
Silvio Schloeffel | CIO
silvio.s...@musicdna.com
Tel. +49 3677 2094 840

the evolution of music continues

MusicDNA GmbH
Schwanitzstrasse 6,
98693 Ilmenau, Germany
Phone: +49 3677 2094 840 | Fax: +49 322 298 222 00

Steuer-NR.: DE 156/114/04317

Handelsregisterzeichen: HRB Jena 517208,
Geschäftsführer: Sebastian Schmidt
www.musicdna.com
OpenPGP_signature.asc

Silvio Schloeffel

unread,
Dec 21, 2023, 7:14:28 AM12/21/23
to bareos...@googlegroups.com
Thanks Andreas,

version 23.0.1~pre7.606b211eb-33 finally fixed the problem.

Best

Silvio




Am 18.12.23 um 10:45 schrieb Andreas Rogge:
OpenPGP_signature.asc
Reply all
Reply to author
Forward
0 new messages