dmacias72 / NUT-unRAID

unRAID NUT plugin
GNU General Public License v3.0
9 stars 8 forks source link

Log Errors! #4

Open C4Wiz opened 6 years ago

C4Wiz commented 6 years ago

i have a ton of these in the log:

Unraid 6.5.3 Cyber Power PR750LCDRT1U

Aug 13 07:29:35 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:29:35 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:29:35 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:31:11 SERVER usbhid-ups[4240]: nut_libusb_get_string: Input/Output Error
Aug 13 07:31:41 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:31:43 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:32:47 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:33:01 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:33:09 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:34:07 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:34:23 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:35:11 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:37:03 SERVER usbhid-ups[4240]: nut_libusb_get_string: Pipe error
Aug 13 07:37:03 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:37:03 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:37:03 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:37:35 SERVER usbhid-ups[4240]: nut_libusb_get_string: Pipe error
Aug 13 07:38:39 SERVER usbhid-ups[4240]: nut_libusb_get_string: Input/Output Error
Aug 13 07:39:17 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:39:31 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:39:49 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:40:15 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:40:15 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:40:29 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:40:39 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:41:51 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:41:59 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:42:22 SERVER usbhid-ups[4240]: nut_libusb_get_string: Input/Output Error
Aug 13 07:42:22 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:42:22 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:43:06 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:43:44 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:44:02 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:44:42 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:45:04 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:46:38 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:46:40 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
Aug 13 07:47:46 SERVER usbhid-ups[4240]: nut_libusb_get_report: Input/Output Error
dmacias72 commented 6 years ago

I get those to. It's benign. Just reporting and annoying. The version of nut I compiled is based on libusb 1 +. 1 combined. There have been some recent developments in the libusb 1 branch. So I will try and compile again.

The reason for all this was because nut stable is quite old and others wanted some of the new features. Also without this my Tripplite UPS would just disconnect. Used to work with nut stable but later kernels seem to expose bugs that would cause my UPS to disconnect until the service was restarted.

C4Wiz commented 5 years ago

any movement on this?

dmacias72 commented 5 years ago

i built a nut package based on libusb-1.0 branch if you want to give it a try. Stop nut. Then download and upgradepkg

https://github.com/dmacias72/NUT-unRAID/raw/master/packages/nut-2.7.4.11-x86_64-1.txz

C4Wiz commented 5 years ago

Done:

screen shot 2018-11-25 at 8 30 31 pm
dmacias72 commented 5 years ago

I've still received a few but they seem less frequent

C4Wiz commented 5 years ago

this version is worse for me!

screen shot 2018-11-26 at 7 31 17 am
dmacias72 commented 5 years ago

I compiled a new version using master if you wanna give it a try. My problem with master before was that when it dropped, it wouldn't reconnect. The others would give i/o errors but would reconnect. https://github.com/dmacias72/NUT-unRAID/raw/master/packages/nut-2.7.4.20181127-x86_64-1.txz

C4Wiz commented 5 years ago

i have installed the above package and got this:

screen shot 2018-11-27 at 4 25 36 pm
C4Wiz commented 5 years ago

so it does re establish!

C4Wiz commented 5 years ago

does this plugin have SNMP support?

dmacias72 commented 5 years ago

Yes. But I have no way to test it.

C4Wiz commented 5 years ago

is it possible to use my own mibs file?

dmacias72 commented 5 years ago

I'm not really sure. You can turn on manual mode and edit the configs

C4Wiz commented 5 years ago

yea, i gave up..LOL

dmacias72 commented 5 years ago

Don't bother with the last build. It errors out and didn't reconnect. Trying another branch now

dmacias72 commented 5 years ago

I updated the same package above to the libusb 1.0 - 0.1 branch. On master my ups never reconnects. And if nut isn't running I get this spammed in the log and the device number keep increasing

Nov 27 15:28:02 Server kernel: usb 1-5: new low-speed USB device number 105 using xhci_hcd Nov 27 15:28:02 Server kernel: hid-generic 0003:09AE:2012.00E2: hiddev96,hidraw0: USB HID v1.10 Device [Tripp Lite Tripp Lite UPS ] on usb-0000:00:14.0-5/input0 Nov 27 15:28:17 Server kernel: usb 1-5: USB disconnect, device number 105 Nov 27 15:28:17 Server kernel: usb 1-5: new low-speed USB device number 106 using xhci_hcd Nov 27 15:28:17 Server kernel: hid-generic 0003:09AE:2012.00E3: hiddev96,hidraw0: USB HID v1.10 Device [Tripp Lite Tripp Lite UPS ] on usb-0000:00:14.0-5/input0

Also you might try connecting to a usb2 port and if no usb2 then usually in the bios you can turn off usb3 support.