On 22.11.2017 at 22:36 wrote JB:
> Hi there!
> 
> It's on it's way, and doesn't work correctly - at the moment.
> 
> I'm runnung the latest releast (16.2) and I've installed:
> python-bareos (17.2)
> bareos-director-python-plugin
> bareos-filedaemon-python-plugin
> bareos-filedaemon-ldap-python-plugin
> bareos-storage-python-plugin
> 
> To test local backups I updated these files:
> 
> /etc/bareos/bareos-dir.d/client/Bareos-fd.conf
>   Connection From Client To Director = yes
>   Heartbeat Interval = 60
> 
> /etc/bareos/bareos-fd.d/director/bareos-dir.conf
>   Address = 127.0.0.1
>   Connection From Client To Director = yes
> 
> bconsole is showing one connected client: bareos-fd. Yes! Great!
> 
> If if run the script (triggerjob.py -d --password "supergeheimespasswort" 
> 127.0.0.1) it get this:
> 
> Traceback (most recent call last):
>   File "/usr/local/bin/triggerjob.py", line 72, in <module>
>     clients = get_connected_clients(director)
>   File "/usr/local/bin/triggerjob.py", line 16, in get_connected_clients
>     clients = [ client['name'] for client in result ]
> TypeError: string indices must be integers
> 
> So, I'm a Windows guy, rather old and German. This drives me crazy. :-)
> At the moment. ;-)
> 
> I'm nearly shure that I did something wrong, but at the moment I've got no 
> idea.
> I hope it's rather easy for a linux guy. Isn't it?

The reason for this is a bug in bareos-16.2.4. It has been fixed in
16.2.5 (and of course bareos-17.2).

-- 
 Jörg Steffens                   [email protected]
 Bareos GmbH & Co. KG            Phone: +49 221 630693-91
 http://www.bareos.com           Fax:   +49 221 630693-10

 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 post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to