NUT Doesn't Find USB Buses

Started by pilotboy72, June 09, 2022, 12:24:50 AM

Previous topic - Next topic
June 09, 2022, 12:24:50 AM Last Edit: June 09, 2022, 12:29:21 PM by franco
Hi All,

Starting with the 22.8 update, I started getting this error when OPNSense tries to start nut_daemon:

Network UPS Tools - UPS driver controller 2.8.0
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: no USB buses found
No matching HID UPS found
Driver failed to start (exit status=1)
/usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut

My configuration specifies to use the USBHID driver with port=auto for configuration.  I don't see any other errors.  USB keyboard works fine, so I know the USB system is working.  Anyone seeing the same?

Brian

(adjusted font size in post as 2px was too small to read)

This has been fixed.  See https://forum.opnsense.org/index.php?topic=28695.0 for information on how to configure USB quirks to make this work.

Quote from: pilotboy72 on June 15, 2022, 05:11:28 PM
This has been fixed.  See https://forum.opnsense.org/index.php?topic=28695.0 for information on how to configure USB quirks to make this work.

As the person who figured things out on that other thread... I wouldn't call this "fixed," more like "worked around the problem." I don't know enough about the internals of FBSD and Nut to fully understand why this worked correctly in the past and doesn't now. It would be much better for someone with that knowledge to fix it correctly, instead of requiring a system tunable / tweak to get the kernel to step out of the way.