Kai Zimmer
unread,Jun 10, 2022, 5:30:30 AM6/10/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bareos-users
Hi,
i'm stuck trying to get a "run job" executed on a bareos client. I tried
"Run Script", "ClientRunBeforeJob" and "Client Run Before Job" with the
same result - no execution.
Bareos-dir (server) version 19.2.7-2 on Debian Bullseye
Bareos-fd (client) version 19.2.7.-2 on Ubuntu 20.04.1
The logfile (setdebug level=100 enabled) doesn't even mention "runscript".
The job definition looks like this:
Job {
Name = "KiraDstarSources"
JobDefs = "KiraDstarSourcesJob"
Client = "kira-fd"
Run Script {
Command = "bash -c 'touch /tmp/bareos_dstar_sources.tmp'"
Runs On Client = Yes
Runs When = Before
}
}
When i switch "Runs On Client" to "No" (so it runs on the serverside),
the job is properly executed:
locutus-dir (50): dird/jobq.cc:907-0 Inc Job=KiraDstarSources rncj=1
locutus-dir (100): cats/sql_query.cc:131-437 called: bool
BareosDb::SqlQuery(const char*, int) with query UPDATE Job SET
JobStatus='R',Level='F',StartTime='2022-06-10
11:02:01',ClientId=31,JobTDate=1654851721,PoolId=5,FileSetId=71 WHERE
JobId=437
locutus-dir (100): lib/runscript.cc:228-437 runscript: running a
RunScript object type=124
locutus-dir (100): lib/runscript.cc:236-437 runscript: running 'bash -c
'touch /tmp/bareos_dstar_sources.tmp''...
locutus-dir (100): cats/sql_query.cc:131-437 called: bool
BareosDb::SqlQuery(const char*, int) with query INSERT INTO Log (JobId,
Time, LogText) VALUES (437,'2022-06-10 11:02:01','locutus-dir JobId 437:
shell command: run BeforeJob "bash -c ''touch
/tmp/bareos_dstar_sources.tmp''"
')
locutus-dir (100): lib/runscript.cc:267-437 runscript OK
Any hints what might be the problem?
Best regards,
Kai