[Bro] BROKER + CLUSTER - stuck (Mike Dopheide)
fatema bannatwala
fatema.bannatwala at gmail.com
Mon Mar 13 08:10:18 PDT 2017
Hi Dan,
Thanks for the patch, finally tested on production cluster and seems to be
working fine.
Thanks,
Fatema.
On Wed, Mar 8, 2017 at 7:07 PM, fatema bannatwala <
fatema.bannatwala at gmail.com> wrote:
> Deploy works fine when I run it on our standalone test instance, but hangs
> when run on prod cluster, so it might be the cluster specific issue?
> Thanks Dan for providing the patch, will try it on Bro cluster and then
> let you know. :)
>
>
>
>
> On Wed, Mar 8, 2017 at 6:55 PM, Daniel Thayer <dnthayer at illinois.edu>
> wrote:
>
>> Although I couldn't reproduce this problem, I have a
>> possible fix. If you decide to try it, let me know
>> if it fixes the problem.
>>
>> Apply the following patch to
>> /usr/local/bro/share/bro/broctl/check.bro
>>
>> --- check.bro.orig 2017-03-08 17:49:53.000000000 -0600
>> +++ check.bro 2017-03-08 17:49:37.000000000 -0600
>> @@ -17,3 +17,6 @@
>> Log::remove_filter(LoadedScripts::LOG, "default");
>> Log::add_filter(LoadedScripts::LOG, f);
>> }
>> +
>> +# This prevents "broctl scripts" from hanging.
>> +redef exit_only_after_terminate = F;
>>
>>
>>
>> And apply the following patch to
>> /usr/local/bro/share/broctl/scripts/check-config
>>
>> --- check-config.orig 2017-03-08 17:51:54.000000000 -0600
>> +++ check-config 2017-03-08 17:52:05.000000000 -0600
>> @@ -45,7 +45,13 @@
>> echo $@ >.cmdline
>> touch .checking
>>
>> -"${bro}" "$@"
>> +check_option="-a"
>> +if [ "$print_loaded_scripts" = "1" ]; then
>> + # No bro logs are created with "-a", so don't use it with "broctl
>> scripts".
>> + check_option=
>> +fi
>> +
>> +"${bro}" $check_option "$@"
>> rc=$?
>>
>> if [ $rc -eq 0 -a "$print_loaded_scripts" = "1" ]; then
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20170313/b51fa53e/attachment.html
More information about the Bro
mailing list