I uninstall nut and reboot workstation i5. dpkg -P nut nut-server Then i connect ups with usb. apt-get install nut nut-server correct ups.conf to apc and REPLAY:
/lib/nut/usbhid-ups -u nut -DDD -a myups Network UPS Tools - Generic HID driver 0.38 (2.7.2) USB communication driver 0.32 0.000000 debug level is '3' 0.000834 upsdrv_initups... 0.121032 Checking device (1D6B/0003) (004/001) 0.121197 - VendorID: 1d6b 0.121204 - ProductID: 0003 0.121206 - Manufacturer: unknown 0.121208 - Product: unknown 0.121210 - Serial Number: unknown 0.121211 - Bus: 004 0.121213 Trying to match device 0.121217 Device does not match - skipping 0.121225 Checking device (0781/5572) (003/005) 0.121243 - VendorID: 0781 0.121251 - ProductID: 5572 0.121255 - Manufacturer: unknown 0.121258 - Product: unknown 0.121262 - Serial Number: unknown 0.121266 - Bus: 003 0.121269 Trying to match device 0.121271 Device does not match - skipping 0.121276 Checking device (051D/0002) (003/004) 0.121283 - VendorID: 051d 0.121286 - ProductID: 0002 0.121288 - Manufacturer: unknown 0.121290 - Product: unknown 0.121291 - Serial Number: unknown 0.121293 - Bus: 003 0.121295 Trying to match device Ошибка сегментирования (сделан дамп памяти) Dec 10 10:36:06 hub2 systemd[1]: Starting LSB: Network UPS Tools initscript... Dec 10 10:36:06 hub2 nut-server[3800]: * Starting NUT - power devices information server and drivers Dec 10 10:36:06 hub2 kernel: [ 116.497673] show_signal_msg: 24 callbacks suppressed Dec 10 10:36:06 hub2 kernel: [ 116.497676] usbhid-ups[3807]: segfault at 0 ip 00007fd23776cf37 sp 00007ffd99ed1f78 error 4 in libc-2.23.so[7fd237628000+1bf000] Dec 10 10:36:11 hub2 kernel: [ 121.701961] usbhid-ups[3809]: segfault at 0 ip 00007fe64f161f37 sp 00007ffcce113c68 error 4 in libc-2.23.so[7fe64f01d000+1bf000] Dec 10 10:36:16 hub2 kernel: [ 126.906185] usbhid-ups[3811]: segfault at 0 ip 00007f8127095f37 sp 00007ffd0bab1e98 error 4 in libc-2.23.so[7f8126f51000+1bf000] Dec 10 10:36:16 hub2 upsd[3813]: listening on 127.0.0.1 port 3493 Dec 10 10:36:16 hub2 upsd[3813]: not listening on ::1 port 3493 Dec 10 10:36:16 hub2 upsd[3813]: Can't connect to UPS [myups] (usbhid-ups-myups): No such file or directory Dec 10 10:36:16 hub2 upsd[3815]: Startup successful Dec 10 10:36:16 hub2 nut-server[3800]: ...done. Dec 10 10:36:16 hub2 systemd[1]: Started LSB: Network UPS Tools initscript. Dec 10 10:37:32 hub2 kernel: [ 203.070527] usbhid-ups[4449]: segfault at 0 ip 00007f29fa721f37 sp 00007fff26badd08 error 4 in libc-2.23.so[7f29fa5dd000+1bf000] then: /lib/nut/usbhid-ups -u root -DDD -a myups Network UPS Tools - Generic HID driver 0.38 (2.7.2) USB communication driver 0.32 0.000000 debug level is '3' 0.000404 upsdrv_initups... 0.121928 Checking device (1D6B/0003) (004/001) 0.122368 - VendorID: 1d6b 0.122383 - ProductID: 0003 0.122385 - Manufacturer: Linux 4.4.0-53-generic xhci-hcd 0.122386 - Product: xHCI Host Controller 0.122387 - Serial Number: 0000:00:14.0 0.122388 - Bus: 004 0.122390 Trying to match device 0.122403 Device does not match - skipping 0.122707 Checking device (0781/5572) (003/005) 0.123060 - VendorID: 0781 0.123065 - ProductID: 5572 0.123066 - Manufacturer: SanDisk 0.123067 - Product: Cruzer Switch 0.123078 - Serial Number: 200542559311CD12F2B7 0.123080 - Bus: 003 0.123081 Trying to match device 0.123083 Device does not match - skipping 0.123099 Checking device (051D/0002) (003/004) 0.130211 - VendorID: 051d 0.130225 - ProductID: 0002 0.130226 - Manufacturer: American Power Conversion 0.130228 - Product: Back-UPS 500 FW: 6.2.I USB FW: c1 0.130230 - Serial Number: BB0116039701 0.130231 - Bus: 003 0.130232 Trying to match device 0.130264 Device matches 0.130283 failed to claim USB device: could not claim interface 0: Device or resource busy 0.130623 detached kernel driver from USB device... 0.132003 HID descriptor, method 1: (9 bytes) => 09 21 00 01 00 01 22 76 01 0.132010 HID descriptor, method 2: (9 bytes) => 09 21 00 01 00 01 22 76 01 0.132021 HID descriptor length 374 0.144030 Report Descriptor size = 374 0.144053 Report Descriptor: (374 bytes) => 05 84 09 04 a1 01 09 24 a1 00 85 01 09 fe 0.144057 79 01 75 08 95 01 15 00 26 ff 00 b1 02 85 02 09 ff 79 02 b1 02 85 03 05 85 0.144062 09 89 79 04 b1 02 85 04 09 8f 79 03 b1 02 85 05 09 8b 65 00 55 00 b1 02 85 0.144085 06 09 44 81 82 09 44 b1 82 09 45 81 82 09 45 b1 82 06 86 ff 09 60 81 82 09 0.144089 60 b1 82 85 07 05 85 09 85 75 10 95 01 15 00 27 ff ff 00 00 b1 02 85 08 05 0.144094 84 09 40 67 21 d1 f0 00 55 05 15 00 27 fe ff 00 00 b1 02 85 09 09 30 b1 02 0.144098 85 0a 09 fd 79 03 75 08 95 01 15 00 26 ff 00 b1 02 85 0b 05 85 09 2c b1 02 0.144110 85 0c 09 66 75 18 95 01 67 01 10 10 00 55 00 15 00 27 fe ff ff 00 81 82 09 0.144114 66 b1 82 09 68 75 10 95 01 66 01 10 55 00 15 00 27 fe ff 00 00 81 82 09 68 0.144118 b1 82 85 0d 09 83 75 18 95 01 67 01 10 10 00 55 00 15 00 27 fe ff ff 00 b1 0.144122 02 85 0e 09 67 b1 02 85 0f 09 8c b1 02 85 10 09 8e b1 02 85 11 09 29 b1 82 0.144127 85 12 09 8d b1 02 85 13 09 d0 75 08 95 01 65 00 55 00 15 00 25 01 81 82 09 0.144130 d0 b1 82 85 14 09 42 81 82 09 42 b1 82 05 84 09 69 81 82 09 69 b1 82 06 86 0.144134 ff 85 35 09 72 b1 82 85 1c 09 16 75 18 95 01 15 00 27 ff ff ff 00 b1 82 c0 0.144151 05 84 09 12 a1 00 c0 06 86 ff 09 03 a1 00 c0 09 05 a1 00 85 40 09 7c 75 08 0.144154 95 01 15 00 25 01 b1 82 c0 c0 0.144190 Using subdriver: APC HID 0.95 0.144534 Report[get]: (2 bytes) => 01 01 0.144541 Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1 0.145016 Report[get]: (2 bytes) => 02 02 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1647088 Title: NUT not work with apc backups with usb through usbhid-ups To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1647088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs