<div dir="ltr"><div><div><div><div><div><div>This issue has been occurring for years on my setup.<br></div>OS: Gentoo<br></div>most recent kernel: 4.1.12<br></div>UPS: Eaton Powerware 9130 rackmount 2000kVA, connected via USB<br><br></div>The upsdrv service dies and must be restarted several times a day.<br></div>Zero output to dmesg or any other log other than failed reattempts reporting no such file or directory errors.<br><br></div>"/lib64/nut/usbhid-ups -DDD -q -a powerware" exited 1 and this is the tail end of its output:<br><div><div><div><br><div><div><div><div><div><br>1383.519082     Quick update...<br>1383.519694     Report[get]: (5 bytes) => 16 ff ff ff ff<br>1383.519701     Path: UPS.PowerSummary.DelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 32, Value: 0<br>1383.520268     Report[get]: (5 bytes) => 15 ff ff ff ff<br>1383.520274     Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 32, Value: 0<br>1383.520887     Report[get]: (6 bytes) => 32 00 61 00 00 00<br>1383.520895     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x32, Offset: 8, Size: 1, Value: 1<br>1383.520898     Report[buf]: (6 bytes) => 32 00 61 00 00 00<br>1383.520900     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x32, Offset: 12, Size: 1, Value: 0<br>1383.520903     Report[buf]: (6 bytes) => 32 00 61 00 00 00<br>1383.520905     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x32, Offset: 10, Size: 1, Value: 0<br>1383.520907     Report[buf]: (6 bytes) => 32 00 61 00 00 00<br>1383.520909     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x32, Offset: 9, Size: 1, Value: 0<br>1385.270723     upsdrv_updateinfo...<br>1385.520798     libusb_get_interrupt: Connection timed out<br>1385.520815     Got 0 HID objects...<br>1385.520819     Quick update...<br>1385.521445     Report[get]: (5 bytes) => 16 ff ff ff ff<br>1385.521455     Path: UPS.PowerSummary.DelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 32, Value: 0<br>1385.522194     Report[get]: (5 bytes) => 15 ff ff ff ff<br>1385.522202     Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 32, Value: 0<br>1385.522820     Report[get]: (6 bytes) => 32 00 61 00 00 00<br>1385.522829     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x32, Offset: 8, Size: 1, Value: 1<br>1385.522834     Report[buf]: (6 bytes) => 32 00 61 00 00 00<br>1385.522837     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x32, Offset: 12, Size: 1, Value: 0<br>1385.522841     Report[buf]: (6 bytes) => 32 00 61 00 00 00<br>1385.522844     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x32, Offset: 10, Size: 1, Value: 0<br>1385.522848     Report[buf]: (6 bytes) => 32 00 61 00 00 00<br>1385.522851     Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x32, Offset: 9, Size: 1, Value: 0<br>1387.270796     upsdrv_updateinfo...<br>1387.520864     libusb_get_interrupt: Connection timed out<br>1387.520875     Got 0 HID objects...<br>1387.520878     Quick update...<br>1387.521591     Report[get]: (5 bytes) => 16 ff ff ff ff<br>1387.521600     Path: UPS.PowerSummary.DelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 32, Value: 0<br>1387.522173     Report[get]: (5 bytes) => 15 ff ff ff ff<br>1387.522178     Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 32, Value: 0<br>1387.522540     libusb_get_report: Input/output error<br>1387.522548     Can't retrieve Report 32: Input/output error<br>1389.272561     upsdrv_updateinfo...<br>1389.272573     Got to reconnect!<br><br>1389.272600     Checking device (8087/8000) (004/002)<br>1389.272613     Failed to open device, skipping. (Permission denied)<br>1389.272616     Checking device (1D6B/0002) (004/001)<br>1389.272619     Failed to open device, skipping. (Permission denied)<br>1389.272621     Checking device (8087/8008) (003/002)<br>1389.272624     Failed to open device, skipping. (Permission denied)<br>1389.272625     Checking device (1D6B/0002) (003/001)<br>1389.272628     Failed to open device, skipping. (Permission denied)<br>1389.272630     Checking device (0BDA/0307) (002/051)<br>1389.272633     Failed to open device, skipping. (Permission denied)<br>1389.272635     Checking device (0451/8041) (002/004)<br>1389.272638     Failed to open device, skipping. (Permission denied)<br>1389.272640     Checking device (0451/8041) (002/003)<br>1389.272643     Failed to open device, skipping. (Permission denied)<br>1389.272644     Checking device (174C/3074) (002/002)<br>1389.272647     Failed to open device, skipping. (Permission denied)<br>1389.272649     Checking device (1D6B/0003) (002/001)<br>1389.272651     Failed to open device, skipping. (Permission denied)<br>1389.272653     Checking device (046D/C00E) (001/002)<br>1389.272656     Failed to open device, skipping. (Permission denied)<br>1389.272658     Checking device (0451/8043) (001/008)<br>1389.272661     Failed to open device, skipping. (Permission denied)<br>1389.272663     Checking device (0451/8043) (001/007)<br>1389.272665     Failed to open device, skipping. (Permission denied)<br>1389.272667     Checking device (174C/2074) (001/006)<br>1389.272670     Failed to open device, skipping. (Permission denied)<br>1389.272671     Checking device (0463/FFFF) (001/004)<br>1389.279138     - VendorID: 0463<br>1389.279147     - ProductID: ffff<br>1389.279149     - Manufacturer: EATON Powerware <br>1389.279152     - Product: 9130<br>1389.279154     - Serial Number: GD261A0267  <br>1389.279156     - Bus: 001<br>1389.279158     Trying to match device<br>1389.279164     Device matches<br>1389.279169     failed to claim USB device: Device or resource busy<br>1389.279175     failed to detach kernel driver from USB device: No such file or directory<br>1389.279178     failed to claim USB device: Device or resource busy<br>1389.279181     failed to detach kernel driver from USB device: No such file or directory<br>1389.279184     failed to claim USB device: Device or resource busy<br>1389.279187     failed to detach kernel driver from USB device: No such file or directory<br>1389.279190     failed to claim USB device: Device or resource busy<br>1389.279192     failed to detach kernel driver from USB device: No such file or directory<br>1389.279195     Can't claim USB device [0463:ffff]: No such file or directory<br>1389.279200     upsdrv_cleanup...<br><br><br></div><div>upsdrvctl is not noticing this exit, so the openrc service scripts get into a stuck state also--I have to stop, then zap the upsdrv service before I can start it again.<br></div><div>Each time it works fine for some non-deterministic amount of time then dies.<br><br></div></div></div></div></div></div></div></div></div>