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

    System Shuts Down when UPS does a Self Test

    Scheduled Pinned Locked Moved General pfSense Questions
    25 Posts 8 Posters 4.7k 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.
    • J
      jeff3820 @dennypage
      last edited by

      @dennypage This NAS is an older DS215j running 7.1.1 update 5

      NAS UPS.png

      dennypageD 1 Reply Last reply Reply Quote 0
      • dennypageD
        dennypage @jeff3820
        last edited by

        @jeff3820 Interesting. As best as I recall, for me that checkbox went away with the release of DSM 7.0 rather than 7.2. Perhaps I mis-remember. Regardless, the option is gone now.

        1 Reply Last reply Reply Quote 0
        • C
          Chunks
          last edited by

          I'm actually experiencing the exact same thing as OP.

          pfSense (latest NUT, 2.8.2 I think) is acting as slave to my file server (Unraid) which is running NUT 2.8.1. A couple of times now, my APC UPS goes into an apparent "Test" mode, and while my fileserver stays up, my router shuts itself off.

          I asked in the Unraid forums about this, and they pointed to a bug report that was recently (end of october) fixed with NUT: https://github.com/networkupstools/nut/issues/2104

          Unfortunately, I'm a little confused by the versioning that's going on here. It seems possible to me, that the PFSense package is using a release from just before this fix? Even though it's labeled as 2.8.2 in the pfsense Package list, I'm not sure if that directly correlates to the underlying NUT version.

          Maybe we just need an update? I don't know.

          dennypageD 2 Replies Last reply Reply Quote 0
          • dennypageD
            dennypage @Chunks
            last edited by

            @Chunks said in System Shuts Down when UPS does a Self Test:

            I asked in the Unraid forums about this, and they pointed to a bug report that was recently (end of october) fixed with NUT: https://github.com/networkupstools/nut/issues/2104

            I'll have a look shortly.

            1 Reply Last reply Reply Quote 1
            • dennypageD
              dennypage @Chunks
              last edited by

              @Chunks said in System Shuts Down when UPS does a Self Test:

              Unfortunately, I'm a little confused by the versioning that's going on here. It seems possible to me, that the PFSense package is using a release from just before this fix? Even though it's labeled as 2.8.2 in the pfsense Package list, I'm not sure if that directly correlates to the underlying NUT version.

              From the NUT support thread:

              The version of NUT is actually FreeBSD's nut-devel-2023.10.07_1, which is based on git just prior to the 2.8.1 release. You can see this on the Installed Packages screen. The upper level package, pfSense-pkg-nut-2.8.2, is labeled as 2.8.2 because of a mistake being made at the moment of package publication. This is mentioned earlier in this thread. The published package should have been pfSense-pkg-nut-2.8.1_1, but once it was published as 2.8.2 the version number could not be downgraded. It doesn't affect anything other than human perception. If you really want to know more, you can read the discussions in the Redmine and Git PRs.

              1 Reply Last reply Reply Quote 1
              • M
                mtk67
                last edited by

                FWIW, I am having the same problem as OP. My pfSense is the ONLY device that is randomly shutting down. I have Synology NAS devices also running NUT client (slave) to the same NUT server that is on a Rasp PI and they stay up the entire time. This started a couple of weeks ago and has happened twice now (I think each time was a Friday). I'm fairly certain this started around the time of the pfSense 23.09-1 release.

                NUT Server 2.7.4 (on a Rasp Pi)
                pfSense+ 23.09-1-Release
                NUT 2.8.2 package on pfSense

                Is there any way to tell when the NUT server will next run a system test? Maybe I could keep an eye on things and see what occurs.

                I'm guessing the resolution to this needs to come in the way of a NUT package update or another pfSense patch or update?

                dennypageD A 2 Replies Last reply Reply Quote 0
                • dennypageD
                  dennypage @mtk67
                  last edited by

                  @mtk67 with your current configuration, you will need to wait for a NUT update. However if you reverse the situation and run pfSense as the master/primary and Synology as the slave/secondary, it will also solve your issue. FWIW, using Synology as the primary is not best practice--see the NUT support thread for info on this.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mtk67 @dennypage
                    last edited by

                    @dennypage Thanks but I didn't say I was running Synology as the primary. They are configured as slaves/clients just like the pfSense is. The primary is on a raspberry pi.

                    dennypageD 1 Reply Last reply Reply Quote 0
                    • A
                      alhaunts @mtk67
                      last edited by

                      @mtk67 said in System Shuts Down when UPS does a Self Test:

                      Is there any way to tell when the NUT server will next run a system test? Maybe I could keep an eye on things and see what occurs.

                      According to APC, most of their UPS's run a self test every 14 days. Other brands, IDK.

                      1 Reply Last reply Reply Quote 0
                      • dennypageD
                        dennypage @mtk67
                        last edited by

                        @mtk67 said in System Shuts Down when UPS does a Self Test:

                        Thanks but I didn't say I was running Synology as the primary. They are configured as slaves/clients just like the pfSense is. The primary is on a raspberry pi.

                        My bad. Yes, running NUT on the pi is a good choice.

                        It's going to take an update to NUT on pfSense to address the issue. I'm working on that. As a temporary workaround until an update is published, you could have pfSense as the primary.

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mtk67 @dennypage
                          last edited by

                          @dennypage No worries. Just wanted to clarify. I really appreciate the info and the suggestion for a temporary fix. I was beginning to worry that I was having a problem with the power supply on the device running pfSense with the random issues, but glad I found this thread and have a better understanding of what is likely occurring. I look forward to the fix in NUT. I may take your advice on the workaround too. Cheers and Happy New Year.

                          1 Reply Last reply Reply Quote 1
                          • S SteveITS referenced this topic on
                          • N NeVaR referenced this topic on
                          • N
                            NeVaR
                            last edited by NeVaR

                            I would like also like to point out that I also experienced the same thing. I'm running Synology as the primary but it is running on DSM 6.2 so nothing change on Synology. In my case the system shuts down twice but gap is more than 30 days. I also check the log on synology and there no power outage. I'm guessing there change to NUT package that it is very sensitive? Also, have truenas and it didn't report any issue and didn't shutdown.

                            EDIT: for the meantime, I disable the nut services for now.

                            dennypageD 1 Reply Last reply Reply Quote 0
                            • dennypageD
                              dennypage @NeVaR
                              last edited by

                              @NeVaR There is an issue in NUT in the current version of nut-devel in pfSense's copy of the FreeBSD repo. It is fixed upstream, and hopefully will be fixed in the pfSense copy soon.

                              As an aside, I would recommend that you move the primary to pfSense rather than the Synology. As noted above, running the Synology as primary is not best practice.

                              N 1 Reply Last reply Reply Quote 0
                              • N
                                NeVaR @dennypage
                                last edited by

                                @dennypage said in System Shuts Down when UPS does a Self Test:

                                @NeVaR There is an issue in NUT in the current version of nut-devel in pfSense's copy of the FreeBSD repo. It is fixed upstream, and hopefully will be fixed in the pfSense copy soon.

                                As an aside, I would recommend that you move the primary to pfSense rather than the Synology. As noted above, running the Synology as primary is not best practice.

                                Unfortunately, synology dsm 6.2 has limited support as nut client. I will try with another UPS

                                dennypageD 1 Reply Last reply Reply Quote 0
                                • dennypageD
                                  dennypage @NeVaR
                                  last edited by dennypage

                                  @NeVaR said in System Shuts Down when UPS does a Self Test:

                                  Unfortunately, synology dsm 6.2 has limited support as nut client. I will try with another UPS

                                  It's been a while, but DSM 6 had support for remote NUT. They don't document anything but connecting to another Synology ("Synology UPS server"), but as long as you use the required values for ups name, user name and user password, it works fine.

                                  1 Reply Last reply Reply Quote 0
                                  • S SteveITS referenced this topic on
                                  • P
                                    pfguy2018
                                    last edited by

                                    I think I am experiencing the same issue, as I outlined here https://forum.netgate.com/topic/185262/sg5100-shutting-down-unexpectedly

                                    I get the following system log entries
                                    1dc15621-d6ea-47d5-9005-bb3c26754052-image.png

                                    I am running pfSense as the primary, with two Synology-s as secondary units (slaves?)

                                    I guess I just have to wait for the package to be updated on pfSense?

                                    dennypageD 1 Reply Last reply Reply Quote 0
                                    • dennypageD
                                      dennypage @pfguy2018
                                      last edited by

                                      @pfguy2018 If you look in the NUT support thread, you will find executables you can use in the interim.

                                      P 1 Reply Last reply Reply Quote 0
                                      • P
                                        pfguy2018 @dennypage
                                        last edited by

                                        @dennypage Thanks!

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