System Shuts Down when UPS does a Self Test
-
@alhaunts yes but it's being told to shut down. The cable is going from the UPS to pfSense? It might not actually lose power so the other stuff stays on but if it has less than "n" minutes remaining it will tell pfSense to shut down.
Stated another way the UPS may think it has 30 minutes runtime until it actually switches on battery and finds out it has 1 minute.
I've not used NUT, though, we've only used apcupsd. (or of course a lot of Windows PowerChute installs). Not that that would make a real difference.
-
@alhaunts said in System Shuts Down when UPS does a Self Test:
It is an APC UPS, but the battery is pretty fresh and the NAS it is connected directly to stays up as does a 2nd NAS connected remotely. Only the PfSense box shuts down.
The client is being directed to shut down by the server.
If by "NAS" you mean Synology? As of DSM 7 Synology systems no longer actually shut down, but just enters a quiescent mode. Also, check and make sure that you have not enabled "Customize time" in the UPS configuration.
-
@dennypage FYI, under control panel, hardware & power, UPS there is a checkbox to enable shutdown when the UPS enters standby mode.
-
@jeff3820 said in System Shuts Down when UPS does a Self Test:
FYI, under control panel, hardware & power, UPS there is a checkbox to enable shutdown when the UPS enters standby mode.
What version of DSM?
I'm currently running DSM, 7.2.1-69057, and it does not have that checkbox. It only has "Time before DiskStation enters Standby Mode." For me, and several folk I have worked with, that option went away when upgrading from DSM 6 to DSM 7.
Digging through the NUT configuration and scripts generated my DSM, it seemed clear that doesn't ever actually perform a power off. It's not a big issue for me, because the UPS is principally a bridge for a generator, but I did dig into it a fair bit during the DSM 7 beta.
Now, you may have a different Synology model than I do... YMMV.
-
@dennypage This NAS is an older DS215j running 7.1.1 update 5
-
@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.
-
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.
-
@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.
-
@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.
-
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 pfSenseIs 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?
-
@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.
-
@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.
-
@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.
-
@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.
-
@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.
-
-
-
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.
-
@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.
-
@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
-
@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.
-
-
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
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?