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

--
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/6caf0007-d701-8c48-99d1-06d76570622d%40bbaw.de.

Reply via email to