Open chocmake opened 3 weeks ago
NUT 2.7.4 is a couple of years old now, do you have any chance to try a newer version? There have been numerous improvements in all areas since then, so it might be worth a shot. See here on how to INSTALL from source: https://github.com/networkupstools/nut/blob/master/INSTALL.nut.adoc
NUT 2.7.4 is a couple of years old now, do you have any chance to try a newer version?
On Bullseye 2.7.4-13 is the only latest version available per apt-cache
. It looks like Bookworm's latest is v2.8.0-7 (though have read various issues with Bookworm on Zero 2 W models).
Compiling from source looks a bit more involved, though if that's the only way around this I may have to try it sometime.
I suppose a workaround would be scheduling some script to periodically read the service's logs and trigger a service restart? Though I ran into the timeout issues with that above, so I'd also have to implement fallbacks.
Well, 2.7.4 is actually close to 8.5 years old now (Mar 2016).
As for building, check also https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests - it lists dependencies/tools as well as the methodology; current recipes have a good chance to inherit build settings detected from the older installation to become a sort of in-place ad-hoc replacement.
With CPS, it may also help to increase the polling rate - their controllers apparently go into power-saving or something, if poked only every half a minute (default).
Thanks. My pollinterval
is already rather low (2 seconds), so upped my maxretry
to 5
per the Arch wiki suggestion. I've also implemented the usb_resetter suggestion and I'll see how it fares over the coming month.
Otherwise I'll probably have to try the source route.
Twice in the last couple months I happened to notice that the NUT server wasn't resolving info about the UPS when queried, that would be resolved when either the
nut-server
service was restarted or the server rebooted. Below is the most recent experience.SSH'ing into the server I checked the
nut-server
andnut-monitor
logs and they were reporting that the connection to the UPS was 'unavaiable' / timing out. Both services reported active status though.When I tried to restart
nut-server
viasudo systemctl restart nut-server
it failed:However, immediately upon starting the service using
sudo systemctl start nut-server
the connection to the UPS was logged as being established again (both in the server and client terminal SSH sessions) and everything went back to normal.Environment:
/etc/nut/ups.conf