UPS service starting although autostart is disabled (after upgrade from CORE)

Benni.blanko

Dabbler
Joined
Dec 18, 2021
Messages
31
Hi there,
I upgraded one server from Core 15U5.3 to Scale 23.10.0.1 with only one small glitch:
UPS services are started, although "Start automatically" is disabled.
That produces warning emails as there is no UPS connected (see below).
Anything I can do about this UPS service mis-behaviour?



New alerts:
  • Communication with UPS ups lost.

    UPS Statistics: 'ups'

    Statistics could not be recovered
 

Benni.blanko

Dabbler
Joined
Dec 18, 2021
Messages
31
I did more investigations and found this two UPS related services:

nut-monitor.service loaded active running Network UPS Tools - power device monitor and shutdown controller
● nut-server.service loaded failed failed Network UPS Tools - power devices information server

So I the ups services are disabled in the Truenas GUI, but there are still services started. Is that working as intended?
I also tried to disabled both by
systemctl disable xxx
But on the next restart both are active again.

How can the services be de-activated permanently?
However, I don't even care if the services are started and reporting degrading, it's just the generated warning mails that are generated. Where can I disabled this special alarming?
 

das1996

Dabbler
Joined
May 26, 2020
Messages
25
@Benni.blanko Looks like this is a known issue and reported/fixed already.




This fix appears to affect 2 files. The edits are quite simple.

Files in question are located at the paths below

/usr/lib/systemd/system-preset/10-truenas.preset
/lib/python3/dist-packages/middlewared/plugins/service_/services/ups.py

Wait until Truenas scale 23.10.1 is released or make the changes yourself as indicated in the github commit. Make backup of files first before editing anything.

I applied the fix manually. No more ups service restarts on reboot.
 
Top