*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released

*New 11.3 series Release:
2020-04-16: XigmaNAS 11.3.0.4.7538 - released!


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Can't enable UPS, gives "Error: The changes could not be applied (Error Code 1)."

Uninterruptable Power Supply service using NUT.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Phuncz
NewUser
NewUser
Posts: 13
Joined: 13 Aug 2018 08:29
Status: Offline

Can't enable UPS, gives "Error: The changes could not be applied (Error Code 1)."

#1

Post by Phuncz »

I used the same UPS with the same USB cable on my older XigmaNAS box and it worked flawlessly. On the new system I've tried 3 different USB controllers (3.0 gen 1, 3.0 gen 2 and 2.0), different cables, rebooting ESXi, rebooting XigmaNAS (many times). Troubleshooting this, I'm constantly encountering "no such file or directory" errors for config files and I'm not sure how I can fix that. All the search results on the errors have not turned up anythin useful.

Version: 12.1.0.4 - Ingva (revision 7542)
This XigmaNAS install is a VM on ESXi 6.7 U3.
The UPS is an Eaton Ellipse ECO 650, which is fully supported by NUT using usbhid-ups.

The "USB device" is configured to be accessible to the VM and is visible inside the VM through SSH:

Code: Select all

$ usbconfig
ugen0.4: <EATON Ellipse ECO> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (20mA)

Code: Select all

$ sudo usbconfig
ugen0.1: <(0x15ad) UHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen1.1: <(0x15ad) EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.2: <VMware VMware Virtual USB Mouse> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA)
ugen0.3: <vendor 0x0e0f VMware Virtual USB Hub> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen0.4: <EATON Ellipse ECO> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (20mA)

When I try setting it up through the GUI I get the "Error: The changes could not be applied (Error Code 1)."
The settings through GUI are:

Mode: Master
Master User: root
Master Password: something
Identifier: ups1 (also tried to change this)
Driver: usbhid-ups (aslo tried with blazer_ups, doesn't work at all)
Port: auto (also tried /dev/ugen0.4)
Additional Parameters: none

Code: Select all

@xigmanas /etc/rc.d]$ sudo ./nut restart
Stopping nut.
Waiting for PIDS: 3427.
Network UPS Tools - UPS driver controller 2.7.4.1
Can't open /var/run/usbhid-ups-ups1.pid: No such file or directory
Can't open /var/run/usbhid-ups-auto.pid either: No such file or directory
Network UPS Tools - UPS driver controller 2.7.4.1
Network UPS Tools - Generic HID driver 0.43 (2.7.4.1)
USB communication driver 0.33
No matching HID UPS found
Driver failed to start (exit status=1)
./nut: WARNING: failed precmd routine for nut
In the XigmaNAS system log this I what I see at the same time:

Code: Select all

May 22 15:37:31	xigmanas	sudo:  : TTY=pts/0 ; PWD=/etc/rc.d ; USER=root ; COMMAND=./nut restart
May 22 15:37:31	xigmanas	upsd: mainloop: Interrupted system call
May 22 15:37:31	xigmanas	migrate: ./nut: WARNING: failed precmd routine for nut
May 22 15:37:36	xigmanas	upsmon: Poll UPS [ups1@localhost] failed - Write error: Broken pipe
May 22 15:37:41	xigmanas	upsmon: UPS [ups1@localhost]: connect failed: Connection failure: Connection refused

Code: Select all

$ sudo upsd
Network UPS Tools upsd 2.7.4.1
fopen /var/run/upsd.pid: No such file or directory
listening on ::1 port 3493
listening on 127.0.0.1 port 3493
Can't connect to UPS [ups1] (usbhid-ups-ups1): No such file or directory

EDIT: key issue has been found:

Code: Select all

