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

    SG3100 needs to reboot every few days after 2.4.4 upgrade

    Scheduled Pinned Locked Moved General pfSense Questions
    23 Posts 5 Posters 1.8k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate @bbrendon
      last edited by

      @bbrendon said in SG3100 needs to reboot every few days after 2.4.4 upgrade:

      So maybe my DNSBL wasn’t too big. I guess I’m still leaking memory and it’s just going to take longer to fail since I’m not using as much memory now. Interesting.

      They fixed several leaks, from the release notes:

      A memory leak in the TLS lookup code is fixed. Leaked requests in the requestlist are fixed.

      • free memory leaks in config strlist and str2list insert functions.
      • Free memory leak in config strlist append.
      • Fix memory leak when message parse fails partway through copy.

      So it is possible if you have an issue with unbound that happens over time, it may be due to a memory leak.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        Is there a way to restart unbound every 24 hours to try and mitigate the problem until 2.4.4-p1?
        Thanks!

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          You can install the cron package and then make a cron entry that periodically does /usr/local/sbin/pfSsh.php playback svc restart unbound on whatever schedule you want.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • O
            onnastick
            last edited by

            I don't know if I just caught it at a funny time, but I just went to go look at the DNS Resolver log page again, but it looks like the service restarted itself multiple times within just the last few minutes. I wonder if it has been doing this all day? I am wondering if installing cron and having it restart periodically (say daily) is even worthwhile if it is restarting itself frequently anyway...

            I have a mind to disable DNS over TLS for now and wait until 2.4.4-p1 comes out before I try to re-enable it. DNS privacy appeals to me, but in principle only - no real reasons to hide. It's not worth periodically losing DNS functionality. I haven't really decided to turn it off yet, but what do other people think about the trade-off?

            1 Reply Last reply Reply Quote 0
            • B
              bbrendon
              last edited by

              I woke up without internet this morning :(

              Is there a way to install unbound 1.8.1 manually?

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @bbrendon
                last edited by

                @bbrendon said in SG3100 needs to reboot every few days after 2.4.4 upgrade:

                I woke up without internet this morning :(

                Is there a way to install unbound 1.8.1 manually?

                Why don't you follow the advice of @jimp above? Install the cron package, then add a restart of unbound every ~6 hours (or hour or whatever works best) as a mitigation?

                B 1 Reply Last reply Reply Quote 0
                • O
                  onnastick
                  last edited by

                  For what it's worth, I have checked back at random periods at the DNS Resolver log entries (but NOT when the problem occurred when I had to manually start it). The few times I checked the DNS Resolver log, I found each time that unbound had stopped (message like info: service stopped (unbound 1.7.3). ) a couple of times within a 5 minute period. I am not sure why it stops so often, and why sometimes it will stop and not start back on its own without my intervention. But I'm not sure adding a restart every hour or few hours would make a difference. If the service is stopping and starting on its own fairly often, one would think adding a cron-based restart wouldn't make a big difference.

                  1 Reply Last reply Reply Quote 0
                  • B
                    bbrendon @A Former User
                    last edited by

                    @muppet said in SG3100 needs to reboot every few days after 2.4.4 upgrade:

                    restart of unbound every ~6 hours

                    I could but that's janky.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by A Former User

                      Edit: Updated to remove the bit about it being unsupported.

                      Unbound 1.8.1 has been pushed to the 2.4.4 repo.
                      If you do a "pkg update && pkg upgrade" you can find it. If you wanted to be more careful (always a good idea) you could do "pkg update && pkg upgrade unbound" then you'll only get an upgraded unbound and strongswan (ipsec package)
                      KEEP IN MIND YOU'LL BE RUNNING A SEMI-UNSUPPORTED VERSION OF PFSENSE BY DOING THIS - So only do it if you really really need to. But it should fix your unbound problems.

                      Thanks heaps to netcat6549 in the IRC channel for explaining some of the above to me.

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        That is not unsupported. We pushed it out specifically to address the unbound memory leaks. It's perfectly fine to run it either way, whichever way works better for someone.

                        In fact if someone were to upgrade to 2.4.4 today, they'd automatically pull in the new version.

                        tl;dr: If you have problems with unbound eating memory, upgrade, don't suffer until -p1, even if it is coming soon.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @jimp
                          last edited by

                          @jimp said in SG3100 needs to reboot every few days after 2.4.4 upgrade:

                          That is not unsupported. We pushed it out specifically to address the unbound memory leaks. It's perfectly fine to run it either way, whichever way works better for someone.

                          In fact if someone were to upgrade to 2.4.4 today, they'd automatically pull in the new version.

                          tl;dr: If you have problems with unbound eating memory, upgrade, don't suffer until -p1, even if it is coming soon.

                          Ahhh ok, thank you
                          I was asking in the IRC channel about how "supported" the pkg update/pkg upgrade commands were. The feedback I got was that it would be an unsupported thing to do. Thank you for clarification!

                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            I could see how someone might think that, but in this case we put out some updates for a few issues that some had concerns about (unbound, strongSwan, curl, libssh) and if someone needs to, they can update by hand. We don't do that often, but in this case the issues warranted an OOB update of that nature.

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

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