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 5634 times)

andrema2

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 3
    • View Profile
Unbound Restarting every 2 hours after upgrade to 22.7
« on: July 29, 2022, 10:01:52 pm »
Hi

I have seen at Unbound log that it has restarted itself 3 times since 9am today exactly every 2 hours.

I didn't see any other information on the log that could explain it. Any one else having this issue ?
Logged

ar

  • Newbie
  • *
  • Posts: 29
  • Karma: 2
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #1 on: July 29, 2022, 10:44:55 pm »
Same here, except it seems to be every 45 minutes, see attachment. I increased verbosity, maybe something comes up.
Logged

jclendineng

  • Full Member
  • ***
  • Posts: 125
  • Karma: 6
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #2 on: July 29, 2022, 11:12:54 pm »
Every 20 minutes here, fun times :)
Logged

dinguz

  • Full Member
  • ***
  • Posts: 189
  • Karma: 7
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #3 on: July 29, 2022, 11:35:23 pm »
Does it perhaps restart at dhcp renewal of one the network interfaces?
Logged
In theory there is no difference between theory and practice. In practice there is.

chtse53

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #4 on: July 29, 2022, 11:38:38 pm »
Mine frequently renews the wan ip address, which didn't change, and caused unbound to restart.
Logged

ar

  • Newbie
  • *
  • Posts: 29
  • Karma: 2
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #5 on: July 30, 2022, 12:56:00 am »
Level 5 logs just show <code>got control cmd quit</code> for every thread, so not much more info there.

Code: [Select]
2022-07-30T00:22:10 Informational unbound [12754:0] info: server stats for thread 0: 198 queries, 61 answers from cache, 137 recursions, 0 prefetch, 0 rejected by ip ratelimiting
2022-07-30T00:22:10 Debug unbound [12754:0] debug: comm_point_close of 36: event_del
2022-07-30T00:22:10 Debug unbound [12754:0] debug: cleanup.
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join success 7
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join 7
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join success 6
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join 6
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join success 5
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join 5
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join success 4
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join 4
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join success 3
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join 3
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join success 2
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join 2
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join success 1
2022-07-30T00:22:10 Debug unbound [12754:1] debug: got control cmd quit
2022-07-30T00:22:10 Debug unbound [12754:6] debug: got control cmd quit
2022-07-30T00:22:10 Debug unbound [12754:7] debug: got control cmd quit
2022-07-30T00:22:10 Debug unbound [12754:0] debug: join 1
2022-07-30T00:22:10 Debug unbound [12754:5] debug: got control cmd quit
2022-07-30T00:22:10 Debug unbound [12754:3] debug: got control cmd quit
2022-07-30T00:22:10 Debug unbound [12754:4] debug: got control cmd quit
2022-07-30T00:22:10 Debug unbound [12754:2] debug: got control cmd quit
2022-07-30T00:22:10 Debug unbound [12754:0] debug: stop threads
2022-07-30T00:22:10 Informational unbound [12754:0] info: service stopped (unbound 1.16.1).
2022-07-30T00:22:09 Informational unbound [12754:3] info: send_udp over interface: 127.0.0.1
2022-07-30T00:22:09 Debug unbound [12754:3] debug: using localzone . transparent
2022-07-30T00:22:09 Informational unbound [12754:3] info: receive_udp on interface: 127.0.0.1
2022-07-30T00:22:09 Informational unbound [12754:5] info: send_udp over interface: 127.0.0.1
2022-07-30T00:22:09 Debug unbound [12754:5] debug: using localzone localdomain. transparent
2022-07-30T00:22:09 Informational unbound [12754:5] info: receive_udp on interface: 127.0.0.1
Logged

dinguz

  • Full Member
  • ***
  • Posts: 189
  • Karma: 7
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #6 on: July 30, 2022, 10:46:26 am »
I have checked my logs, and indeed unbound is restarted upon dhcp renewal. Wouldn't it make sense to make it a bit smarter and only restart when the ip address changes?
Logged
In theory there is no difference between theory and practice. In practice there is.

andrema2

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 3
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #7 on: July 30, 2022, 02:08:21 pm »
Yeah, this is not how it was working before. I upgraded to 22.7_4 and the behaviour is the same. Apparently there is something wrong with the current implementation.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #8 on: July 30, 2022, 09:16:24 pm »
Might be a side effect of https://github.com/opnsense/core/issues/5624

Need to check on Monday.

I need one info from everyone having this issue: under WAN settings, what is your IPv4 type?


Cheers,
Franco
« Last Edit: July 30, 2022, 09:18:22 pm by franco »
Logged

Scuro

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #9 on: July 30, 2022, 09:53:04 pm »
Quote from: franco on July 30, 2022, 09:16:24 pm
I need one info from everyone having this issue: under WAN settings, what is your IPv4 type?

IPv4 Configuration Type: DHCP
Logged

dinguz

  • Full Member
  • ***
  • Posts: 189
  • Karma: 7
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #10 on: July 30, 2022, 10:01:30 pm »
I have a fiber setup with internet access on one vlan (a PPPoE connection which uses dhcp) and I have IP TV on another vlan which also uses dhcp, but directly, without PPPoE.
Please let me know if you need more specific info.
Logged
In theory there is no difference between theory and practice. In practice there is.

joysense

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #11 on: July 30, 2022, 11:41:26 pm »
Same issue. Noticed some tcp errors since I was using DoT. Had switch over to dnsmasq in mean time
Logged

miroco

  • Full Member
  • ***
  • Posts: 106
  • Karma: 8
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #12 on: July 31, 2022, 11:11:35 am »
In my case Unbound restart with a 30 min intervall. Wan uses DHCP on IPv4.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #13 on: July 31, 2022, 12:46:27 pm »
Has anyone checked their IPv4 lease time? It might "coincide" with the reload interval measured.


Cheers,
Franco
Logged

miroco

  • Full Member
  • ***
  • Posts: 106
  • Karma: 8
    • View Profile
Re: Unbound Restarting every 2 hours after upgrade to 22.7
« Reply #14 on: July 31, 2022, 04:26:00 pm »
It does coincide

https://www.imagebam.com/view/MEBZHA2

https://www.imagebam.com/view/MEBZHA5
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