Do you have any backup power like home inverter or something?
I had same problem. Reason was i got inverter+pc ups.
You can't use both.
Try to check the power supply and make sure at power failure time you have only ups backup and not both ups+inverter.