kantlivelong / OctoPrint-UPS

Integrates a UPS monitored by NUT into OctoPrint
GNU Affero General Public License v3.0
17 stars 7 forks source link

Configured UPS Offline? #14

Open InoSiX opened 1 year ago

InoSiX commented 1 year ago

Hiya!

Back again. Wanted to get my printers up and running again, but I was forced to restore a backup for my RPi. I got my NUT Server up and running again. UPSC nameOfUPS provides a lot of feedback (including device model and serial) so I think NUT is working fine ---

(An aside, I just checked by performing the command with the cable disconnected and it failed, as expected. I am connected via NUT as far as I can tell)

The RPI interface shows OFFLINE. I double checked the UPS plugin configuration page, I see my UPS. Is there anything I can do to get to the bottom of this?

InoSiX commented 1 year ago

Alright, doing some digging, it seems to be related to the NUT UPS Monitor Service, not the Server. I ended up adding:

maxstartdelay = 45 maxretry = 5 retrydelay = 5

to my /etc/nut/ups.conf. Reboot with this in place seemed to work. I don't know if this is signs of a bigger problem, but it fixes my issue for the time being.

InoSiX commented 1 year ago

This issue appears to be intermittent. Before I did what is described above, it stictly stopped working. It is currently working, however not every time. It seems to work correctly some 30% of the time.