hassio-addons / addon-nut

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

0.4.0+ fails to detect EATON devices #66

Closed kloodhu closed 3 years ago

kloodhu commented 3 years ago

Problem/Motivation

I use the addon for months without any bigger issue with my Eaton UPS. Now i upgraded, the addon stopped working.

What changed? What should i do?

Thank yőu!

Expected behavior

(What you expected to happen)

Actual behavior

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] nut: applying... [fix-attrs.d] nut: exited 0. [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 00-banner.sh: executing...

Add-on: Network UPS Tools Manage battery backup (UPS) devices

Add-on version: 0.4.0 You are running the latest version of this add-on. System: Raspbian GNU/Linux 10 (buster) (armv7 / raspberrypi4) Home Assistant Core: 2021.1.4 Home Assistant Supervisor: 2021.01.5

Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0. [cont-init.d] 01-log-level.sh: executing... Log level is set to DEBUG [cont-init.d] 01-log-level.sh: exited 0. [cont-init.d] nut.sh: executing... [09:06:39] INFO: Setting mode to netserver... [09:06:39] INFO: Connected USB devices: Bus 001 Device 009: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II] Bus 002 Device 003: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s Bus 001 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 007: ID 10c4:8a2a Silicon Labs HubZ Smart Home Controller Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub [09:06:39] INFO: Generating /etc/nut/upsd.users... [09:06:39] INFO: Configuring user: klood [09:06:41] INFO: Configuring Device named eaton... [09:06:41] INFO: Starting the UPS drivers... Network UPS Tools - UPS driver controller 2.7.4 0.000000 Starting UPS: eaton Network UPS Tools - Generic HID driver 0.41 (2.7.4) USB communication driver 0.33 No matching HID UPS found 0.024455 Driver failed to start (exit status=1) [cont-init.d] nut.sh: exited 1. [cont-finish.d] executing container finish scripts... [cont-finish.d] 99-message.sh: executing...

            Oops! Something went wrong.

We are so sorry, but something went terribly wrong when starting or running this add-on.

Be sure to check the log above, line by line, for hints.

[cont-finish.d] 99-message.sh: exited 0. [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal.

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix, describe the rationale behind it)

sinclairpaul commented 3 years ago

Sorry folks just need another test on edge (3f6d33d) if good we should be done 😰

Maste89 commented 3 years ago

we all thanks you for your work! don't say "sorry" for a test :wink:

also version 3f6d33d seems working!!

many thanks!

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] nut: applying... 
[fix-attrs.d] nut: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Network UPS Tools
 Manage battery backup (UPS) devices
-----------------------------------------------------------
 Add-on version: 3f6d33d
 You are running the latest version of this add-on.
 System: Home Assistant OS 5.11  (amd64 / qemux86-64)
 Home Assistant Core: 2021.2.2
 Home Assistant Supervisor: 2021.02.8
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nut.sh: executing... 
[23:59:02] INFO: Setting mode to netserver...
[23:59:02] INFO: Generating /etc/nut/upsd.users...
[23:59:02] INFO: Configuring user: Maste_nut
[23:59:03] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[23:59:03] INFO: Configuring Device named myups...
[23:59:03] INFO: Starting the UPS drivers...
Using subdriver: MGE HID 1.39
Network UPS Tools - Generic HID driver 0.41 (2.7.4)
USB communication driver 0.33
Network UPS Tools - UPS driver controller 2.7.4
[cont-init.d] nut.sh: exited 0.
[cont-init.d] nutclient.sh: executing... 
[cont-init.d] nutclient.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[23:59:08] INFO: Starting the UPS information server...
   0.000000 fopen /var/run/nut/upsd.pid: No such file or directory
   0.000335 listening on 0.0.0.0 port 3493
   0.000603 Connected to UPS [myups]: usbhid-ups-myups
[23:59:08] INFO: Starting the UPS monitor and shutdown controller...
   0.000000 fopen /var/run/nut/upsmon.pid: No such file or directory
   0.000193 Using power down flag file /etc/killpower
   0.000374 UPS: myups@localhost (master) (power value 1)
   0.000508 debug level is '1'
   0.000641 Warning: running as one big root process by request (upsmon -p)
   0.000852 Init SSL without certificate database
   0.001896 Trying to connect to UPS [myups@localhost]
   0.007831 User upsmonmaster@127.0.0.1 logged into UPS [myups]
   0.002484 Logged into UPS myups@localhost
sinclairpaul commented 3 years ago

Awesome, will push it for a release now!

garyak commented 3 years ago

@sinclairpaul This is what the add-on log reports:

 Add-on version: 0.3.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 5.11  (aarch64 / raspberrypi3-64)
 Home Assistant Core: 2021.2.2
 Home Assistant Supervisor: 2021.02.6

I've removed/reinstalled the add-on. How might I force an update to the latest available?

sinclairpaul commented 3 years ago

@garyak Please check the supervisor log for issues, it looks like you are not fetching the latest addon data.

garyak commented 3 years ago

@sinclairpaul logged on the install

21-02-10 23:27:56 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/a0d7b954_nut
21-02-10 23:27:56 INFO (SyncWorker_5) [supervisor.docker.interface] Downloading docker image hassioaddons/nut-aarch64 with tag 0.3.1.
21-02-10 23:28:25 INFO (MainThread) [supervisor.addons] Add-on 'a0d7b954_nut' successfully installed
21-02-10 23:29:21 INFO (SyncWorker_1) [supervisor.docker.addon] Starting Docker add-on hassioaddons/nut-aarch64 with version 0.3.1
21-02-10 23:29:26 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_nut
sinclairpaul commented 3 years ago

I would suggest reaching out on the HA discord as to why your instance doesn't fetch the latest versions, you can try Addon-Store, three dots, reload, but I doubt it will help.

garyak commented 3 years ago

@sinclairpaul OK, thank you.

sinclairpaul commented 3 years ago

Closing, as hopefully latest release fixes the issues.

kloodhu commented 3 years ago

i can confirm too, the new version is working again with my Aeton ups. Thank you mate!

mrtmsgh commented 3 years ago

Closing, as hopefully latest release fixes the issues.

Mine is working too. Thank you

q1x commented 3 years ago

Version 0.6.0 fixed the issue for me as well, thanks for the effort!

fintmu commented 3 years ago

I confirm the fix too, it’s working again. Thank you very much!