October 31, 20178 yr Unraid 6.3.5 Here's my UPS settings screen: I've tested the UPS using apctest and verified, it'll actually run over 30 minutes under load. However, if there's even a tiny power flicker and the UPS kicks over to battery, unraid goes into its shutdown process. I get emails that the UPS went to battery and then immediately a second email that shutdown has begun because [whatever criteria I have set for shutdown has been reached]. And then I get an email that power's been restored, but the system still shuts down. I've tried using the "shutdown when runtime is less than 10 minutes" or "shutdown when battery is below 50%" and it doesn't matter, it always starts shutdown immediately if power flickers. Everything else hooked to that UPS keeps running fine. I've pulled the plug while having the UPS setting screen up, and it still shows accurate data (on battery, 98% charge, 36 min runtime) at the same time I'm getting an email that the system is shutting down because there's less than 50% battery remaining. Any idea what's wrong? The UPS is pretty useless (and in fact worse than not having it), unless I disconnect it and then unraid would just lose power when the UPS ran out if the power was actually out for a while.
October 31, 20178 yr Some of the settings don't look right. Specifically "MINTIMEL" and " MAXTIME " should both be 0 in your screenshot, I think? That's possibly what is tripping the shutdown, since as soon as your UPS goes on battery, it will fail the MINTIMEL check and shut down. Also is the BATTDATE listed there correct? The battery is from 2004? or have you replaced it more recently then that? Can you telnet to your server and check what the output from cat /boot/config/plugins/dynamix.apcupsd/dynamix.apcupsd.cfg is? Edited October 31, 20178 yr by SnickySnacks
October 31, 20178 yr Author Yes, I've replaced the battery, just never reset the date on it (didn't know until messing with unraid that you even could!) I don't know when I last replaced the battery, but I have tested it this week and it ran all the connected stuff (unraid server, some network stuff) for over 30 minutes in a self test (had to disable the ups daemon in unraid to do that) SERVICE="enable" UPSCABLE="usb" CUSTOMUPSCABLE="" UPSTYPE="usb" DEVICE="" BATTERYLEVEL="50" MINUTES="" TIMEOUT="" KILLUPS="no" Ok... so a bunch of googling now that you pointed me in the right direction with the mintimel and maxtime... apparently if I leave the "runtime left" and "time on battery" fields in the unraid settings blank (like in the setting picture in the original post), then they are filled in with huge random numbers. Every time I stop and restart the service, it's different. So now I have my settings as shutdown at 50% battery left, or 10 min runtime left, or 15 min on battery. And now the mintimel and maxtime data matches that. Guess I just can't leave things blank, at least with my really old UPS unit. (seriously, it's so old it's beige!)
October 31, 20178 yr Author I haven't tested it yet (everyone's in bed and it beeps pretty loud, so I'll try it tomorrow) but I'm optimistic that it's fixed. Thanks!
Archived
This topic is now archived and is closed to further replies.