hassio-addons / addon-nut

Network UPS Tools - Home Assistant Community Add-ons
https://addons.community
MIT License
188 stars 36 forks source link

UPS monitoring fails randomly with "Poll UPS [myups@localhost] failed - Data stale" #342

Closed mdeweerd closed 8 months ago

mdeweerd commented 9 months ago

Problem/Motivation

UPS monitoring stops working.

258 does not seem to apply.

Expected behavior

UPS monitoring should recover from issue.

Actual behavior

1815092.070849  Poll UPS [myups@localhost] failed - Data stale
{"message":"Event nut.ups_event fired."}Network UPS Tools upsmon 2.8.0
1815097.072802  Poll UPS [myups@localhost] failed - Data stale
1815102.073765  Poll UPS [myups@localhost] failed - Data stale
1815107.074959  Poll UPS [myups@localhost] failed - Data stale
1815112.076173  Poll UPS [myups@localhost] failed - Data stale
1815117.076867  Poll UPS [myups@localhost] failed - Data stale
1815122.078012  Poll UPS [myups@localhost] failed - Data stale
1815127.079186  Poll UPS [myups@localhost] failed - Data stale
1815132.080387  Poll UPS [myups@localhost] failed - Data stale
1815137.081259  Poll UPS [myups@localhost] failed - Data stale
1815142.081916  Poll UPS [myups@localhost] failed - Data stale
1815147.084200  Poll UPS [myups@localhost] failed - Data stale
1815152.085375  Poll UPS [myups@localhost] failed - Data stale
1815157.086589  Poll UPS [myups@localhost] failed - Data stale
1815162.087291  Poll UPS [myups@localhost] failed - Data stale
1815167.088207  Poll UPS [myups@localhost] failed - Data stale
1815172.088724  Poll UPS [myups@localhost] failed - Data stale

Steps to reproduce

No method found to reproduce.

No correlation to updates.

Here we can see that the system runs fin for a long time and fails uncorrelated to the states shown.

image

Proposed changes

Config

users:
  - actions: []
    instcmds:
      - all
    username: USERNAME
    password: PASSWORD
devices:
  - config: []
    driver: usbhid-ups
    name: myups
    port: auto
mode: netserver
shutdown_host: "false"
list_usb_devices: true
github-actions[bot] commented 8 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

mdeweerd commented 8 months ago

Probably still an issue as I had an uninvestigated lack of data yesterday or the day before and my add-on is up-to-date.

However, I close tickets myself before bots do.