How to fix libusb_get_interrupt: Unknown error ?

Nicolas68

Dabbler
Joined
Jan 3, 2021
Messages
11
Hello

it seems I have some problem with my UPS Eaton ECO 650USB

Every 10s, I guess when Truenas tries to access the UPS to get status, the debug.log and deamon.log get another entry regarding usbhid-ups:

debug.log:
Code:
Jan 21 09:23:50 truenas 1 2021-01-21T09:23:50.834685+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:24:00 truenas 1 2021-01-21T09:24:00.836879+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:24:10 truenas 1 2021-01-21T09:24:10.840649+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:24:20 truenas 1 2021-01-21T09:24:20.844163+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:24:30 truenas 1 2021-01-21T09:24:30.848987+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:24:40 truenas 1 2021-01-21T09:24:40.857220+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:24:50 truenas 1 2021-01-21T09:24:50.922083+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:00 truenas 1 2021-01-21T09:25:00.929650+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:11 truenas 1 2021-01-21T09:25:11.009373+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:21 truenas 1 2021-01-21T09:25:21.038935+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:31 truenas 1 2021-01-21T09:25:31.047533+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:41 truenas 1 2021-01-21T09:25:41.048487+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:51 truenas 1 2021-01-21T09:25:51.067847+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:26:01 truenas 1 2021-01-21T09:26:01.091381+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:26:11 truenas 1 2021-01-21T09:26:11.086274+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:26:21 truenas 1 2021-01-21T09:26:21.096333+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error


daemon.log:
Code:
Jan 21 09:24:30 truenas 1 2021-01-21T09:24:30.848987+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:24:40 truenas 1 2021-01-21T09:24:40.857220+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:24:50 truenas 1 2021-01-21T09:24:50.922083+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:00 truenas 1 2021-01-21T09:25:00.929650+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:11 truenas 1 2021-01-21T09:25:11.009373+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:21 truenas 1 2021-01-21T09:25:21.038935+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:31 truenas 1 2021-01-21T09:25:31.047533+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:41 truenas 1 2021-01-21T09:25:41.048487+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:25:51 truenas 1 2021-01-21T09:25:51.067847+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:26:01 truenas 1 2021-01-21T09:26:01.091381+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:26:11 truenas 1 2021-01-21T09:26:11.086274+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error
Jan 21 09:26:21 truenas 1 2021-01-21T09:26:21.096333+01:00 truenas.local usbhid-ups 1595 - - libusb_get_interrupt: Unknown error


messages.log:
Code:
Jan 20 09:00:43 truenas uhub0: 16 ports with 16 removable, self powered
Jan 20 09:00:43 truenas Root mount waiting for: usbus0
Jan 20 09:00:43 truenas Root[1378]: Last message 'mount waiting for: u' repeated 1 times, suppressed by syslog-ng on truenas.local
Jan 20 09:00:43 truenas ugen0.2: <EATON Ellipse ECO> at usbus0
Jan 20 09:00:43 truenas Root mount waiting for: usbus0
Jan 20 09:00:43 truenas Root[1378]: Last message 'mount waiting for: u' repeated 8 times, suppressed by syslog-ng on truenas.local
Jan 20 09:00:43 truenas interface uhid.1 already present in the KLD 'kernel'!
Jan 20 09:00:43 truenas linker_load_file: /boot/kernel/uhid.ko - unsupported file type
Jan 20 09:00:43 truenas interface wmt.1 already present in the KLD 'kernel'!
Jan 20 09:00:43 truenas linker_load_file: /boot/kernel/wmt.ko - unsupported file type


My UPS config:
1611218231310.png


ups.conf:
Code:
[ups]
    driver = usbhid-ups
    port = auto
    desc =
    pollinterval =10


thanks for your help

Nicolas
 

gammaburst

Cadet
Joined
Jan 3, 2021
Messages
5
I can confirm the exact same behavior with the same UPS Eaton ECO 650USB and TrueNAS
Version:
TrueNAS-12.0-U
My upsd configuration is slightly different but I also followed the official advice "pollinterval = 10".

The errors are still in the logs and the alert email about BADCOMM is popping up. Any ideas are welcome!
 

gammaburst

Cadet
Joined
Jan 3, 2021
Messages
5
+:grin: With luck I found this and it worked for me.
I add pollonly = "enabled" and in combination with pollinterval = 10 the errors are gone.
Lets see if the email alerts are also gone. *cross fingers*
To make it round, here is my ups.conf

cat /etc/local/nut/ups.conf
Code:
[ups]
    driver = usbhid-ups
    port = /dev/ugen0.2
    desc = shutdown NAS and UPS if UPS is on low battery
    ignorelb
override.battery.charge.low = 10
pollinterval = 10
pollonly = "enabled"
 
Top