How can I reference two plugin names (python & python3) in 
"/etc/bareos/bareos-fd.d/client/myself.conf" file?

[email protected] schrieb am Sonntag, 11. September 2022 um 18:08:22 
UTC+2:

> I checked everything. Path, name, references, rights everything is 
> correct. Attached the contents in the files.
>
> ...
> root@dsme01:~# ls -la /usr/lib/bareos/plugins/
> insgesamt 332
> drwxr-xr-x 3 root root    4096 Sep 11 17:55 .
>
> drwxr-xr-x 6 root root    4096 Jan 13  2022 ..
> -rw-r--r-- 1 root root   18688 Dez 21  2021 autoxflate-sd.so
> -rw-r----- 1 root bareos  3770 Apr 27  2020 bareos_fd_consts.pyc
> -rw-r--r-- 1 root root    1728 Dez 21  2021 bareos-fd-ldap.py
> -rw-r----- 1 root bareos   622 Jan 14  2022 bareos-fd-ldap.pyc
> -rw-r--r-- 1 root root    1928 Dez 21  2021 bareos-fd-local-fileset.py
> -rw-r----- 1 root bareos  9778 Feb  7  2021 BareosFdMySQLclass.py
> -rw-r----- 1 root bareos  6337 Feb  7  2021 BareosFdMySQLclass.pyc
> -rw-r----- 1 root bareos  1006 Feb  7  2021 bareos-fd-mysql.py
> -rw-r----- 1 root bareos   583 Feb  7  2021 bareos-fd-mysql.pyc
> -rw-r--r-- 1 root root    1057 Mär 16  2019 bareos-fd-percona.py
> -rw-r--r-- 1 root root   19655 Mär 16  2019 BareosFdPercona.py
> -rw-r----- 1 root bareos   645 Mär 16  2019 bareos-fd-percona.pyc
> -rw-r----- 1 root bareos 13473 Mär 16  2019 BareosFdPercona.pyc
> -rw-r----- 1 root bareos   637 Feb  6  2021 
> bareos-fd-percona-xtrabackup.pyc
> -rw-r--r-- 1 root root   14822 Dez 21  2021 BareosFdPluginBaseclass.py
> -rw-r----- 1 root bareos 13635 Jan 14  2022 BareosFdPluginBaseclass.pyc
> -rw-r--r-- 1 root root   20235 Dez 21  2021 BareosFdPluginLDAP.py
> -rw-r----- 1 root bareos 14456 Jan 14  2022 BareosFdPluginLDAP.pyc
> -rw-r--r-- 1 root root   11204 Dez 21  2021 
> BareosFdPluginLocalFilesBaseclass.py
> -rw-r--r-- 1 root root    5173 Dez 21  2021 BareosFdPluginLocalFileset.py
> -rw-r----- 1 root bareos 13222 Feb  6  2021 
> BareosFdPluginPerconaXtraBackup.pyc
> -rw-r--r-- 1 root root   24240 Dez 21  2021 BareosFdPluginPostgres.py
> -rw-r----- 1 root bareos  2650 Dez 21  2021 bareos-fd-postgres.py
>
> -rw-r--r-- 1 root root    2625 Dez 21  2021 BareosFdWrapper.py
> -rw-r----- 1 root bareos  2915 Jan 14  2022 BareosFdWrapper.pyc
> -rw-r--r-- 1 root root   18920 Dez 21  2021 bpipe-fd.so
> drwxr-x--x 2 root bareos  4096 Sep 10 03:00 __pycache__
>
> -rw-r--r-- 1 root root   23240 Dez 21  2021 python3-fd.so
> -rw-r--r-- 1 root root   23240 Dez 21  2021 python-fd.so
> ...
> root@dsme01:~# cat /etc/bareos/bareos-fd.d/client/myself.conf 
> Client {
>   Name = dsme01-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/lib/bareos/plugins"
>   Plugin Names = "python3"
>
>   # if compatible is set to yes, we are compatible with bacula
>   # if set to no, new bareos features are enabled which is the default
>   # compatible = yes
>   FD Address = dsme01.intern.example.com
> }...
> root@dsme01:~# cat /etc/bareos/bareos-dir.d/fileset/plugin-postgresql.conf 
> FileSet {
>     Name = "plugin-postgresql"
>     Include  {
>         Options {
>             compression=GZIP
>             signature = MD5
>         }
>         Plugin = "python"
>                  ":module_name=bareos-fd-postgres"
>                  ":postgresDataDir=/var/lib/postgresql/11/main"
>                  ":walArchive=/var/lib/postgresql/11/main/wal_archives"
>     }
> }
> ...
> root@dsme01:~# cat /etc/bareos/bareos-dir.d/job/backup-postgresql.conf 
> Job {
>   Name = "backup-postgresql"
>   JobDefs = "DefaultJob"
>   FileSet = "plugin-postgresql"
> }...
> The following file is missing in the plugins directory
> ...
> bareos-fd-postgres.pyc
> ...
> Why?
> [email protected] schrieb am Freitag, 9. September 2022 um 18:19:01 
> UTC+2:
>
>> On 08.09.22 at 18:18 wrote [email protected]: 
>> > Hi, 
>> > i have installed the module names 
>> > "bareos-filedaemon-postgresql-python-plugin" 
>> > 
>> > ... 
>> > root@dsme01:~# dpkg -l bareos-filedaemon-postgresql-python-plugin 
>> > Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig 
>> Löschen/Halten 
>> > | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/ 
>> >          Halb installiert/Trigger erWartet/Trigger anhängig 
>> > |/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: 
>> > GROSS=schlecht) 
>> > ||/ Name                                       Version      Architektur 
>> >  Beschreibung 
>> > 
>> +++-==========================================-============-============-======================================================================
>>  
>>
>> > ii  bareos-filedaemon-postgresql-python-plugin 21.0.0-4     amd64       
>> >  Backup Archiving Recovery Open Sourced - file daemon PostgreSQL plugin 
>> > ... 
>> > When i start the plugin i see the folling error in the bareos dashboard 
>> > 
>> > ... 
>> > dsme01-fd JobId 1880: Fatal error: bareosfd: ImportError: No module 
>> > named bareos-fd-postgres 
>> > ... 
>> > Here the input in the plugin folder 
>>
>> Have you verified that you specify the correct module_path in the plugin 
>> configuration? 
>> See 
>>
>> https://docs.bareos.org/TasksAndConcepts/Plugins.html#configuration-of-the-postgresql-plugin
>>  
>>
>> The example in the documentation is based on another platform, where the 
>> module_path is /usr/lib**64**/bareos/plugins 
>>
>> Note: fortunately, the module_path configuration will no longer be 
>> necessary from Bareos >= 22. 
>> > 
>>
>>
>> > ... 
>> > root@dsme01:~# ls -la /usr/lib/bareos/plugins/ 
>> > insgesamt 328 
>> > drwxr-xr-x 2 root root    4096 Sep  8 18:08 . 
>> > drwxr-xr-x 6 root root    4096 Jan 13  2022 .. 
>> > -rw-r--r-- 1 root root   18688 Dez 21  2021 autoxflate-sd.so 
>> > -rw-r----- 1 root bareos  3770 Apr 27  2020 bareos_fd_consts.pyc 
>> > -rw-r--r-- 1 root root    1728 Dez 21  2021 bareos-fd-ldap.py 
>> > -rw-r----- 1 root bareos   622 Jan 14  2022 bareos-fd-ldap.pyc 
>> > -rw-r--r-- 1 root root    1928 Dez 21  2021 bareos-fd-local-fileset.py 
>> > -rw-r----- 1 root bareos  9778 Feb  7  2021 BareosFdMySQLclass.py 
>> > -rw-r----- 1 root bareos  6337 Feb  7  2021 BareosFdMySQLclass.pyc 
>> > -rw-r----- 1 root bareos  1006 Feb  7  2021 bareos-fd-mysql.py 
>> > -rw-r----- 1 root bareos   583 Feb  7  2021 bareos-fd-mysql.pyc 
>> > -rw-r--r-- 1 root root    1057 Mär 16  2019 bareos-fd-percona.py 
>> > -rw-r--r-- 1 root root   19655 Mär 16  2019 BareosFdPercona.py 
>> > -rw-r----- 1 root bareos   645 Mär 16  2019 bareos-fd-percona.pyc 
>> > -rw-r----- 1 root bareos 13473 Mär 16  2019 BareosFdPercona.pyc 
>> > -rw-r----- 1 root bareos   637 Feb  6  2021 
>> bareos-fd-percona-xtrabackup.pyc 
>> > -rw-r--r-- 1 root root   14822 Dez 21  2021 BareosFdPluginBaseclass.py 
>> > -rw-r----- 1 root bareos 13635 Jan 14  2022 BareosFdPluginBaseclass.pyc 
>> > -rw-r--r-- 1 root root   20235 Dez 21  2021 BareosFdPluginLDAP.py 
>> > -rw-r----- 1 root bareos 14456 Jan 14  2022 BareosFdPluginLDAP.pyc 
>> > -rw-r--r-- 1 root root   11204 Dez 21  2021 
>> > BareosFdPluginLocalFilesBaseclass.py 
>> > -rw-r--r-- 1 root root    5173 Dez 21  2021 
>> BareosFdPluginLocalFileset.py 
>> > -rw-r----- 1 root bareos 13222 Feb  6  2021 
>> > BareosFdPluginPerconaXtraBackup.pyc 
>> > -rw-r--r-- 1 root root   24240 Dez 21  2021 BareosFdPluginPostgres.py 
>> > -rw-r--r-- 1 root root    2650 Dez 21  2021 bareos-fd-postgres.py 
>> > -rw-r--r-- 1 root root    2625 Dez 21  2021 BareosFdWrapper.py 
>> > -rw-r----- 1 root bareos  2915 Jan 14  2022 BareosFdWrapper.pyc 
>> > -rw-r--r-- 1 root root   18920 Dez 21  2021 bpipe-fd.so 
>> > -rw-r--r-- 1 root root   23240 Dez 21  2021 python3-fd.so 
>> > -rw-r--r-- 1 root root   23240 Dez 21  2021 python-fd.so 
>> > ... 
>> > 
>> > What can i do? 
>> > 
>> > Thanks for the hint 
>> > 
>> > -- 
>> > 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] 
>> > <mailto:[email protected]>. 
>> > To view this discussion on the web visit 
>> > 
>> https://groups.google.com/d/msgid/bareos-users/7946203a-4665-4525-ae8c-5175ef3cdd4bn%40googlegroups.com
>>  
>> > <
>> https://groups.google.com/d/msgid/bareos-users/7946203a-4665-4525-ae8c-5175ef3cdd4bn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>  
>>
>>
>>
>> -- 
>> Jörg Steffens [email protected] 
>> Bareos GmbH & Co. KG Phone: +49 221 630693-91 <+49%20221%2063069391> 
>> http://www.bareos.com Fax: +49 221 630693-10 <+49%20221%2063069310> 
>>
>> Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 
>> Komplementär: Bareos Verwaltungs-GmbH 
>> Geschäftsführer: 
>> S. Dühr, M. Außendorf, Jörg Steffens, P. 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 on the web visit 
https://groups.google.com/d/msgid/bareos-users/24a2d7a1-e097-47c6-8641-af8d1f474639n%40googlegroups.com.

Reply via email to