Giter VIP home page Giter VIP logo

Comments (21)

GiacomoTognetti avatar GiacomoTognetti commented on August 24, 2024 1

woah, it worked also with my Synology!
Nice and easy, as it should. Thanks again @wqrwefdgfv you made my day!

from addon-nut.

lcavalli avatar lcavalli commented on August 24, 2024 1

@wqrwefdgfv you closed this issue, but it is still present in the addon. You find a nice workaround but the problem has not been fixed.

from addon-nut.

wqrwefdgfv avatar wqrwefdgfv commented on August 24, 2024 1

@wqrwefdgfv you closed this issue, but it is still present in the addon. You find a nice workaround but the problem has not been fixed.

As you wish)

from addon-nut.

khaisilk1910 avatar khaisilk1910 commented on August 24, 2024

i'm too.
Can not start

`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.5 (amd64 / generic-x86-64)
Home Assistant Core: 2024.2.2
Home Assistant Supervisor: 2024.02.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
[17:14:35] INFO: Configuring timezone (Asia/Bangkok)...
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
[17:14:36] INFO: Setting mode to netserver...
[17:14:36] INFO: Generating /etc/nut/upsd.users...
[17:14:36] INFO: Configuring user: khaisilk1910
[17:14:37] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[17:14:38] INFO: Configuring Device named myups...
[17:14:38] INFO: Starting the UPS drivers...
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
libusb1: Could not open any HID devices: insufficient permissions on everything
No matching HID UPS found
Driver failed to start (exit status=1)
Network UPS Tools - UPS driver controller 2.8.0
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`

from addon-nut.

cherniavsky94w avatar cherniavsky94w commented on August 24, 2024

Hi, I am too

Log level is set to DEBUG
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
[15:42:12] INFO: Setting mode to netserver...
[15:42:12] INFO: Connected USB devices:
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 0d9f:0004 Powercom Co., Ltd HID UPS Battery
Bus 002 Device 002: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[15:42:12] INFO: Generating /etc/nut/upsd.users...
[15:42:12] INFO: Configuring user: hassio
[15:42:13] INFO: Configuring Device named powercom...
[15:42:13] INFO: Starting the UPS drivers...
   0.000000	[D1] Starting UPS: powercom
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
libusb1: Could not open any HID devices: insufficient permissions on everything
No matching HID UPS found
   0.055768	Driver failed to start (exit status=1)
Network UPS Tools - UPS driver controller 2.8.0
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 base-addon-timezone successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service fix-attrs 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

My configuration:

users:
  - username: hassio
    password: hassio
    instcmds:
      - all
    actions: []
devices:
  - name: powercom
    driver: usbhid-ups
    port: auto
    config: []
mode: netserver
shutdown_host: false
list_usb_devices: true
i_like_to_be_pwned: true
log_level: debug

from addon-nut.

GiacomoTognetti avatar GiacomoTognetti commented on August 24, 2024

same here. Any suggestion or idea to solve?

from addon-nut.

lcavalli avatar lcavalli commented on August 24, 2024

Me too, but with nutdrv_qx driver. Older add-on versions worked without issues.

from addon-nut.

wqrwefdgfv avatar wqrwefdgfv commented on August 24, 2024

same here. Any suggestion or idea to solve?

May be older versions?
Del last one and install older

from addon-nut.

GiacomoTognetti avatar GiacomoTognetti commented on August 24, 2024

thanx for the tip, I'd like to try.
I deleted latest versione (0.13.0) but I have no clue where to find the oldest (0.12.something, maybe).
If I search throught the addons I see only 0.13.0, no possibilities to switch to a previous...

from addon-nut.

lcavalli avatar lcavalli commented on August 24, 2024

thanx for the tip, I'd like to try. I deleted latest versione (0.13.0) but I have no clue where to find the oldest (0.12.something, maybe). If I search throught the addons I see only 0.13.0, no possibilities to switch to a previous...

The only safe way is to have a previous backup and selectively restore the old NUT add-on.

from addon-nut.

wqrwefdgfv avatar wqrwefdgfv commented on August 24, 2024

https://github.com/hassio-addons/addon-nut/releases

what about this? download and install manually.
what version really works?

v0.11.1...v0.13.0

from addon-nut.

GiacomoTognetti avatar GiacomoTognetti commented on August 24, 2024

well yours is good tip!
but the point is how I manually install it?
I tried settings--->the three dots button---->digital archives----->I pasted the github (0.12.2 but even the others) and this is what I get