$ sudo /usr/local/libexec/nut/usbhid-ups -a ups1 -DDD
Network UPS Tools - Generic HID driver 0.43 (2.7.4.1)
USB communication driver 0.33
   0.000000     [D1] debug level is '3'
   0.000284     [D2] Initializing an USB-connected UPS with library (null) (NUT subdriver name='USB communication driver' ver='0.33')
   0.000292     [D1] upsdrv_initups (non-SHUT)...
   2.419801     [D3] usb_busses=0x80027e018
   2.419819     [D2] Checking device (0463/FFFF) (/dev/usb//dev/ugen0.4)
   3.181985     [D2] - VendorID: 0463
   3.182000     [D2] - ProductID: ffff
   3.182002     [D2] - Manufacturer: EATON
   3.182005     [D2] - Product: Ellipse ECO
   3.182007     [D2] - Serial Number: 000000000
   3.182009     [D2] - Bus: /dev/usb
   3.182012     [D2] - Device release number: 0100
   3.182014     [D2] Trying to match device
   3.182019     [D2] Device matches
   3.182027     [D3] nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)
   3.260962     [D3] HID descriptor, method 1: (9 bytes) => 09 21 10 10 21 01 22 8d 03
   3.260977     [D3] HID descriptor length (method 1) 909
   3.260982     [D3] HID descriptor, method 2: (9 bytes) => 09 21 10 10 21 01 22 8d 03
   3.260984     [D3] HID descriptor length (method 2) 909
   3.260986     [D2] HID descriptor length 909
   5.382016     [D2] Unable to get Report descriptor: Input/output error
   5.382052     [D2] Checking device (0E0F/0002) (/dev/usb//dev/ugen0.3)
   5.408373     [D2] - VendorID: 0e0f
   5.408383     [D2] - ProductID: 0002
   5.408386     [D2] - Manufacturer: unknown
   5.408389     [D2] - Product: VMware Virtual USB Hub
   5.408392     [D2] - Serial Number: unknown
   5.408395     [D2] - Bus: /dev/usb
   5.408398     [D2] - Device release number: 0100
   5.408401     [D2] Trying to match device
   5.408408     [D2] Device does not match - skipping
   5.408418     [D2] Checking device (0E0F/0003) (/dev/usb//dev/ugen0.2)
   5.431583     [D2] - VendorID: 0e0f
   5.431591     [D2] - ProductID: 0003
   5.431593     [D2] - Manufacturer: VMware
   5.431595     [D2] - Product: VMware Virtual USB Mouse
   5.431598     [D2] - Serial Number: unknown
   5.431600     [D2] - Bus: /dev/usb
   5.431602     [D2] - Device release number: 0102
   5.431604     [D2] Trying to match device
   5.431607     [D2] Device does not match - skipping
   5.431615     [D2] Checking device (0000/0000) (/dev/usb//dev/ugen1.1)
   5.431638     [D2] - VendorID: 0000
   5.431643     [D2] - ProductID: 0000
   5.431645     [D2] - Manufacturer: (0x15ad)
   5.431647     [D2] - Product: EHCI root HUB
   5.431649     [D2] - Serial Number: unknown
   5.431651     [D2] - Bus: /dev/usb
   5.431653     [D2] - Device release number: 0100
   5.431655     [D2] Trying to match device
   5.431658     [D2] Device does not match - skipping
   5.431663     [D2] Checking device (0000/0000) (/dev/usb//dev/ugen0.1)
   5.431680     [D2] - VendorID: 0000
   5.431683     [D2] - ProductID: 0000
   5.431685     [D2] - Manufacturer: (0x15ad)
   5.431687     [D2] - Product: UHCI root HUB
   5.431689     [D2] - Serial Number: unknown
   5.431691     [D2] - Bus: /dev/usb
   5.431693     [D2] - Device release number: 0100
   5.431695     [D2] Trying to match device
   5.431697     [D2] Device does not match - skipping
   5.431702     [D2] libusb: No appropriate HID device found
   5.431707     No matching HID UPS found
Searching for that phrase "Unable to get Report descriptor: Input/output error" let me here: https://github.com/networkupstools/nut/issues/589
It seems to be a VMware related issue. So a way is to passthrough an entire controller, which I can't in this instance. This means I somehow have to get the UPS working on ESXi if I want to use it.

Post Reply

Return to “UPS”