# all broctl instances are running yet broctl status shows stopped

**URL:** <https://community.zeek.org/t/all-broctl-instances-are-running-yet-broctl-status-shows-stopped/5227>\
**Category:** Zeek\
**Created:** [March 20, 2018, 11:19am UTC](https://community.zeek.org/t/all-broctl-instances-are-running-yet-broctl-status-shows-stopped/5227 "2018-03-20T11:19:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![william\_de\_ping](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william\_de\_ping](https://community.zeek.org/u/william_de_ping)\
**Post date:** [March 20, 2018, 11:19am UTC](https://community.zeek.org/t/all-broctl-instances-are-running-yet-broctl-status-shows-stopped/5227/1 "2018-03-20T11:19:11Z")

</div>

Hi all,

When running bro release 2.5 in cluster mode (manager,proxy and several workers) I have a strange issue :

new logs are written to spool/manager and according to pgrep -c bro all instances are running, yet “broctl status” shows that all instances are stopped.

For some reason about an hour after using the “broctl deploy”, this issue occurs again.

Any thoughts on what might cause this behavior ?

I see no fix for this on newer versions.

Thank you

B

---

<div class="post-metadata">

**Author:** ![Glenn.Larratt](https://avatars.discourse-cdn.com/v4/letter/g/49beb7/32.png) [@Glenn.Larratt](https://community.zeek.org/u/Glenn.Larratt)\
**Post date:** [March 20, 2018, 1:27pm UTC](https://community.zeek.org/t/all-broctl-instances-are-running-yet-broctl-status-shows-stopped/5227/2 "2018-03-20T13:27:18Z")

</div>

I've seen this as well, with the additional behavior that if I attempt a "broctl start", the processes all immediately crash.

I have had some success with doing "broctl stop", manually killing the remaining (unmanaged?) processes on each listener, \*then\* doing a "broctl start".

N.B. We are woefully behind, at release 2.3 .

&nbsp;&nbsp;&nbsp;-g

---

<div class="post-metadata">

**Author:** ![Daniel\_Thayer](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Daniel\_Thayer](https://community.zeek.org/u/Daniel_Thayer)\
**Post date:** [March 20, 2018, 2:19pm UTC](https://community.zeek.org/t/all-broctl-instances-are-running-yet-broctl-status-shows-stopped/5227/3 "2018-03-20T14:19:20Z")

</div>

When this happens, what does the output of "broctl diag" look like?

---

<div class="post-metadata">

**Author:** ![william\_de\_ping](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william\_de\_ping](https://community.zeek.org/u/william_de_ping)\
**Post date:** [March 20, 2018, 4:52pm UTC](https://community.zeek.org/t/all-broctl-instances-are-running-yet-broctl-status-shows-stopped/5227/4 "2018-03-20T16:52:17Z")

</div>

Hi

Thanks for your replies

broctl diag returns "HINT : Run broctl deploy to get started.

All the rest of the output is not populated

broctl deploy solves this issue, but I do not want to restart my cluster every hour

B

---

<div class="post-metadata">

**Author:** ![Daniel\_Thayer](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Daniel\_Thayer](https://community.zeek.org/u/Daniel_Thayer)\
**Post date:** [March 20, 2018, 6:47pm UTC](https://community.zeek.org/t/all-broctl-instances-are-running-yet-broctl-status-shows-stopped/5227/5 "2018-03-20T18:47:10Z")

</div>

OK, that is what I expected. You have two different copies of Bro  
installed on your system (doesn't matter if they are the same  
version or not), and I recommend removing one of them to  
avoid confusion.

This problem could happen, for example, if you have two copies  
of Bro installed and you run "sudo broctl deploy", but then later  
you run "broctl status" and this actually runs the other copy (on  
most systems, "sudo" uses a different PATH than normal users).  
Each installation of Bro includes its own scripts, config files,  
executables, state file, etc.

---

<div class="post-metadata">

**Author:** ![william\_de\_ping](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william\_de\_ping](https://community.zeek.org/u/william_de_ping)\
**Post date:** [March 21, 2018, 10:58am UTC](https://community.zeek.org/t/all-broctl-instances-are-running-yet-broctl-status-shows-stopped/5227/6 "2018-03-21T10:58:09Z")

</div>

Hi Daniel,

Thanks

I have deleted another bro environment on that server and doubled checked that there are no other broctl\bro executable besides the work\_dir and build\_dir.

Yet this issue still occures.

I run bro with a specific user and on “top” I see that bro is running under that user, yet “./bin/broctl status” still returns that all instances are stopped.

Any suggestions ?

Thanks again

B

---

<div class="post-metadata">

**Author:** ![Daniel\_Thayer](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Daniel\_Thayer](https://community.zeek.org/u/Daniel_Thayer)\
**Post date:** [March 22, 2018, 12:46am UTC](https://community.zeek.org/t/all-broctl-instances-are-running-yet-broctl-status-shows-stopped/5227/7 "2018-03-22T00:46:33Z")

</div>

When you run "broctl diag", it will output the contents of several files  
in the Bro working directory (this is the directory where bro is  
running). For example, it will show you the contents of the  
".status" file and "stdout.log", and several other files.

If you don't see anything in the output, but you are sure that  
bro is running (and producing logs), then that means  
bro is running in a different directory.

Each installation of bro uses its own directory paths for  
locations of the config files, working directory, executables, etc.  
You can see these by running "broctl config". You can check  
if the output of "broctl config | grep spooldir" is the  
parent directory of the directory where you are seeing bro  
producing log files.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:45pm UTC](https://community.zeek.org/t/all-broctl-instances-are-running-yet-broctl-status-shows-stopped/5227/8 "2022-05-06T15:45:39Z")

</div>


