What's wrong with my NUT (Network UPS Tools)? No longer connects. Log included

Hello, I’ve been having trouble with NUT on Home Assistant. Can anyone help troubleshoot? Log is below.

This worked fine for quite a while and then one day I noticed data not coming in. It’s been offline now for months. Latest versions of everything didn’t help (at the time).

I assume the error is this “Can’t claim USB device [0764:0601]@0/0: Entity not found.”

Log:

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
[13:33:37] INFO: Setting mode to netserver...
[13:33:37] INFO: Connected USB devices:
Bus 002 Device 003: ID 0bda:0415 Realtek Semiconductor Corp. 2-Port USB 3.0 Hub
Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 0bda:5415 Realtek Semiconductor Corp. 2-Port USB 2.0 Hub
Bus 001 Device 016: ID 0764:0601 Cyber Power System, Inc. PR1500LCDRT2U UPS
Bus 001 Device 017: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
Bus 001 Device 021: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 004: ID 10c4:8a2a Silicon Labs HubZ Smart Home Controller
Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[13:33:37] INFO: Generating /etc/nut/upsd.users...
[13:33:37] INFO: Configuring user: upsmon
[13:33:38] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[13:33:39] INFO: Configuring Device named networkups...
[13:33:39] INFO: Configuring Device named ps5ups...
[13:33:39] INFO: Starting the UPS drivers...
Using subdriver: CyberPower HID 0.6
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
Network UPS Tools - UPS driver controller 2.8.0
Can't claim USB device [0764:0601]@0/0: Entity not found
Driver failed to start (exit status=1)
cont-init: info: /etc/cont-init.d/nut.sh exited 1
cont-init: info: running /etc/cont-init.d/nutclient.sh
cont-init: info: /etc/cont-init.d/nutclient.sh exited 0
cont-init: warning: some scripts exited nonzero
s6-rc: warning: unable to start service legacy-cont-init: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
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 fix-attrs successfully stopped
s6-rc: info: service base-addon-timezone 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

-----------------------------------------------------------
 Add-on: Network UPS Tools
 Manage battery backup (UPS) devices
-----------------------------------------------------------
 Add-on version: 0.13.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.4  (amd64 / generic-x86-64)
 Home Assistant Core: 2024.4.3
 Home Assistant Supervisor: 2024.06.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
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
[13:33:47] INFO: Configuring timezone (America/New_York)...
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
[13:33:48] INFO: Setting mode to netserver...
[13:33:48] INFO: Connected USB devices:
Bus 002 Device 003: ID 0bda:0415 Realtek Semiconductor Corp. 2-Port USB 3.0 Hub
Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 0bda:5415 Realtek Semiconductor Corp. 2-Port USB 2.0 Hub
Bus 001 Device 016: ID 0764:0601 Cyber Power System, Inc. PR1500LCDRT2U UPS
Bus 001 Device 017: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
Bus 001 Device 021: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 004: ID 10c4:8a2a Silicon Labs HubZ Smart Home Controller
Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[13:33:49] INFO: Generating /etc/nut/upsd.users...
[13:33:49] INFO: Configuring user: upsmon
[13:33:49] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[13:33:50] INFO: Configuring Device named networkups...
[13:33:51] INFO: Configuring Device named ps5ups...
[13:33:51] INFO: Starting the UPS drivers...
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
Using subdriver: CyberPower HID 0.6
Can't claim USB device [0764:0601]@0/0: Entity not found
Driver failed to start (exit status=1)
cont-init: info: /etc/cont-init.d/nut.sh exited 1
cont-init: info: running /etc/cont-init.d/nutclient.sh
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
Network UPS Tools - UPS driver controller 2.8.0

Config:

- name: networkups
  driver: usbhid-ups
  port: auto
  config: []
  pollinterval: 15
  pollonly: enabled
- name: ps5ups
  driver: usbhid-ups
  port: auto
  config: []
  pollinterval: 15
  pollonly: enabled

What other information is needed here?

Thank you!

Check with the add-on author, and that message seems to have good clues.

What sort of HA installation are you running (OS or supervised),what hardware, virtualised?

Did you update HA OS recently?

Have you tried this?

  1. Stop the nut addon
  2. Unplug the USB cable to the UPS
  3. Wait a few seconds
  4. Connect the USB cable to the UPS
  5. Start the NUT addon.

Can you connect the UPS to a laptop running NUT or the UPS proprietary software?

If not, try shutting the UPS down, and restarting it. If it still does not connect to the laptop then it could be an issue with your UPS. This is the least likely scenario.

Another unlikely scenario but worth checking, replace the USB cable.

Thanks, Tom. I’m running HAOS. I have updated it since it stopped working, but that didn’t fix it. I’ve tried those five steps, many times. I didn’t try out the proprietary software, though. I have two units, which I’ve tried separately. Can’t believe both would be bad.

I found some good info based on the warning that Sir_G pointed out, but also a lot of folks with unresolved similar issues.

For some unknown (but surely dumb) reason, a lot of folks have luck resolving this with a shutdown of the host and then powering it up again. I want to try that when I’m able to. I’ll shut everything down, including the UPS units, and do all of my updates, too. Hopefully, I won’t be back.

Thanks for the help.

Googling around some … seems the driver can’t talk to the physical UPS. One user reported that he resolved this by rebooting his UPS.