APC UPS issues

bwanajag

Dabbler
Joined
Feb 23, 2020
Messages
10
I'm having issues with FreeNAS connecting to my APC Smart-UPS using USB. When I plug the UPS in, I get the following in the console:

Code:
Mar 27 06:11:10 freenas uhid0: <American Power Conversion Smart-UPS C 1000 FWUPS 10.0  ID1005, class 0/0, rev 2.00/1.06, addr 5> on usbus0
Mar 27 06:11:36 freenas upsmon[98215]: UPS [apcups@localhost:3493]: connect failed: Connection failure: Connection refused
Mar 27 06:11:41 freenas upsmon[98215]: UPS [apcups@localhost:3493]: connect failed: Connection failure: Connection refused
Mar 27 06:11:45 freenas collectd[98269]: nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Connection failure: Connection refused


I'm using the APC ups 2 Smart-UPS USB USB (usbhid-ups) driver and an on port /dev/uhid0. I also received the following error

Code:
Mar 27 06:29:02 freenas root: /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
Mar 27 06:29:02 freenas root: /usr/local/etc/rc.d/nut_upsmon: WARNING: failed to start nut_upsmon
Mar 27 06:29:03 freenas collectd[584]: nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Connection failure: Connection refused


I've also tried the APC ups 1 Smart-UPS (apcsmart) driver, but it didn't work either. Any help would be appreciated.
 

bwanajag

Dabbler
Joined
Feb 23, 2020
Messages
10
Ok, it started working after restarting NUT service using the usbhid-ups driver. From the shell, I can get parameters for the UPS using

Code:
upsc ups@localhost
 

raskitoma

Dabbler
Joined
Sep 28, 2018
Messages
17
Hi, I'm having the same problem with an APC Smart-UPS. This is the log when I connect it to the usb port:
Code:
Sep 22 10:46:53 tenguemerengue ugen0.4: <vendor 0x04e2 product 0x1410> at usbus0
Sep 22 10:46:53 tenguemerengue umodem0 on uhub0
Sep 22 10:46:53 tenguemerengue umodem0: <vendor 0x04e2 product 0x1410, class 239/2, rev 2.00/0.03, addr 3> on usbus0
Sep 22 10:46:53 tenguemerengue umodem0: data interface 1, has no CM over data, has break


I have been able to connect into ubuntu using the apcupsd-ups driver. I tried to do the same on TrueNAS but with no luck at all.
 
Top