OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: pilotboy72 on June 09, 2022, 12:24:50 am

Title: NUT Doesn't Find USB Buses
Post by: pilotboy72 on June 09, 2022, 12:24:50 am
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
Title: Re: NUT Doesn't Find USB Buses
Post by: franco on June 09, 2022, 12:29:51 pm
(adjusted font size in post as 2px was too small to read)
Title: Re: NUT Doesn't Find USB Buses
Post by: pilotboy72 on June 15, 2022, 05:11:28 pm
This has been fixed.  See https://forum.opnsense.org/index.php?topic=28695.0 (https://forum.opnsense.org/index.php?topic=28695.0) for information on how to configure USB quirks to make this work.
Title: Re: NUT Doesn't Find USB Buses
Post by: ZPrime on June 22, 2022, 09:06:25 am
This has been fixed.  See https://forum.opnsense.org/index.php?topic=28695.0 (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.