I'm trying to get the Nut plugin to work with my new UPS, an Infosec X3 500 USB. OMV box is an HP N54L connected to the UPS through USB.
When I enable the plugin, the Services > UPS pops up the following error: Failed to execute command 'upsc 'infosec' 2>&1': Error: Driver not connected
Error #4000:
exception 'OMVException' with message 'Failed to execute command 'upsc 'infosec' 2>&1': Error: Driver not connected' in /usr/share/openmediavault/engined/rpc/nut.inc:151
Stack trace:
#0 [internal function]: OMVRpcServiceNetworkUPSTools->getStats(NULL, Array)
#1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('getStats', NULL, Array)
#3 /usr/sbin/omv-engined(500): OMVRpc::exec('Nut', 'getStats', NULL, Array, 1)
#4 {main}
The console is also spammed with the following message ever 10 seconds:
My settings in the plugin are:
driver = blazer_usb (I've also tried with other drivers, but this is the one recommended by the NUT compatibility list)
port = auto (I've also tried with 'usb' and 'dev/usb/hiddev0', etc...)
This is the output of lsusb:
Bus 005 Device 008: ID 0665:5161 Cypress Semiconductor USB to Serial
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
So I've tried adding the following options to config, as suggested by the blazer_usb man page, to no avail:
vendorid = 0665
productid = 5161
subdriver = cypress
Other things I've tried:
$ sudo /lib/nut/blazer_usb -a infosec -x vendorid=0665
Network UPS Tools - Megatec/Q1 protocol USB driver 0.08 (2.6.4)
No supported UPS detected
$ sudo /lib/nut/blazer_usb -a infosec -DD
Network UPS Tools - Megatec/Q1 protocol USB driver 0.08 (2.6.4)
0.000000 debug level is '2'
0.461471 Checking device (1D6B/0001) (006/001)
0.525061 - VendorID: 1d6b
0.525132 - ProductID: 0001
0.525164 - Manufacturer: unknown
0.525191 - Product: unknown
0.525221 - Serial Number: unknown
0.525248 - Bus: 006
0.525273 Trying to match device
0.525346 Device does not match - skipping
0.525441 Checking device (1D6B/0001) (005/001)
0.589076 - VendorID: 1d6b
0.589148 - ProductID: 0001
0.589182 - Manufacturer: unknown
0.589208 - Product: unknown
0.589239 - Serial Number: unknown
0.589265 - Bus: 005
0.589290 Trying to match device
0.589326 Device does not match - skipping
0.589480 Checking device (1D6B/0001) (004/001)
0.653048 - VendorID: 1d6b
0.653119 - ProductID: 0001
0.653146 - Manufacturer: unknown
0.653171 - Product: unknown
0.653202 - Serial Number: unknown
0.653227 - Bus: 004
0.653252 Trying to match device
0.653292 Device does not match - skipping
0.653458 Checking device (1D6B/0002) (003/001)
0.653610 - VendorID: 1d6b
0.653656 - ProductID: 0002
0.653686 - Manufacturer: unknown
0.653715 - Product: unknown
0.653745 - Serial Number: unknown
0.653795 - Bus: 003
0.653822 Trying to match device
0.653873 Device does not match - skipping
0.665584 Checking device (1D6B/0002) (002/001)
0.665813 - VendorID: 1d6b
0.665856 - ProductID: 0002
0.665888 - Manufacturer: unknown
0.665919 - Product: unknown
0.665951 - Serial Number: unknown
0.665979 - Bus: 002
0.666008 Trying to match device
0.666048 Device does not match - skipping
0.677752 Checking device (1D6B/0002) (001/001)
0.677987 - VendorID: 1d6b
0.678025 - ProductID: 0002
0.678056 - Manufacturer: unknown
0.678082 - Product: unknown
0.678112 - Serial Number: unknown
0.678138 - Bus: 001
0.678168 Trying to match device
0.678204 Device does not match - skipping
0.689921 No appropriate HID device found
0.690016 No supported devices found. Please check your device availability with 'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'subdriver', 'vendorid' and 'productid'
options specified. Please refer to the man page for details about these options
(man 8 blazer).
$ sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.6.4
Network UPS Tools - Megatec/Q1 protocol USB driver 0.08 (2.6.4)
No supported devices found. Please check your device availability with 'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'subdriver', 'vendorid' and 'productid'
options specified. Please refer to the man page for details about these options
(man 8 blazer).
Driver failed to start (exit status=1)
$ dmesg
[ 2201.716336] usb 5-1: USB disconnect, device number 69
[ 2203.472949] usb 5-1: new low-speed USB device number 70 using ohci-pci
[ 2203.641885] usb 5-1: New USB device found, idVendor=0665, idProduct=5161
[ 2203.641893] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2203.641897] usb 5-1: Product: USB to Serial
[ 2203.641899] usb 5-1: Manufacturer: INNO TECH
[ 2203.656369] hid-generic 0003:0665:5161.00C3: hiddev0,hidraw0: USB HID v1.00 D evice [INNO TECH USB to Serial] on usb-0000:00:13.0-1/input0
[ 2213.032151] usb 5-1: USB disconnect, device number 70
[ 2214.783828] usb 5-1: new low-speed USB device number 71 using ohci-pci
[ 2214.956866] usb 5-1: New USB device found, idVendor=0665, idProduct=5161
[ 2214.956878] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2214.956885] usb 5-1: Product: USB to Serial
[ 2214.956891] usb 5-1: Manufacturer: INNO TECH
[ 2214.970192] hid-generic 0003:0665:5161.00C4: hiddev0,hidraw0: USB HID v1.00 D evice [INNO TECH USB to Serial] on usb-0000:00:13.0-1/input0
[ 2224.347316] usb 5-1: USB disconnect, device number 71
[ 2226.098545] usb 5-1: new low-speed USB device number 72 using ohci-pci
[ 2226.267628] usb 5-1: New USB device found, idVendor=0665, idProduct=5161
[ 2226.267640] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2226.267647] usb 5-1: Product: USB to Serial
[ 2226.267653] usb 5-1: Manufacturer: INNO TECH
[ 2226.281932] hid-generic 0003:0665:5161.00C5: hiddev0,hidraw0: USB HID v1.00 D evice [INNO TECH USB to Serial] on usb-0000:00:13.0-1/input0
[ 2235.600381] usb 5-1: USB disconnect, device number 72
[ 2237.349406] usb 5-1: new low-speed USB device number 73 using ohci-pci
[ 2237.518441] usb 5-1: New USB device found, idVendor=0665, idProduct=5161
[ 2237.518453] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2237.518460] usb 5-1: Product: USB to Serial
[ 2237.518466] usb 5-1: Manufacturer: INNO TECH
[ 2237.532051] hid-generic 0003:0665:5161.00C6: hiddev0,hidraw0: USB HID v1.00 D evice [INNO TECH USB to Serial] on usb-0000:00:13.0-1/input0
Alles anzeigen
I've also tried plugging/unplugging the USB, rebooting the server, restarting the UPS, etc... with no better result.
Any ideas ?