I have a remote Pi4 running Buster and Network UPS Tools 2.7.4.
Most of the time it works fine, but after a long power outage and NUT shutdown, the Pi cannot connect to the UPS.
pi@raspmountain:~/webcam $ upsc apc500
Error: Connection failure: Connection refused
If I reboot, it connects fine:
pi@raspmountain:~/webcam $ upsc apc500
Init SSL without certificate database
battery.charge: 100
battery.charge.low: 10
<snip>
I don't know why this is or how to fix it. I have searched extensively and while I have found answers to similar questions, none about this specific problem.
I have tried restarting the nut-driver.service, but that doesn't work.
Note that this is a standalone NUT installation. The Server and client services are not needed. There is no networking involved. The NUT driver service never starts because the UPS doesn't show up on the USB bus after a cold boot. It takes a warm boot to get the UPS to connect. I need to figure out how to get the UPS to connect without having to boot the Pi.
systemdunit? Have you searched the Internet with the symptoms you've described? If not - why? If so - why isn't it mentioned in your question? – Seamus Apr 23 '22 at 08:59