Hello,
I´m trying to run a console command from an admin job and this is crashing
my director. A simple Console = "list jobs", inside a RunScript directive,
crashes the director (bacula-dir dead but subsys locked) and it generates a
"Bacula GDB traceback of bacula-dir on myDirector" mail.
Below is my Admin Job with a "list jobs" console command. My goal is a
"list nextvol job=\"my\job\" days=1" command. Tried "list jobs", "list
clients", and so on, all of them result in the same. When it runs on client
side this does not happen. When I enter bconsole after restarting bacula, I
get the messages:
17-Apr 17:24 myDirector-dir JobId 17821: console command: run BeforeJob
"list jobs"
17-Apr 17:24 myDirector-dir JobId 0: Automatically selected Catalog:
MyCatalog
17-Apr 17:24 myDirector-dir JobId 0: Using Catalog "MyCatalog"
Job {
Name = "NextVolume"
Type = Admin
Client = myclient-fd
FileSet = "NextVolumeFileSet"
Storage = "mystorage-sd"
Messages = Standard
Max Start Delay = 0
Max Run Sched Time = 12 hours
Pool = Scratch
Priority = 30
Schedule = "NextVolumeCycle"
RunScript {
RunsWhen = Before
RunsOnClient = no
Fail Job on Error = no
Console = "list jobs"
}
}
########################################################
#
# FileSet for Job NextVolume
#
########################################################
FileSet {
Name = "NextVolumeFileSet"
Include {
Options {
signature = MD5
}
}
}
Thank you!
Ana
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users