root@OPNsense:/usr/local/etc/unbound.opnsense.d # configctl unbound check
Traceback (most recent call last):
File "unbound-dnsbl/dnsbl_module.py", line 41, in <module>
from lib import Query, ModuleContext
ImportError: cannot import name 'Query' from 'lib' (unknown location)
[1764872235] unbound-checkconf[73486:0] error: pythonmod: can't parse Python script unbound-dnsbl/dnsbl_module.py
[1764872235] unbound-checkconf[73486:0] error: pythonmod: python error: NoneType: None
[1764872235] unbound-checkconf[73486:0] fatal error: bad config during init for python module
Versions
OPNsense 25.7.9-amd64
FreeBSD 14.3-RELEASE-p5
OpenSSL 3.0.18
Is that a fresh reboot or did you at least apply the settings in unbound: general?
Also do a health check.
Cheers,
Franco
Ah ok that's normal apparently when you run check and I'm seeing the same. So I guess Unbound works? A bit more text would really help clear this up.
Cheers,
Franco
Yeah, its working. I removed my DNSBL Lists and readded them in case something was worng. I also updated to latest version.
Last time I edited and checked my network-views, this error did not show up.
Quote from: franco on Today at 07:35:31 PMAh ok that's normal apparently when you run check and I'm seeing the same. So I guess Unbound works? A bit more text would really help clear this up.
Cheers,
Franco
What information do you need? On 23 November 2025, I edited my 'network-views.conf' file in '/usr/local/etc/unbound.opnsense.d/' . After that, I checked the configuration. It told me there were no errors.
Today is the first time I have seen this error since then.
Before writing this post, I updated to the latest version of OPNsense and rebooted. The error is still there.
Thanks, that helps. I think this was introduced in 25.7.8.
We'll fix it, but nothing that needs immediate attention (which I'm trying to look out for on a release day such as today).
Cheers,
Franco
Thanks alot! Have a nice evening!
Thanks, likewise :)