-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Similar to #353 I have the problem that NUT reports "Data stale" after I have done a home assistant core update.
After a restart of the addon the problem always resolves itself.
Is there maybe on option to detect HA Core updates and auto restart the addon?
System: x86_64 VM in Proxmox VE9
Installation method: Home Assistant OS
Core: 2026.2.3
Supervisor 2026.02.2
Operating System: 17.1
Frontend: 20260128.6
NUT Version: 0.17.0
UPS connected via USB: Eaton EL650USBDIN
NUT Addon Log:
�[34m Add-on: Network UPS Tools�[0m
�[34m Manage battery backup (UPS) devices�[0m
�[34m-----------------------------------------------------------�[0m
�[34m Add-on version: 0.17.0�[0m
�[32m You are running the latest version of this add-on.�[0m
�[34m System: Home Assistant OS 17.1 (amd64 / qemux86-64)�[0m
�[34m Home Assistant Core: 2026.2.2�[0m
�[34m Home Assistant Supervisor: 2026.02.1�[0m
�[34m-----------------------------------------------------------�[0m
�[34m Please, share the above information when looking for help�[0m
�[34m or support in, e.g., GitHub, forums or the Discord chat.�[0m
�[34m-----------------------------------------------------------�[0m
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[14:10:45] INFO: �[32mConfiguring timezone (Europe/Berlin)...�[0m
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/nut.sh
[14:10:45] INFO: �[32mSetting mode to netserver...�[0m
[14:10:45] INFO: �[32mGenerating /etc/nut/upsd.users...�[0m
[14:10:45] INFO: �[32mConfiguring user: marc�[0m
[14:10:45] INFO: �[32mPassword is NOT in the Have I Been Pwned database! Nice!�[0m
[14:10:45] INFO: �[32mConfiguring Device named Eaton_EL650USBDIN...�[0m
[14:10:45] INFO: �[32mStarting the UPS drivers...�[0m
Using subdriver: MGE HID 1.46
Network UPS Tools - Generic HID driver 0.52 (2.8.1)
USB communication driver (libusb 1.0) 0.46
using 'battery.charge' to set battery low state
using 'battery.runtime' to set battery low state
WARNING: Needed to fix group access to filesystem socket of this driver, but failed; run the driver with more debugging to see how exactly.
Consumers of the socket, such as upsd data server, can fail to interact with the driver and represent the device: /run/nut/usbhid-ups-Eaton_EL650USBDIN
Network UPS Tools - UPS driver controller 2.8.1
cont-init: info: /etc/cont-init.d/nut.sh exited 0
cont-init: info: running /etc/cont-init.d/nutclient.sh
cont-init: info: /etc/cont-init.d/nutclient.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun upsd (no readiness notification)
services-up: info: copying legacy longrun upsmon (no readiness notification)
[14:10:51] INFO: �[32mStarting the UPS information server...�[0m
0.000000 fopen /run/nut/upsd.pid: No such file or directory
0.000171 Could not find PID file '/run/nut/upsd.pid' to see if previous upsd instance is already running!
0.000414 [D1] debug level is '1'
0.000587 listening on 0.0.0.0 port 3493
0.000739 [D1] Succeeded to become_user(root): now UID=0 GID=0
0.000791 [D1] chdired into statepath /run/nut for driver sockets
0.000913 Connected to UPS [Eaton_EL650USBDIN]: usbhid-ups-Eaton_EL650USBDIN
0.000933 Found 1 UPS defined in ups.conf
0.003402 Running as foreground process, not saving a PID file
0.003478 upsnotify: notify about state 2 with libsystemd: was requested, but not running as a service unit now, will not spam more about it
0.003536 upsnotify: failed to notify about state 2: no notification tech defined, will not spam more about it
0.003572 upsnotify: logged the systemd watchdog situation once, will not spam more about it
[14:10:51] INFO: �[32mStarting the UPS monitor and shutdown controller...�[0m
0.000000 fopen /run/nut/upsmon.pid: No such file or directory
0.000010 Could not find PID file to see if previous upsmon instance is already running!
0.000105 Using power down flag file /etc/killpower
0.000235 UPS: Eaton_EL650USBDIN@localhost (primary) (power value 1)
0.000269 [D1] debug level is '1'
0.000328 Warning: running as one big root process by request (upsmon -p)
0.000393 [D1] Saving PID 323 into /run/nut/upsmon.pid
Init SSL without certificate database
0.008836 upsnotify: notify about state 2 with libsystemd: was requested, but not running as a service unit now, will not spam more about it
0.008851 upsnotify: failed to notify about state 2: no notification tech defined, will not spam more about it
0.008853 upsnotify: logged the systemd watchdog situation once, will not spam more about it
0.008855 [D1] Trying to connect to UPS [Eaton_EL650USBDIN@localhost]
0.019049 User upsmonmaster@127.0.0.1 logged into UPS [Eaton_EL650USBDIN]
0.009501 [D1] Logged into UPS Eaton_EL650USBDIN@localhost
s6-rc: info: service legacy-services successfully started
509296.514180 Data for UPS [Eaton_EL650USBDIN] is stale - check driver
509298.851545 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
502: Bad GatewayNetwork UPS Tools upsmon 2.8.1
509303.859836 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
509308.860343 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
...
509588.901191 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
509593.901480 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
{"message":"Event nut.ups_event fired."}Network UPS Tools upsmon 2.8.1
509598.902101 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
509603.902592 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
...
509893.947387 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
509898.948320 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
{"message":"Event nut.ups_event fired."}Network UPS Tools upsmon 2.8.1
509903.949969 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
509908.950359 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
...
510198.997141 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
510203.997591 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
{"message":"Event nut.ups_event fired."}Network UPS Tools upsmon 2.8.1
510209.000137 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
510214.001047 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
...
510374.025227 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
510379.025557 Poll UPS [Eaton_EL650USBDIN@localhost] failed - Data stale
s6-rc: info: service legacy-services: stopping
510382.096447 Signal 15: exiting
510382.106373 mainloop: Interrupted system call
510382.106473 Signal 15: exiting
510382.110133 [D1] driver_free: forgetting UPS [Eaton_EL650USBDIN] (FD 4)
Network UPS Tools upsd 2.8.1
Network UPS Tools upsmon 2.8.1
[11:57:13] INFO: �[32mupsd stopped, restarting...�[0m
[11:57:13] INFO: �[32mupsmon stopped, restarting...�[0m
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-timezone: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service base-addon-timezone successfully stopped
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
�[34m-----------------------------------------------------------�[0m
�[34m Add-on: Network UPS Tools�[0m
�[34m Manage battery backup (UPS) devices�[0m
�[34m-----------------------------------------------------------�[0m
�[34m Add-on version: 0.17.0�[0m
�[32m You are running the latest version of this add-on.�[0m
�[34m System: Home Assistant OS 17.1 (amd64 / qemux86-64)�[0m
�[34m Home Assistant Core: 2026.2.3�[0m
�[34m Home Assistant Supervisor: 2026.02.2�[0m
�[34m-----------------------------------------------------------�[0m
�[34m Please, share the above information when looking for help�[0m
�[34m or support in, e.g., GitHub, forums or the Discord chat.�[0m
�[34m-----------------------------------------------------------�[0m
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[11:57:17] INFO: �[32mConfiguring timezone (Europe/Berlin)...�[0m
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/nut.sh
[11:57:17] INFO: �[32mSetting mode to netserver...�[0m
[11:57:18] INFO: �[32mGenerating /etc/nut/upsd.users...�[0m
[11:57:18] INFO: �[32mConfiguring user: marc�[0m
[11:57:18] INFO: �[32mPassword is NOT in the Have I Been Pwned database! Nice!�[0m
[11:57:18] INFO: �[32mConfiguring Device named Eaton_EL650USBDIN...�[0m
[11:57:18] INFO: �[32mStarting the UPS drivers...�[0m
Using subdriver: MGE HID 1.46
Network UPS Tools - Generic HID driver 0.52 (2.8.1)
USB communication driver (libusb 1.0) 0.46
using 'battery.charge' to set battery low state
using 'battery.runtime' to set battery low state
WARNING: Needed to fix group access to filesystem socket of this driver, but failed; run the driver with more debugging to see how exactly.
Consumers of the socket, such as upsd data server, can fail to interact with the driver and represent the device: /run/nut/usbhid-ups-Eaton_EL650USBDIN
Network UPS Tools - UPS driver controller 2.8.1
cont-init: info: /etc/cont-init.d/nut.sh exited 0
cont-init: info: running /etc/cont-init.d/nutclient.sh
cont-init: info: /etc/cont-init.d/nutclient.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun upsd (no readiness notification)
services-up: info: copying legacy longrun upsmon (no readiness notification)
[11:57:24] INFO: �[32mStarting the UPS information server...�[0m
0.000000 fopen /run/nut/upsd.pid: No such file or directory
0.000097 Could not find PID file '/run/nut/upsd.pid' to see if previous upsd instance is already running!
0.000301 [D1] debug level is '1'
0.000357 listening on 0.0.0.0 port 3493
0.000420 [D1] Succeeded to become_user(root): now UID=0 GID=0
0.000432 [D1] chdired into statepath /run/nut for driver sockets
0.000504 Connected to UPS [Eaton_EL650USBDIN]: usbhid-ups-Eaton_EL650USBDIN
0.000520 Found 1 UPS defined in ups.conf
0.001354 Running as foreground process, not saving a PID file
0.001388 upsnotify: notify about state 2 with libsystemd: was requested, but not running as a service unit now, will not spam more about it
0.001401 upsnotify: failed to notify about state 2: no notification tech defined, will not spam more about it
0.001410 upsnotify: logged the systemd watchdog situation once, will not spam more about it
s6-rc: info: service legacy-services successfully started
[11:57:24] INFO: �[32mStarting the UPS monitor and shutdown controller...�[0m
0.000000 fopen /run/nut/upsmon.pid: No such file or directory
0.000017 Could not find PID file to see if previous upsmon instance is already running!
0.000216 Using power down flag file /etc/killpower
0.000287 UPS: Eaton_EL650USBDIN@localhost (primary) (power value 1)
0.000308 [D1] debug level is '1'
0.000333 Warning: running as one big root process by request (upsmon -p)
0.000385 [D1] Saving PID 325 into /run/nut/upsmon.pid
Init SSL without certificate database
0.005275 upsnotify: notify about state 2 with libsystemd: was requested, but not running as a service unit now, will not spam more about it
0.005291 upsnotify: failed to notify about state 2: no notification tech defined, will not spam more about it
0.005294 upsnotify: logged the systemd watchdog situation once, will not spam more about it
0.005296 [D1] Trying to connect to UPS [Eaton_EL650USBDIN@localhost]
0.509907 User upsmonmaster@127.0.0.1 logged into UPS [Eaton_EL650USBDIN]
0.005863 [D1] Logged into UPS Eaton_EL650USBDIN@localhost```
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels