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

    Hotplug event causes rc.start_packages: Restarting/Starting all packages

    Scheduled Pinned Locked Moved General pfSense Questions
    52 Posts 9 Posters 7.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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Not yet, let me re-raise it...

      B 1 Reply Last reply Reply Quote 0
      • B
        bblacey @stephenw10
        last edited by

        @stephenw10 any movement on this yet?

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Not yet. I ran it past a few developers and the consensus was that restarting packages on a link state change is probably expected. However that doesn't explain the interaction with track6. And it seems completely unnecessary in many cases, such as this one.
          Fixing this correctly may involve a lot more work than we have time for in 23.01. I suspect a complete review of the service start scripts is in order.
          I'll try to get something opened. There's definitely a bug there somewhere, one of those behaviours is wrong.

          Steve

          3 1 Reply Last reply Reply Quote 1
          • S SteveITS referenced this topic on
          • S SteveITS referenced this topic on
          • 3
            32G3LiQxu8 @stephenw10
            last edited by

            @stephenw10 just curious if any additional discussions have been had since your last post?

            Thanks!

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Actually this was discussed recently here: https://forum.netgate.com/topic/180783/23-05-pf-was-wedged-busy-and-has-been-reset

              I'll be opening a bug for this shortly.

              3 1 Reply Last reply Reply Quote 1
              • 3
                32G3LiQxu8 @stephenw10
                last edited by

                @stephenw10 Thank you!

                1 Reply Last reply Reply Quote 0
                • I
                  Ienien77
                  last edited by

                  Hi,
                  I have the same thing happening on my side, when something change, it restart packages. And of course my Wireguard tunnel is going down ... i absolutely have no clue on why it does that (wireguard not going back up).

                  Did you figure this out yet ?

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Does it eventually reconnect? Does it reconnect manually? What do you do to recover?

                    3 I 2 Replies Last reply Reply Quote 0
                    • 3
                      32G3LiQxu8 @stephenw10
                      last edited by

                      @stephenw10 @Ienien77

                      Navigate to Interfaces > WAN
                      Even if you do not use IPv6 environment, set IPv6 Configuration Type to DHCP6

                      firefox_FOZVeAfuVH.png

                      Navigate to the Interface that is causing the restart of packages (you may have to do this on more than one interface)
                      Set IPv6 Configuration Type to Track Interface

                      firefox_vey0KHKWfK.png

                      Scroll down under Track IPv6 Interface section and set IPv6 Interface to WAN

                      firefox_n30REhnLcJ.png

                      This will keep Wireguard from restarting. It will, however, restart IPSec tunnels so if you have those it won't be of any help.

                      Another workaround is to setup a switch on that interface so it thinks it is always up

                      I believe a bug is going to be /has been opened up for this issue

                      Hope this helps!

                      I 1 Reply Last reply Reply Quote 1
                      • I
                        Ienien77 @stephenw10
                        last edited by

                        @stephenw10 hi,
                        My Wireguard tunnel isn't restarting, unless i restart manually Wireguard service on PfSense ... which is a little bit complicated when i don't have acces to Pfsense

                        1 Reply Last reply Reply Quote 0
                        • I
                          Ienien77 @32G3LiQxu8
                          last edited by

                          @32G3LiQxu8
                          That would be cool for my Wireguard tunnel, but if i destroy my colleague IPsec tunnel ... he won't be happy

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            You only need to set that one time to prevent it restating packages if an internal interface bounces.

                            I 1 Reply Last reply Reply Quote 0
                            • I
                              Ienien77 @stephenw10
                              last edited by

                              @stephenw10
                              Hey, my tunnel went down ... again
                              This time to restart it i had to remove port configuration for my tunnel under VPN > Wireguard > Tunnel > Edit Tunnel > Listen Port.
                              If that help anyone or for any debugging.
                              I´l have a look at your workaround

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                Any errors logged? Did it not even try to come back up?

                                The trackv6 thing might prevent it restarting due to that particular interface bouncing but it should still restart. So you have two issues happening here I'd suggest.

                                Steve

                                I 1 Reply Last reply Reply Quote 0
                                • I
                                  Ienien77 @stephenw10
                                  last edited by

                                  @stephenw10 i'll have a look at logs when having physical access to my Pfsense box .. because yet again my tunnel is down ...
                                  Note that i have yet to try what you say.

                                  3 1 Reply Last reply Reply Quote 1
                                  • 3
                                    32G3LiQxu8 @Ienien77
                                    last edited by

                                    @stephenw10

                                    Just curious, was a redmine opened for this or does it not meet the threshold?

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      Not for the trackv6 issue. Yet. I'm going to revisit it for 23.09 though because to me it seems like there must be a bug there.

                                      3 1 Reply Last reply Reply Quote 1
                                      • 3
                                        32G3LiQxu8 @stephenw10
                                        last edited by

                                        @stephenw10

                                        Thank you, Stephen

                                        X 1 Reply Last reply Reply Quote 0
                                        • X Ximulate referenced this topic on
                                        • X
                                          Ximulate @32G3LiQxu8
                                          last edited by

                                          Not sure if this is the same problem mentioned here, so I created a different thread:
                                          https://forum.netgate.com/topic/182625/packages-restarting

                                          1 Reply Last reply Reply Quote 0
                                          • C coolspot referenced this topic on
                                          • M
                                            MaximillianC
                                            last edited by MaximillianC

                                            @stephenw10 said in Hotplug event causes rc.start_packages: Restarting/Starting all packages:

                                            https://forum.netgate.com/topic/180783/23-05-pf-was-wedged-busy-and-has-been-reset

                                            Was a bug ever opened on this? I understand that this may seem like a fairly innocuous problem for most, but there are various circumstances that can cause the simple cycling of a non-WAN interface, which don't involve a WAN IP changing... so having all of the pfSense services restart (including HAproxy) whenever that happens is particularly problematic for those of us using pfSense in HA environments. This is especially true for those of us running websites behind HAproxy, as HAproxy gets restarted whenever an interface cycles, interrupting web users' sessions. For example, we just experienced an odd issue where our pfSense sync interface connecting our primary and failover firewalls was down, despite there being a link, and admin up status. Cycling the interfaces on both firewalls fixed the issue, but resulted in new_wanip being needlessly triggered, and restarting everything. So fixing our pfSync connection (something that should've been innocuous) resulted in an interruption of services for our users.

                                            I'm hoping the IPv6 "tracking" solution you mentioned above as a workaround for this works for us and other people experiencing this issue... but still, given that it's been almost a year now, I hope we can at least get a bug opened, so this issue can get visibility, and at least have a chance of getting prioritized in the backlog. Thanks!

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