APC UPS causing reboot

barrydocks

Member
May 3, 2023
35
2
13
Had a very brief 2 second power outage at night, APC covered it but PVE server rebooted after the main power was resorted. Not sure why.

Code:
Jun 30 21:53:10 seren apcupsd[2742711]: Power failure.
Jun 30 21:53:12 seren apcupsd[2742711]: Power is back. UPS running on mains.
-- Reboot --

Also have a PBS on the same APC UPS as a slave device, this stayed up.

Any ideas why this happened or where i can look?
 
Check your apcupsd.conf file on the main server (man page). Even if the UPS maintains power, the configuration file may be set to shutdown safely before the battery is completely empty, or immediately, etc.

Check for :
  • ONBATTERYDELAY: Number of seconds after power loss before shutdown begins
  • BATTERYLEVEL, MINUTES, or TIMEOUT: Optional conditions that can also trigger shutdown
 
Check your apcupsd.conf file on the main server (man page). Even if the UPS maintains power, the configuration file may be set to shutdown safely before the battery is completely empty, or immediately, etc.

Check for :
  • ONBATTERYDELAY: Number of seconds after power loss before shutdown begins
  • BATTERYLEVEL, MINUTES, or TIMEOUT: Optional conditions that can also trigger shutdown
Yeah, I've had a fiddle with these, disabled the ONBATTERDELAY and will see what happens
Thanks for your reply
 
  • Like
Reactions: MagicFab
Test ! No other way :)

You can ask AI to validate your file or elaborate on what you want to generate a file.
Also the the value for KILLDELAY, it should always be at least 30 seconds or whatever time it take for clean shutdown + ~15s.