OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Unbound fails to start on boot
« previous next »
  • Print
Pages: 1 [2]

Author Topic: Unbound fails to start on boot  (Read 7311 times)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: Unbound fails to start on boot
« Reply #15 on: February 21, 2022, 02:45:08 pm »
Looking at the date of the last post and not having any data on 22.1.1 latest makes me wonder if there was a way to find out if it works better or not...


Cheers,
Franco
Logged

verasense

  • Newbie
  • *
  • Posts: 40
  • Karma: 1
    • View Profile
Re: Unbound fails to start on boot
« Reply #16 on: February 22, 2022, 09:18:55 am »
Actually, yesterday I updated my system at midday:

Code: [Select]
Type opnsense
Version 22.1.1_3
Architecture amd64
Flavour OpenSSL
Commit 6b667da6f
...
Updated on Mon Feb 21 14:49:37 UTC 2022

After the different reboots, I was losing Internet connection, but I knew what it was. I just had to login via the router IP (no DN) and re-run the Unbound DNS in the dashboard.

Losing DNS does not occur immediatelly. Tonight I went to sleep with Internet. Today I woke up and there was no Internet - again, the Unbound DNS was deactivated.

By the way, this is the same issue I had before, where I mistakenly though I lost connectivity, and then I discover it was only DNS:
https://forum.opnsense.org/index.php?topic=25947.msg125084#msg125084

Suricata also stops after a few minutes. But I cannot make it work, it always stop. On the contrary, DNS stays running if I do not reboot the router.

How can I research what is going on?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: Unbound fails to start on boot
« Reply #17 on: February 22, 2022, 09:20:42 am »
Are you using blocklists in Unbound with a Cron Job maybe?

Logs are always helpful...


Cheers,
Franco
Logged

hushcoden

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: 17
    • View Profile
Re: Unbound fails to start on boot
« Reply #18 on: February 24, 2022, 09:05:57 am »
Same issue here since I updated to 22.1.1_3 and yes I have the cron job which update the block lists every morning at 6:00 - so now after the update Unbound won't restart and I have to manually start it, any suggetsions?

Which log should I post?

Tia.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: Unbound fails to start on boot
« Reply #19 on: February 24, 2022, 10:00:31 am »
For one try:

# configctl unbound check

Logs are usually in system log, e.g.:

# opnsense-log

or resolver log for unbound:

# opnsense-log resolver


Cheers,
Franco
Logged

hushcoden

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: 17
    • View Profile
Re: Unbound fails to start on boot
« Reply #20 on: February 24, 2022, 11:25:05 am »
Quote from: franco on February 24, 2022, 10:00:31 am
For one try:

# configctl unbound check
I get this:
Code: [Select]
error in configd communication %s, see syslog for details
And I've attached the message I found in the log
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: Unbound fails to start on boot
« Reply #21 on: February 24, 2022, 11:31:41 am »
# service configd restart
# configctl unbound check

If configd isn't responding it could be anything really.


Cheers,
Franco
Logged

hushcoden

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: 17
    • View Profile
Re: Unbound fails to start on boot
« Reply #22 on: February 24, 2022, 06:03:50 pm »
Perhaps time to plan for a fresh reinstall.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: Unbound fails to start on boot
« Reply #23 on: February 24, 2022, 07:33:26 pm »
Health audit (under system: firmware: status) might be useful to spot potential problems that are easy to fix.


Cheers,
Franco
Logged

hushcoden

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: 17
    • View Profile
Re: Unbound fails to start on boot
« Reply #24 on: February 24, 2022, 07:52:09 pm »
That seems all good
Code: [Select]
***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 22.1.1_3 (amd64/OpenSSL) at Thu Feb 24 18:48:26 GMT 2022
>>> Check installed kernel version
Version 22.1.1 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 22.1.1 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check for missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Core package "opnsense" has 65 dependencies to check.
Checking packages: ................................................................... done
***DONE***
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: Unbound fails to start on boot
« Reply #25 on: February 25, 2022, 08:00:59 am »
Indeed, which means the issue could come back even after clean reinstall + configuration import. Which plugins are you using? Reminds me I wanted to add that to the health audit.


Cheers,
Franco
Logged

miroco

  • Full Member
  • ***
  • Posts: 106
  • Karma: 8
    • View Profile
Re: Unbound fails to start on boot
« Reply #26 on: February 25, 2022, 09:20:57 am »
Does the Unbound 1.15.0 change log offer any new insights on the matter?

https://nlnetlabs.nl/projects/unbound/download/#unbound-1-15-0

miroco
Logged

hushcoden

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: 17
    • View Profile
Re: Unbound fails to start on boot
« Reply #27 on: February 25, 2022, 01:27:33 pm »
Quote from: franco on February 25, 2022, 08:00:59 am
Which plugins are you using? Reminds me I wanted to add that to the health audit.
os-dmidecode (installed)
os-smart (installed)
os-theme-cicada (installed)
os-wireguard (installed)
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: Unbound fails to start on boot
« Reply #28 on: February 28, 2022, 12:44:04 pm »
Doesn't look suspicious, sorry, unable to think of how to debug this further.


Cheers,
Franco
Logged

  • Print
Pages: 1 [2]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Unbound fails to start on boot
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2