# Errors in FreeBSD 15 using ZeroMQ

**URL:** <https://community.zeek.org/t/errors-in-freebsd-15-using-zeromq/7917>\
**Category:** Zeek\
**Tags:** zeekctl, cluster\
**Created:** [December 11, 2025, 5:13am UTC](https://community.zeek.org/t/errors-in-freebsd-15-using-zeromq/7917 "2025-12-11T05:13:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clopmz](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@clopmz](https://community.zeek.org/u/clopmz)\
**Post date:** [December 11, 2025, 5:13am UTC](https://community.zeek.org/t/errors-in-freebsd-15-using-zeromq/7917/1 "2025-12-11T05:13:33Z")

</div>

Hi all,

I have compiled Zeek 8.0.4 enabling ZeroMQ support under a FreeBSD 15 host (amd64) but zeekctl returns the following errors:

hecking configurations …  
Traceback (most recent call last):  
File “/opt/zeek/bin/zeekctl”, line 861, in  
sys.exit(main())  
^^^^^^  
File “/opt/zeek/bin/zeekctl”, line 834, in main  
cmdsuccess = loop.onecmd(cmdline)  
^^^^^^^^^^^^^^^^^^^^  
File “/usr/local/lib/python3.11/cmd.py”, line 217, in onecmd  
return func(arg)  
^^^^^^^^^  
File “/opt/zeek/bin/zeekctl”, line 211, in do\_deploy  
results = self.zeekctl.deploy()  
^^^^^^^^^^^^^^^^^^^^^  
File “/opt/zeek/lib/zeek/python/zeekctl/ZeekControl/zeekctl.py”, line 36, in wrapper  
return func(self, \*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/opt/zeek/lib/zeek/python/zeekctl/ZeekControl/zeekctl.py”, line 345, in deploy  
results = self.check(check\_node\_types=True)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/opt/zeek/lib/zeek/python/zeekctl/ZeekControl/zeekctl.py”, line 60, in wrapper  
return func(self, \*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/opt/zeek/lib/zeek/python/zeekctl/ZeekControl/zeekctl.py”, line 36, in wrapper  
return func(self, \*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/opt/zeek/lib/zeek/python/zeekctl/ZeekControl/zeekctl.py”, line 447, in check  
results = self.controller.check(nodes)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/opt/zeek/lib/zeek/python/zeekctl/ZeekControl/control.py”, line 668, in check  
return self.\_check\_config(nodes, False, False)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/opt/zeek/lib/zeek/python/zeekctl/ZeekControl/control.py”, line 709, in \_check\_config  
if not install.make\_layout(cwd, self.ui, True):  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/opt/zeek/lib/zeek/python/zeekctl/ZeekControl/install.py”, line 182, in make\_layout  
ostr += f"redef Telemetry::metrics\_port = {metricsport.use\_port(None)}/tcp;\n"  
^^^^^^^^^^^^^^^^^^^^  
AttributeError: ‘NoneType’ object has no attribute ‘use\_port’

How can I fix this?

---

<div class="post-metadata">

**Author:** ![awelzel](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/awelzel/32/609_2.png) [@awelzel](https://community.zeek.org/u/awelzel)\
**Post date:** [December 11, 2025, 8:59am UTC](https://community.zeek.org/t/errors-in-freebsd-15-using-zeromq/7917/2 "2025-12-11T08:59:26Z")

</div>

Hey @clopmz , thanks a bunch for testing!

> [@clopmz](#):
>
> How can I fix this?

This isn’t actually ZeroMQ specific, but happens if `MetricsPort = 0` is set in `zeekctl.cfg` and `node.cfg` uses a standalone cluster configuration. It reproduces here on Linux, too. I’ll fix it in Zeekctl.

The `standalone` mode isn’t really something you’d run in production.

Please switch from a standalone `node.cfg` layout to a multi-process cluster `node.cfg` - the following is from my Linux testing VM (modulo the af\_packet config):

```auto
[manager]
type=manager
host=localhost

[logger-1]
type=logger
host=localhost

[proxy-1]
type=proxy
host=localhost

[proxy-2]
type=proxy
host=localhost

[worker]
type=worker
host=localhost
interface=enp7s0

```

For a production setup with multiple worker processes you’ll want to look into `lb_procs` and `lb_method` for the `[worker]` section. For getting familiar with Zeekctl+Zeek+ZeroMQ (testing if scripts load, checking on warning/error messages), the above should work. Reach out if not.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![awelzel](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/awelzel/32/609_2.png) [@awelzel](https://community.zeek.org/u/awelzel)\
**Post date:** [December 11, 2025, 10:03am UTC](https://community.zeek.org/t/errors-in-freebsd-15-using-zeromq/7917/3 "2025-12-11T10:03:10Z")

</div>

PR for the standalone mode fix: [install: Fix AttributeError in standalone mode with MetricsPort = 0 by awelzel · Pull Request #98 · zeek/zeekctl · GitHub](https://github.com/zeek/zeekctl/pull/98)

---

<div class="post-metadata">

**Author:** ![clopmz](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@clopmz](https://community.zeek.org/u/clopmz)\
**Post date:** [December 11, 2025, 10:35am UTC](https://community.zeek.org/t/errors-in-freebsd-15-using-zeromq/7917/4 "2025-12-11T10:35:12Z")

</div>

Ok. It works with multi-process cluster config"!! … many thanks @awelzel

---

<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:** [June 9, 2026, 5:14am UTC](https://community.zeek.org/t/errors-in-freebsd-15-using-zeromq/7917/5 "2026-06-09T05:14:16Z")

</div>

This topic was automatically closed after 47 days. New replies are no longer allowed.
