MartyS wrote:You could try this command:to see what happens.
- Code: Select all
/usr/local/sbin/apcaccess
- Code: Select all
Error contacting apcupsd @ localhost:3551: Connection refused
Now to try the reinstall option...
MartyS wrote:You could try this command:to see what happens.
- Code: Select all
/usr/local/sbin/apcaccess
Error contacting apcupsd @ localhost:3551: Connection refused
That's exactly what I'd expect to see when the daemon isn't running.
- Code: Select all
Error contacting apcupsd @ localhost:3551: Connection refused
DaveL17 wrote:Success. It was either of two things.
1. I noticed in the docs that if the reinstall was on top of an old one, then apcupsd.conf would be retained and a new file (apcupsd.conf.new) would be created. After a couple of failed reinstall attempts, I deleted apcupsd.conf and renamed apcupsd.conf.new to apcupsd.conf.
2. This iMac has been booting a little slowly for a while now and, instead of entering user credentials immediately after rebooting, I poured myself a libation and then logged in. This may have given the daemon enough time to spool up before the user account tried to connect to it.
Regardless, looks like I'm in business. Thanks for the help.
Now to work on the slow boot issue...
cat apcupsd.events
2018-11-21 06:58:23 -0600 Valid lock file for pid=118, but not ours pid=115
2018-11-21 06:58:23 -0600 apcupsd FATAL ERROR in apcupsd.c at line 221
Unable to create UPS lock file.
If apcupsd or apctest is already running,
please stop it and run this program again.
2018-11-21 06:58:23 -0600 Valid lock file for pid=118, but not ours pid=115
2018-11-21 06:58:23 -0600 apcupsd error shutdown completed
cat Lock..
0000000118^@
sudo nano LCK..
0000000115^@
2018-11-21 07:50:03 -0600 apcupsd 3.14.14 (31 May 2016) darwin startup succeeded
Here's a version that installs the kext in /Library/Extensions instead of /System/Library/Extensions:
https://sourceforge.net/projects/apcupsd/files/Testing/apcupsd-3.14.14-macos-x86_64-2/Apcupsd-3.14.14.dmg/download
DaveL17 wrote:Run apcaccess from the terminal. It could be that the plugin will need to be updated for the new version of apcupsd.
That’s just a guess though.
/var/run/apcupsd.pid
/var/tmp/LCK..
Users browsing this forum: No registered users and 2 guests