OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: spraysn on December 04, 2025, 07:30:05 PM

Title: Unbound error
Post by: spraysn on December 04, 2025, 07:30:05 PM
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
Title: Re: Unbound error
Post by: franco on December 04, 2025, 07:34:20 PM
Is that a fresh reboot or did you at least apply the settings in unbound: general?

Also do a health check.


Cheers,
Franco
Title: Re: Unbound error
Post by: franco on December 04, 2025, 07:35:31 PM
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
Title: Re: Unbound error
Post by: spraysn on December 04, 2025, 07:40:18 PM
Yeah, its working. I removed my DNSBL Lists and readded them in case something was worng. I also updated to latest version.
Title: Re: Unbound error
Post by: spraysn on December 04, 2025, 07:41:08 PM
Last time I edited and checked my network-views, this error did not show up.
Title: Re: Unbound error
Post by: spraysn on December 04, 2025, 07:45:04 PM
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.
Title: Re: Unbound error
Post by: franco on December 04, 2025, 09:15:46 PM
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
Title: Re: Unbound error
Post by: spraysn on December 04, 2025, 09:17:21 PM
Thanks alot! Have a nice evening!
Title: Re: Unbound error
Post by: franco on December 04, 2025, 09:45:22 PM
Thanks, likewise :)