APC UPS deamon plugin stopped working

Started by beneix, Today at 11:03:20 AM

Previous topic - Next topic
I performed a series of updates after returning from holidays. I updated 26.1.8_5 --> 26.1.11_10 --> 26.7.1_1 --> 26.7.2_2. The apcupsd plugin no longer starts and on the dashboard it states "Error: empty output from apcaccess". I think it broke already with the update to 26.1.11_10, but I am not sure.

Is this a known issue? There is no error in the log, just a notice that apcupsd is starting.
OPNsense 26.1.8_5-amd64 on APU2E4 using ZFS

If you have installed NUT on your system and you are monitoring the APC UPS using the apcupsd driver, you will encounter problems.

I do not have NUT installed. I found these entries in the backend log, but they aren't too helpful as there is no clue to why apcaccess returns exit status 1:

2026-08-18T16:56:49
Error
configd.py
[ba0645b2-b032-4318-b12a-b5c037461565] Script action failed with Command '/usr/local/sbin/apcaccess ' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 93, in execute subprocess.run(script_command, env=self.config_environment, shell=True, ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ check=not self.disable_errors, stdout=output_stream, stderr=error_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 577, in run raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '/usr/local/sbin/apcaccess ' returned non-zero exit status 1.
2026-08-18T16:56:39
Error
configd.py
[4740dfe5-0cc3-4a44-8aec-902f153d0d7f] Script action failed with Command '/usr/local/sbin/apcaccess ' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 93, in execute subprocess.run(script_command, env=self.config_environment, shell=True, ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ check=not self.disable_errors, stdout=output_stream, stderr=error_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 577, in run raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '/usr/local/sbin/apcaccess ' returned non-zero exit status 1.
2026-08-18T16:56:29
Error
configd.py
[f34fb567-56f2-4914-b3dd-083688ded618] Script action failed with Command '/usr/local/sbin/apcaccess ' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 93, in execute subprocess.run(script_command, env=self.config_environment, shell=True, ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ check=not self.disable_errors, stdout=output_stream, stderr=error_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 577, in run raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '/usr/local/sbin/apcaccess ' returned non-zero exit status 1.
2026-08-18T16:56:19
Error
configd.py
[edd0785d-d8de-4189-888c-146b543a9198] Script action failed with Command '/usr/local/sbin/apcaccess ' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 93, in execute subprocess.run(script_command, env=self.config_environment, shell=True, ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ check=not self.disable_errors, stdout=output_stream, stderr=error_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 577, in run raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '/usr/local/sbin/apcaccess ' returned non-zero exit status 1.
2026-08-18T16:56:09
Error
configd.py
[1282142a-6513-4ea2-896c-b806c61638fe] Script action failed with Command '/usr/local/sbin/apcaccess ' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 93, in execute subprocess.run(script_command, env=self.config_environment, shell=True, ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ check=not self.disable_errors, stdout=output_stream, stderr=error_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 577, in run raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '/usr/local/sbin/apcaccess ' returned non-zero exit status 1.
OPNsense 26.1.8_5-amd64 on APU2E4 using ZFS