Bacula-users

[Bacula-users] Admin Job with console command crashing director

2013-04-17 16:44:13
Subject: [Bacula-users] Admin Job with console command crashing director
From: Ana Emília Machado de Arruda <emiliaarruda AT gmail DOT com>
To: "Bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 17 Apr 2013 17:41:06 -0300
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users