There are two UPS entries that give me this error (ERR ACCESS-DENIED
) when I run a self-test:
Error running command test.battery.start.quick, Error running: INSTCMD basement-network-closet-3 test.battery.start.quick: ERR ACCESS-DENIED
SSH
One of them, the Raspberry PI has 3 UPSs attached, and only the 3rd one has issues. If I run the command over SSH, it does work:
pi@ups-basement-network-closet:~ $ upscmd -u upsmon -p REDACTED basement-network-closet-3 test.battery.start.quick
OK
Oddly, it didn’t work for all 3 when I used the interactive method:
pi@ups-basement-network-closet:~ $ upscmd basement-network-closet-3 test.battery.start.quick
Username (pi): upsmon
Password:
Unexpected response from upsd: ERR ACCESS-DENIED
pi@ups-basement-network-closet:~ $ upscmd basement-network-closet-3 test.battery.start.quick
Username (pi): upsmon
Password: # I put no password this time.
Unexpected response from upsd: ERR PASSWORD-REQUIRED
pi@ups-basement-network-closet:~ $ upscmd basement-network-closet-2 test.battery.start.quick
Username (pi): upsmon
Password:
Unexpected response from upsd: ERR ACCESS-DENIED
pi@ups-basement-network-closet:~ $ upscmd basement-network-closet-1 test.battery.start.quick
Username (pi): upsmon
Password:
Unexpected response from upsd: ERR ACCESS-DENIED
pi@ups-basement-network-closet:~ $ sudo upscmd basement-network-closet-1 test.battery.start.quick
Username (root): upsmon
Password:
Unexpected response from upsd: ERR ACCESS-DENIED
Strangely, it worked when I was admin
the other day.
Home Assistant
Config for that device uses the same user:
The user has the capability of running a self-test on that UPS as well:
pi@ups-basement-network-closet:~ $ upscmd -l basement-network-closet-3
Instant commands supported on UPS [basement-network-closet-3]:
beeper.disable - Disable the UPS beeper
beeper.enable - Enable the UPS beeper
beeper.mute - Temporarily mute the UPS beeper
beeper.off - Obsolete (use beeper.disable or beeper.mute)
beeper.on - Obsolete (use beeper.enable)
load.off - Turn off the load immediately
load.off.delay - Turn off the load with a delay (seconds)
load.on - Turn on the load immediately
load.on.delay - Turn on the load with a delay (seconds)
shutdown.return - Turn off the load and return when power is back
shutdown.stayoff - Turn off the load and remain off
shutdown.stop - Stop a shutdown in progress
test.battery.start.deep - Start a deep battery test
test.battery.start.quick - Start a quick battery test
test.battery.stop - Stop the battery test
???
What’s going on here? Why just this one and one other UPS?