<div dir="ltr"><div>To me, this line is suspect:</div><div><br></div><div>
<pre style="overflow-x:auto;color:rgb(33,33,33);font-size:14px;font-variant-ligatures:normal;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">libusb1: Could not open any HID devices: insufficient permissions on everything</pre>
</div><div><br></div><div>it seems like USB permissions on the host do not allow the NUT run-time user (nutty?) to own the device filesystem node.</div><div>Check the upower/udev/... settings relevant there.</div><div><br></div><div>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):</div><div><br></div><div>$ git blame v2.8.0 scripts/upower/95-upower-hid.hwdb | grep usb:v0764p0601<br>8b72ac9fc2 (Benjamin Berg 2022-03-28 17:19:41 +0200 103) usb:v0764p0601*</div><div><br></div><div>Hope this helps,</div><div>Jim Klimov</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 28, 2024 at 1:23 PM Giacomo Tognetti via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="auto">Hi guys<div>I just struggling to configure my EPYC Neon UPS (it appears like Cyber Power System, Inc. PR1500LCDRT2U UPS) using NUT on my Home Assistant server.</div><div>I installed official NUT from HACS add-ons and I placed a very easy config:</div><div><pre style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:11.9px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;color:rgb(31,35,40);border-radius:6px;font-variant-ligatures:normal;text-decoration-style:initial;text-decoration-color:initial"><code style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:11.9px;padding:0px;margin:0px;background-image:none;background-position:0% 0%;background-size:auto;background-repeat:repeat;background-origin:padding-box;background-clip:border-box;border-radius:6px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit">users:
- username: nutty
password: xxxxxxxxxxxx
instcmds:
- all
actions: []
devices:
- name: neon
driver: usbhid-ups
port: auto
config: []
mode: netserver
shutdown_host: false
list_usb_devices: true</code></pre></div><div><span style="background-color:rgb(255,255,255)">But it doesn’t work, even if UPS is actually listed, as you can see from the complete log.</span></div><div><span style="background-color:rgb(255,255,255)"><br></span></div><div><pre style="overflow-x:auto;color:rgb(33,33,33);font-size:14px;font-variant-ligatures:normal;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">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
<span>-----------------------------------------------------------</span>
<span> Add-on: Network UPS Tools</span>
<span> Manage battery backup (UPS) devices</span>
<span>-----------------------------------------------------------</span>
<span> Add-on version: 0.13.0</span>
<span> You are running the latest version of this add-on.</span>
<span> System: Home Assistant OS 11.5 (amd64 / qemux86-64)</span>
<span> Home Assistant Core: 2024.2.3</span>
<span> Home Assistant Supervisor: 2024.02.0</span>
<span>-----------------------------------------------------------</span>
<span> Please, share the above information when looking for help</span>
<span> or support in, e.g., GitHub, forums or the Discord chat.</span>
<span>-----------------------------------------------------------</span>
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
[15:30:13] INFO: <span>Configuring timezone (Europe/Rome)...</span>
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:30:16] INFO: <span>Setting mode to netserver...</span>
[15:30:16] INFO: <span>Connected USB devices:</span>
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
Bus 002 Device 002: ID 0764:0601 Cyber Power System, Inc. PR1500LCDRT2U UPS
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[15:30:17] INFO: <span>Generating /etc/nut/upsd.users...</span>
[15:30:17] INFO: <span>Configuring user: nutty</span>
[15:30:17] INFO: <span>Password is NOT in the Have I Been Pwned database! Nice!</span>
[15:30:18] INFO: <span>Configuring Device named neon...</span>
[15:30:18] INFO: <span>Starting the UPS drivers...</span>
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</pre></div><div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">I tried to add </span>vendorid (764) and producid (601, in my case) but results are the same.</div><div><br></div><div>I really need your help, also because I’ve struggling around forums and GitHub and I see many people in my situation with no answers at all.</div><div><br></div><div>Please let me know.</div><div><br></div><div>Giacomo</div><div><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div><div dir="auto"><div><div><span style="border-collapse:separate;font-variant-ligatures:normal;font-variant-east-asian:normal;line-height:normal;border-spacing:0px"><div><span style="border-collapse:separate;font-variant-ligatures:normal;font-variant-east-asian:normal;line-height:normal;border-spacing:0px"><div><span style="border-collapse:separate;font-variant-ligatures:normal;font-variant-east-asian:normal;line-height:normal;border-spacing:0px"><div><span style="border-collapse:separate;font-variant-ligatures:normal;font-variant-east-asian:normal;line-height:normal;border-spacing:0px"><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-variant-ligatures:normal;font-variant-east-asian:normal;line-height:normal"><div style="font-variant-ligatures:normal;font-variant-east-asian:normal;line-height:normal"><p style="text-align:center"><br></p></div></div></div></span></div></span></div></span></div></span></div></div></div><br></div><div><br></div></div><br><br>
</div>
<br></div></div></div>_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>