hassio-addons / addon-nut

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

The HOST is rebooted after the add-on is launched #330

Closed Onizyka closed 8 months ago

Onizyka commented 10 months ago

Problem/Motivation

The HOST is rebooted after the add-on is launched

Actual behavior

Reboots the host completely.

Steps to reproduce

Core 2023.11.1 Supervisor 2023.11.0 Operating System 11.1 UPS: APC-UPS Back CS 600 config: users:

Изображение WhatsApp 2023-11-09 в 01 34 06_3619a916

After that, reboot the host.

Host is Intel NUC.

sinclairpaul commented 10 months ago

There is nothing in your log that shows that the addon rebooted the host, perhaps you could check your HA logs?

Onizyka commented 10 months ago

no logs... disconnecting is like turning off the power.

Onizyka commented 10 months ago

https://github.com/hassio-addons/addon-nut/assets/63815254/d0e956a4-ae2b-4047-a711-9be31e55f519

sinclairpaul commented 10 months ago

Then it's likely a hardware issue, possibly with your UPS, I would suggest troubleshooting it outside of Home Assistant, there is nothing that can be done from the Addon.

Onizyka commented 10 months ago

The UPS is not connected.

Onizyka commented 10 months ago

The problem is with the connected UPS, which is not connected.

There are no problems running this add-on on another server. Can be used with Intel NUC processor: Intel(R) Atom(TM) CPU E3815 @ 1.46GHz ?

sinclairpaul commented 10 months ago

By specifying the port as auto, NUT will scan to try and find a UPS, in doing so it looks like it is causing you a hardware issue. I would suggest finding out what that hardware is (i.e. disconnect all USB devices)., or specify the port to use or vendor id etc.

Onizyka commented 10 months ago

I tried it like this Screenshot_1

Onizyka commented 10 months ago

shutdown_host: true, shutdown_host: false, shutdown_host: 'false', shutdown_host: "false"

sinclairpaul commented 10 months ago

shutdown_host: true, shutdown_host: false, shutdown_host: 'false', shutdown_host: "false"

It isn't this causing your problem, as the addon would start successfully and then issue a message, it should be left at the default which is shutdown_host: false

Again something is causing a hardware issue when the port is at auto, which unfortunately I cannot help with troubleshooting.

aquette commented 9 months ago

@Onizyka if you're able to connect this UPS to another system (Linux) I'd be interested in seeing the results of the driver run in dump mode. for example: /path/to/usbhid-ups -d2 -s test that will produce an upsc output, publishing all the data available. it may be that your battery level is too low, or your settings triggering a shutdown, if NUT is guilty. But I'm under doubt, as @sinclairpaul

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!