petematheson wrote:Hi,
I'm seeing these errors on the latest version:
apcupsd Error readApcupsd: Connection to apcaccess failed with error code:32512. Attempt 1 of 5
apcupsd Error readApcupsd: Connection to apcaccess failed with error code:32512. Attempt 2 of 5
apcupsd Error readApcupsd: Connection to apcaccess failed with error code:32512. Attempt 3 of 5
apcupsd Error readApcupsd: Connection to apcaccess failed with error code:32512. Attempt 4 of 5
apcupsd Error readApcupsd: Connection to apcaccess failed with error code:32512. Attempt 5 of 5
I have recently upgraded to Mavericks and upgraded the apcupsd plugin so not sure if I've slipped up somewhere. Help !?
Edit: As I suspected, the latest version of the apcupsd
package (3.14.14)
does changed the installation path for its binary, regardless of your system's implementation of SIP. This is a good thing actually… it just bites this
plugin in the rear because it uses a fixed path. So anyone that has upgraded the
package will see this
plugin error and no Indigo device state updates will happen for your UPS devices until it's addressed!
I'm going to take a guess that the reason you and others are seeing this error is that the apcupsd
package (not the
Indigo plugin of the same name) either didn't get installed properly, or during an OS X upgrade some/all of the binaries for that package got moved out of their expected locations (VERY easy to have happen with OS X versions that use SIP to protect the /sbin, etc. folders).
Would you please try the following command in a Terminal session:
- Code: Select all
ls -la /sbin/apc*
I suspect that you won't see any/all of the following output (the sizes and dates don't have to match):
- Code: Select all
$ ls -la /sbin/apc*
-rwxr-xr-x 1 root wheel 42336 Feb 2 2015 /sbin/apcaccess
-rwx------ 1 root wheel 433712 Feb 2 2015 /sbin/apctest
-rwx------ 1 root wheel 390352 Feb 2 2015 /sbin/apcupsd
-rwxr-xr-x 1 root wheel 77 Feb 2 2015 /sbin/apcupsd-start
-rwxr-xr-x 1 root wheel 1174 Feb 2 2015 /sbin/apcupsd-uninstall
If you see apcaccess listed on your system's output, try issuing a command the apcupsd
plugin does like the following:
- Code: Select all
/sbin/apcaccess status <IP-from-Indigo-UPS-device> <port-from-Indigo-UPS-device>
You should see something that has output similar to this (I truncated my output to keep it simple):
- Code: Select all
$ /sbin/apcaccess status 127.0.0.1 3551
APC : 001,038,0987
DATE : 2016-08-24 21:34:41 -0400
HOSTNAME : office-Mac-3.local
VERSION : 3.14.13 (02 February 2015) darwin
UPSNAME : office
CABLE : USB Cable
. . .
If I'm right that OS X upgrades are moving the binaries, and/or that later versions of the apcupsd
package installs them somewhere besides in the /sbin path then the
plugin will need to be changed to match both the new and old paths. Please let me know what OS X version and apcupsd
package version you have installed and I'll look into it.