UPS service unable to shutdown server

Joined
Feb 9, 2023
Messages
2
Hello,

I run the UPS service on TrueNAS core, it's connected and communicating to my NUT server.
I know it's connected/communicating because when I unplug the UPS power, the TrueNAS server accurately emails me that it's gone on battery.

What follows then is confusing, instead of shutting down as configured, it switches off the "UPS Service", and does not shut down the server.

I figure this might be a bug?
I'm running TrueNAS-13.0-U3 and see screenshot of my config

1675995005798.png
 
Joined
Feb 9, 2023
Messages
2
Found the answer here

For future reference, if you have set a shutdown command "/sbin/shutdown -p now" when using TrueNAS Core/FreeNAS (FreeBSD based) this command will not work for TrueNAS Scale after migration . You need to remove the command or change to "/sbin/shutdown -P now" or it will hang the UPS service. Note the capital letter P.
Thanks to Muhammad Rehan at iXsystems for diagnosing this issue.
 
Top