-
@chrcoluk said in UPS Battery test triggering pfSense shutdown.:
New UPS
Changing the battery wasn't easier ? ;)
-
We have many APC UPSs on PCs and over the years a decent portion of them trigger "self test failed" and the PC reboots because the battery can't handle the load of the PC, and the PC loses power. This is more common with old batteries. APC recommends replacing the battery every 3-5 years depending on ambient temperature (higher is worse) and time on battery. I would say 5 years is pretty common for self test failures to start occurring.
So to answer your question I would say it is absolutely possible for the self test to trigger a situation where the UPS thought it didn't have enough runtime to last the 3 minutes. I am however a bit surprised it completed the shutdown cleanly since as I said usually the device just loses power.
-
@Gertjan no as this UPS doesnt have swappable battery. Plus it was planned to replace it anyway. The estimated minutes before running out was over 5 minutes. (at 44%),
-
@teamits said in UPS Battery test triggering pfSense shutdown.:
We have many APC UPSs on PCs and over the years a decent portion of them trigger "self test failed" and the PC reboots because the battery can't handle the load of the PC, and the PC loses power. This is more common with old batteries. APC recommends replacing the battery every 3-5 years depending on ambient temperature (higher is worse) and time on battery. I would say 5 years is pretty common for self test failures to start occurring.
So to answer your question I would say it is absolutely possible for the self test to trigger a situation where the UPS thought it didn't have enough runtime to last the 3 minutes. I am however a bit surprised it completed the shutdown cleanly since as I said usually the device just loses power.
Note the PC is on the UPS as well, that stayed powered. So power was actually been supplied via the battery, but it drained super fast tho, first test drained circa 40% in 6 seconds. It is a 700 watt UPS which was at around 30% load.
-
@chrcoluk said in UPS Battery test triggering pfSense shutdown.:
test drained circa 40% in 6 seconds
That would explain why the pfSense thought it had less than the 3 minutes of runtime remaining, and shut down.
To me that means either the battery is old, or there is way too much power draw through the UPS (too many things plugged in and the battery can't handle it).
-
With a battery going flat that quick it would not surprise me to find the control software throws some unexpected results. Some of those calculations are probably waaay outside the expected performance window, they might just show as invalid.
Just replace the battery/usp.
Steve
-
The UPS seems to show same estimated battery life times as before, but it just drains super fast.
New UPS is here, I will probably swap it out tomorrow after some sleep.
-
Ok I am using a new UPS now, I removed apcupsd as its not an APC UPS. I had to completely remove that package as when you disable it for some reason it still starts up.
However I notice NUT has no configuration options for when to shut down, whilst in apcupsd it is configurable.
My preferred setup is for pfSense only to shutdown when there is barely any time left on the battery, so e.g. below 5 or below a couple of minutes (it takes barely 5 seconds to shutdown). I then have PC connected via network to NUT network service want that to auto sleep/hibernate with say 30% battery left.
Any of you guys who use NUT have an idea how the shutdown behaviour locally on pfSense is configured?
Ran a manual battery test, PC on with game running, pfSense was not shut down this time (although dont know if NUT is configured to do that), and the estimated run time was static.
https://imgur.com/NKyxHL5
--
Been doing a lot of reading into it, I think I now see why people who replied said they had issues with it not shutting down in time, so NUT on monitored UPS (which is auto added by the pfSense package) will issue a shutdown on critical battery state instead of low. Someone on reddit said they edited source code to change it to low, but interesting.
-
@chrcoluk
Looking for same functionality (perform graceful shutdown when UPS battery almost dead).
Also have non-ACP UPS. Did you figure out a way to do this? -
@ck42 said in UPS Battery test triggering pfSense shutdown.:
Looking for same functionality (perform graceful shutdown when UPS battery almost dead).
Also have non-ACP UPS. Did you figure out a way to do this?This is what NUT does by default. Shutdown is initiated when the UPS declares a low battery situation.
The original post (almost 3 years ago) was likely just an old battery in need of replacement, so the UPS declared a low battery situation almost immediately. Most people don't understand (or accept) that UPS batteries should be replaced every 3 years or so. Never more than 5 years, unless they are lithium.
-
@dennypage
That's great news! Appreciate the feedback on a really old post! -