OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 22.7 Legacy Series »
  • Unbound Restarting every 2 hours after upgrade to 22.7
« previous next »
  • Print
Pages: 1 2 [3] 4

Author Topic: Unbound Restarting every 2 hours after upgrade to 22.7  (Read 6069 times)

bunchofreeds

  • Full Member
  • ***
  • Posts: 171
  • Karma: 10
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #30 on: August 02, 2022, 05:30:25 am »
Just joining in here as I'm seeing the same.

Using DHCP on the WAN which has a lease time of 5 mins meaning Unbound restarts every 2.5 mins :)

2022-08-02T15:27:06   Notice   unbound   [62126:0] notice: Restart of unbound 1.16.1.   
2022-08-02T15:24:36   Notice   unbound   [62126:0] notice: Restart of unbound 1.16.1.   
2022-08-02T15:22:07   Notice   unbound   [62126:0] notice: Restart of unbound 1.16.1.   
2022-08-02T15:19:36   Notice   unbound   [62126:0] notice: Restart of unbound 1.16.1.   
2022-08-02T15:17:06   Notice   unbound   [62126:0] notice: Restart of unbound 1.16.1.   
2022-08-02T15:14:36   Notice   unbound   [62126:0] notice: Restart of unbound 1.16.1.   
2022-08-02T15:12:06   Notice   unbound   [62126:0] notice: Restart of unbound 1.16.1.   
2022-08-02T15:09:37   Notice   unbound   [62126:0] notice: Restart of unbound 1.16.1.   
2022-08-02T15:07:06   Notice   unbound   [62126:0] notice: Restart of unbound 1.16.1.   
2022-08-02T15:04:36   Notice   unbound   [62126:0] notice: Restart of unbound 1.16.1.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13956
  • Karma: 1210
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #31 on: August 02, 2022, 09:13:46 am »
So there is two issues here:

1. New 22.7 behaviour surfaced spurious Unbound HUP reloads through hosts regeneration (which was the case forever)

https://github.com/opnsense/core/commit/7aaa6a263b1

2. Actual regression in 22.7 causing the new behaviour

https://github.com/opnsense/core/commit/bb4743a7322

I'd recommend trying both in tandem:

# opnsense-patch 7aaa6a263b1 bb4743a7322

...and report back the results. :)


Thanks,
Franco
Logged

miroco

  • Full Member
  • ***
  • Posts: 106
  • Karma: 8
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #32 on: August 02, 2022, 01:21:14 pm »
I applied the patch and rebooted the machine to get a reference point.

Code: [Select]
2022-08-02T10:12:12 Notice shutdown reboot by root:
I don't have any instance of [Restart of Unbound 1.16.1] after 10:05:26
Nor do I have any instance of [IPv4 renewal is starting on 'igb0'] after 10:14:35

However, the 30 min IP renewal seems to continue normally

Code: [Select]
2022-08-02T13:11:28 Notice dhclient Creating resolv.conf
2022-08-02T12:43:18 Notice dhclient Creating resolv.conf
2022-08-02T12:13:18 Notice dhclient Creating resolv.conf
2022-08-02T11:43:18 Notice dhclient Creating resolv.conf
2022-08-02T11:13:18 Notice dhclient Creating resolv.conf
2022-08-02T10:43:17 Notice dhclient Creating resolv.conf
2022-08-02T10:13:17 Notice dhclient Creating resolv.conf
2022-08-02T10:05:24 Notice dhclient Creating resolv.conf
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13956
  • Karma: 1210
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #33 on: August 02, 2022, 01:25:03 pm »
Sure, dhclient needs to react and invokes dhclient-script, but the script no longer calls rc.newwanip as was the case on 22.1.


Cheers,
Franco
Logged

dinguz

  • Full Member
  • ***
  • Posts: 189
  • Karma: 7
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #34 on: August 02, 2022, 04:31:27 pm »
I applied the patches earlier today, rebooted for good measure, and I'm happy to report that unbound hasn't been restarted since. Thanks!
Logged
In theory there is no difference between theory and practice. In practice there is.

nodakbarnes

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #35 on: August 02, 2022, 06:21:27 pm »
So I applied the patches as well on my Protecli FW2B and it has resolved the issue for me.

Thanks Franco!
Logged

mueller

  • Newbie
  • *
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #36 on: August 02, 2022, 06:42:03 pm »
... will there be a hotfix here again? :)
I have the same problem.
Logged

dinguz

  • Full Member
  • ***
  • Posts: 189
  • Karma: 7
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #37 on: August 02, 2022, 07:23:23 pm »
Quote from: mueller on August 02, 2022, 06:42:03 pm
... will there be a hotfix here again? :)
I have the same problem.

I read in another topic it’s scheduled for 22.7.1 which will probably be released next week.
Logged
In theory there is no difference between theory and practice. In practice there is.

mueller

  • Newbie
  • *
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #38 on: August 02, 2022, 07:35:19 pm »
Very good, because that is quite annoying :)
Logged

dinguz

  • Full Member
  • ***
  • Posts: 189
  • Karma: 7
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #39 on: August 02, 2022, 08:00:09 pm »
Quote from: mueller on August 02, 2022, 07:35:19 pm
Very good, because that is quite annoying :)

You can apply the patch manually as described earlier in this topic, it won't mess up the official releases.
Logged
In theory there is no difference between theory and practice. In practice there is.

mueller

  • Newbie
  • *
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #40 on: August 02, 2022, 08:17:27 pm »
Yes, I think that's where it starts to stop for me ;)
Logged

RamSense

  • Sr. Member
  • ****
  • Posts: 431
  • Karma: 9
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #41 on: August 02, 2022, 09:46:19 pm »
I installed the patch and it has resolved the issue for me also. thnx
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 171
  • Karma: 10
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #42 on: August 02, 2022, 10:18:31 pm »
Added both patches and looks resolved! Thanks @franco

# opnsense-patch 7aaa6a263b1 bb4743a7322

Unbound is no longer restarting when then WAN DHCP lease renews
No more "Error opnsense/usr/local/etc/rc.newwanip" in system logs

Thanks again!
Logged

miroco

  • Full Member
  • ***
  • Posts: 106
  • Karma: 8
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #43 on: August 02, 2022, 10:23:14 pm »
9 h later and Unbound is till behaving.  :) Thank you Franco.
Logged

mueller

  • Newbie
  • *
  • Posts: 36
  • Karma: 10
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #44 on: August 02, 2022, 11:56:27 pm »
It took me a while to realize that you have to enter the above command (# opnsense-patch 7aaa6a263b1 bb4743a7322) via the Secure Shell :-/

I thought I had to download any patches and copy them to certain places etc..

Now everything runs great, many, many thanks
Logged

  • Print
Pages: 1 2 [3] 4
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 22.7 Legacy Series »
  • Unbound Restarting every 2 hours after upgrade to 22.7
 

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