Unbound wont start

Started by tong2x, May 03, 2024, 07:16:25 AM

Previous topic - Next topic
I tried to reinstall unbound to no avail, tried reintalling multiple times

OPNsense 24.1.6-amd64
FreeBSD 13.2-RELEASE-p11
OpenSSL 3.0.13


log error

2024-05-03T12:56:44   Error   configd.py   [92dc6ee1-e33b-4f22-958a-c0fee242834f] Script action failed with Command '/usr/local/opnsense/scripts/unbound/wrapper.py -s ' returned non-zero exit status 127. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 44, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/unbound/wrapper.py -s ' returned non-zero exit status 127.
2024-05-03T12:56:39   Error   configd.py   [c9d4e09c-4f10-40af-8778-94dc3845dc4b] Script action failed with Command '/usr/local/opnsense/scripts/unbound/wrapper.py -s ' returned non-zero exit status 127. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 44, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/unbound/wrapper.py -s ' returned non-zero exit status 127.

What happens here?

# configctl unbound check



Cheers,
Franco

Quoteroot@OPNsense:~ # configctl unbound check
Execute error
root@OPNsense:~ #

this happen suddendly that we lost internet, partially to 1 of our LAN segment.
after we restored that unbound seem to not start anymore, and throws that error in sa logs

Doesn't make much sense to me since the command relays the output, not the error message.

# sh -x /usr/local/opnsense/scripts/unbound/check.sh

But I am beginning to suspect your file system may be damaged for some reason.


Cheers,
Franco

May 03, 2024, 10:10:47 AM #4 Last Edit: May 03, 2024, 10:16:20 AM by tong2x
Quoteroot@OPNsense:~ # sh -x /usr/local/opnsense/scripts/unbound/check.sh
sh: cannot open /usr/local/opnsense/scripts/unbound/check.sh: No such file or directory
root@OPNsense:~ #

I would have to agree...
possible to remove or uninstall or to force install all required files?
reinstalling does not reinstall necessary files?

Whoops, best to bring out the big guns:

# opnsense-bootstrap


Cheers,
Franco

QuoteThis utility will attempt to turn this installation into the latest
OPNsense 24.1 release.  All packages will be deleted, the base
system and kernel will be replaced, and if all went well the system
will automatically reboot.

Proceed with this action? [y/N]: y
fetch: https://github.com/opnsense/core/archive/stable/24.1.tar.gz: Address family for host not supported

file can be downloaded manually but in console throws an error

> Address family for host not supported

Hmm, this is quite broken (not a typical error message at all). Maybe a reinstall would be better in this case.


Cheers,
Franco