I have some more information. Bareos runs on a Ubuntu 16.04 server. The two 
clients named DA and AO are Windows 10 desktops. 
When I start the trigger script if the clients have made backups in the last 24 
hours, a correct message like this one appears
backup-AO-fd: skipped, recent backups available (2018-03-29 09:40:26: 
jobid=5392, level=F, status=T)

otherwise this error occurs:

DEBUG lowlevel.send: list jobs client=DA-fd hours=24
DEBUG lowlevel.__get_header:   remaining header len: 4
DEBUG lowlevel.__set_status: Start command execution (-16)
DEBUG lowlevel.__get_header:   remaining header len: 4
DEBUG lowlevel.__set_status: Command succeeded (-15)
DEBUG lowlevel.__get_header:   remaining header len: 4
DEBUG lowlevel.recv_submsg:   submsg len: 48
DEBUG lowlevel.__get_header:   remaining header len: 4
DEBUG lowlevel.__set_status: Server ready and waiting (-18)
DEBUG lowlevel.send: list jobs client=DA-fd hours=24 last
DEBUG lowlevel.__get_header:   remaining header len: 4
DEBUG lowlevel.__set_status: Start command execution (-16)
DEBUG lowlevel.__get_header:   remaining header len: 4
DEBUG lowlevel.__set_status: Command succeeded (-15)
DEBUG lowlevel.__get_header:   remaining header len: 4
DEBUG lowlevel.recv_submsg:   submsg len: 48
DEBUG lowlevel.__get_header:   remaining header len: 4
DEBUG lowlevel.__set_status: Server ready and waiting (-18)
Traceback (most recent call last):
  File "./triggerjob.py", line 73, in <module>
    trigger(director, jobs, clients)
  File "./triggerjob.py", line 26, in trigger
    job = director.call('list jobs client={} hours=24 
last'.format(client))['jobs'][0]
IndexError: list index out of range

I don't have much programming experience and can't get any further.

-- 
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