Cmd('git') failed due to: exit code(128) cmdline: git clone -v --recursive --depth=1 --shallow-submodules -- https://github.com/hassio-addons/addon-nut/releases/tag/v0.12.2 /data/addons/git/ac2c5170 stderr: 'Cloning into '/data/addons/git/ac2c5170'... fatal: https://github.com/hassio-addons/addon-nut/releases/tag/v0.12.2/info/refs not valid: is this a git repository? '

Screenshot 2024-02-27 alle 22 31 12

from addon-nut.

wqrwefdgfv avatar wqrwefdgfv commented on August 24, 2024

well yours is good tip! but the point is how I manually install it? I tried settings--->the three dots button---->digital archives----->I pasted the github (0.12.2 but even the others) and this is what I get

Cmd('git') failed due to: exit code(128) cmdline: git clone -v --recursive --depth=1 --shallow-submodules -- https://github.com/hassio-addons/addon-nut/releases/tag/v0.12.2 /data/addons/git/ac2c5170 stderr: 'Cloning into '/data/addons/git/ac2c5170'... fatal: https://github.com/hassio-addons/addon-nut/releases/tag/v0.12.2/info/refs not valid: is this a git repository? '

Screenshot 2024-02-27 alle 22 31 12

same error (((

from addon-nut.

GiacomoTognetti avatar GiacomoTognetti commented on August 24, 2024

I wrote directly to NUT support for help, but because I'm a total kook I'm unable to understand what they suggest to do.
Any idea?

To me, this line is suspect:

libusb1: Could not open any HID devices: insufficient permissions on everything

it seems like USB permissions on the host do not allow the NUT run-time user (nutty?) to own the device filesystem node.
Check the upower/udev/... settings relevant there.

According to Git, this ID should be known in NUT v2.8.0 or newer (so the rest is about OS integration for this bit):

$ git blame v2.8.0 scripts/upower/95-upower-hid.hwdb | grep usb:v0764p0601
8b72ac9fc2 (Benjamin Berg 2022-03-28 17:19:41 +0200 103) usb:v0764p0601*

from addon-nut.

wqrwefdgfv avatar wqrwefdgfv commented on August 24, 2024

I decided this problem.

In my case I have UPS connected to NAS qnap directly by USB. In qnap settings I activated option "network NAS" and set IP of Home Assistant. Then I delete this ADDON NUT and ADD INTEGRATION "NUT".
Host: NAS IP
Port: 3493
Login/pass EMPTY

that's all!

from addon-nut.

lcavalli avatar lcavalli commented on August 24, 2024

Thank you! I have a NAS as well, but I would really like to have this issue fixed in HA addon.

from addon-nut.

lcavalli avatar lcavalli commented on August 24, 2024

I unplugged and reconnected the UPS and the addon started and connected to the UPS. It may be related to the problem described here: https://github.com/networkupstools/nut/blob/master/scripts/usb_resetter/README.adoc
In this case connecting the UPS to the NAS may not solve the issue.

from addon-nut.

seth586 avatar seth586 commented on August 24, 2024

+1 Same issue, using a Cyber Power 1500PFCLCD, works on my FreeBSD server but not on my HAOS running bare metal on a Udoo Bolt.

Addon logs:

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 12.0  (amd64 / generic-x86-64)
 Home Assistant Core: 2024.2.4
 Home Assistant Supervisor: 2024.02.1
-----------------------------------------------------------
 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
[20:26:59] INFO: Configuring timezone (America/Chicago)...
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
[20:27:00] INFO: Setting mode to netserver...
[20:27:00] INFO: Connected USB devices:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID)
Bus 003 Device 002: ID 8087:0aa7 Intel Corp. Wireless-AC 3168 Bluetooth
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
Bus 001 Device 006: ID 1a86:55d4 QinHeng Electronics 800 Z-Wave Stick
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[20:27:00] INFO: Generating /etc/nut/upsd.users...
[20:27:00] INFO: Configuring user: admin
[20:27:00] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[20:27:01] INFO: Configuring Device named myups...
[20:27:01] INFO: Starting the UPS drivers...
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
Can't claim USB device [0764:0501]@2/0: Invalid parameter
Network UPS Tools - UPS driver controller 2.8.0
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 base-addon-timezone successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service fix-attrs 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

from addon-nut.

MiguelAngelLV avatar MiguelAngelLV commented on August 24, 2024

Same problem here. I get libusb1: Could not open any HID devices: insufficient permissions on everything in a Raspberry Pi and a Virtual Machine.

In ssh addon I can get the UPS with lsusb and with dmesg, but nut addon fail.

from addon-nut.

amasolov avatar amasolov commented on August 24, 2024

Same here. Exactly the same problem

from addon-nut.

github-actions avatar github-actions commented on August 24, 2024

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!

from addon-nut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.