Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    unbound restarts anyone?

    Scheduled Pinned Locked Moved General pfSense Questions
    11 Posts 5 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chudakC
      chudak
      last edited by

      After upgrading to 23.01 I see that my ServiceWatchdog
      restarts unbound, It happens not too often 1-2 times a day.

      Mar 10 09:30:03	php-cgi	7499	servicewatchdog_cron.php: 
      The command '/usr/local/sbin/unbound -c /var/unbound/unbound.conf' returned exit code '1', the output was '[1678469403] unbound[47459:0] error: bind: address already in use [1678469403] unbound[47459:0] fatal error: could not open ports'
      

      Is anybody else seeing this?

      I did find this post but is it really a good idea not to add unbound to ServiceWatchdog?

      Thx

      johnpozJ C 2 Replies Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @chudak
        last edited by

        @chudak I don't even have servicewatchdog installed.. What are you needing it for - what services are stopping that need to be restarted? That you would need it in the first place?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        chudakC 1 Reply Last reply Reply Quote 0
        • chudakC
          chudak @johnpoz
          last edited by

          @johnpoz said in unbound restarts anyone?:

          @chudak I don't even have servicewatchdog installed.. What are you needing it for - what services are stopping that need to be restarted? That you would need it in the first place?

          We’ll the answer is obvious - restart unbound

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @chudak
            last edited by

            @chudak said in unbound restarts anyone?:

            We’ll the answer is obvious - restart unbound

            I have never had an issue that I can recall of unbound just stopping to be honest.. But you could for sure run into a race type condition issue where if something restarted unbound, say dhcp leases or something - and servicewatchdog said oh, unbound isn't running let me restart it.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            chudakC 1 Reply Last reply Reply Quote 0
            • chudakC
              chudak @johnpoz
              last edited by

              @johnpoz
              and other packages as well:

              Arpwatch Daemon
              ntopng

              The point is that it has not been like this before 23.01

              Dobby_D S 2 Replies Last reply Reply Quote 0
              • Dobby_D
                Dobby_ @chudak
                last edited by

                @chudak said in unbound restarts anyone?:

                The point is that it has not been like this before 23.01

                I must restart clamd, snort and unbound once more by hand after upgrading to 23.01 and then I have to reboot it.
                After the reboot it was stating again like before automatically.

                #~. @Dobby

                Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
                PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
                PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

                1 Reply Last reply Reply Quote 0
                • S
                  SteveITS Galactic Empire @chudak
                  last edited by

                  @chudak If you have DHCP lease registration then it will restart at each renewal. In that case I'd remove it from watchdog.

                  If not, then I'd check to see whether it's stopping (logged) or crashing.

                  I don't think it results in the processing stopping but if you use forwarding in DNS Resolver then uncheck DNSSEC, and some have reported they need to uncheck the option to use TLS as well.

                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                  Upvote 👍 helpful posts!

                  chudakC 1 Reply Last reply Reply Quote 0
                  • chudakC
                    chudak @SteveITS
                    last edited by

                    @steveits said in unbound restarts anyone?:

                    @chudak If you have DHCP lease registration then it will restart at each renewal. In that case I'd remove it from watchdog.

                    If not, then I'd check to see whether it's stopping (logged) or crashing.

                    I don't think it results in the processing stopping but if you use forwarding in DNS Resolver then uncheck DNSSEC, and some have reported they need to uncheck the option to use TLS as well.

                    Thx for the reply.
                    I actually don't have either DHCP lease registration or DNSSEC checked.

                    But that's all related ti pfBNG. And I do see other packages as well being restarted.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      SteveITS Galactic Empire @chudak
                      last edited by

                      @chudak said in unbound restarts anyone?:

                      see other packages as well being restarted

                      If they're all at the same time, an interface going down/up can do that.

                      "address already in use" is basically saying unbound is already running and you (watchdog) can't start it again.

                      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                      Upvote 👍 helpful posts!

                      1 Reply Last reply Reply Quote 0
                      • C
                        Cylosoft @chudak
                        last edited by

                        @chudak Yeah. We thought we had sorted out unbound issues on v23. Had a complete crash of unbound. Never once saw that on any box with v22. Unbound just isn't good under v23. I wish I could have v23 with old unbound.

                        1 Reply Last reply Reply Quote 0
                        • chudakC
                          chudak
                          last edited by

                          I applied all recommended patches and so far in last 2 days see no restarts!

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.