1
22.7 Legacy Series / Getting NUT to work via USB cable connection
« on: November 22, 2022, 04:28:15 pm »
Hello,
I have an APC-BN1500M2 UPS connected to my OPNsense box via the UPS supplied usb cable. I've added NUT from the packages repo, and attempted to configure it as a 'standalone' with defaultt listen address (though shouldn't need that for USB?).
Under UPS TYPE extra arguments is port=auto. I've tried USBHID, BlazerUSB, APCSMART-DRIVER and no dice.
Under services nut_upsmon starts, but nut_daemon will not start.
Backend:
022-11-22T09:54:50-05:00 Error configd.py [934eb004-eebf-4a8e-99d5-8538a71af61a] Script action failed with Command '/usr/local/bin/upsc 'BN1500M2@127.0.0.1'' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 482, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/bin/upsc 'BN1500M2@127.0.0.1'' returned non-zero exit status 1.
General:
2022-11-22T09:53:47-05:00 Error upsmon UPS [BN1500M2]: connect failed: Connection failure: Operation timed out
2022-11-22T09:52:27-05:00 Notice upsmon UPS BN1500M2 is unavailable
https://www.apc.com/us/en/product/BN1500M2/apc-backups-pro-1500va-120v-avr-lcd-2-usb-charging-ports-10-nema-outlets-4-surge/
Thanks.
I have an APC-BN1500M2 UPS connected to my OPNsense box via the UPS supplied usb cable. I've added NUT from the packages repo, and attempted to configure it as a 'standalone' with defaultt listen address (though shouldn't need that for USB?).
Under UPS TYPE extra arguments is port=auto. I've tried USBHID, BlazerUSB, APCSMART-DRIVER and no dice.
Under services nut_upsmon starts, but nut_daemon will not start.
Backend:
022-11-22T09:54:50-05:00 Error configd.py [934eb004-eebf-4a8e-99d5-8538a71af61a] Script action failed with Command '/usr/local/bin/upsc 'BN1500M2@127.0.0.1'' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 482, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/bin/upsc 'BN1500M2@127.0.0.1'' returned non-zero exit status 1.
General:
2022-11-22T09:53:47-05:00 Error upsmon UPS [BN1500M2]: connect failed: Connection failure: Operation timed out
2022-11-22T09:52:27-05:00 Notice upsmon UPS BN1500M2 is unavailable
https://www.apc.com/us/en/product/BN1500M2/apc-backups-pro-1500va-120v-avr-lcd-2-usb-charging-ports-10-nema-outlets-4-surge/
Thanks.