Apcupsd on 2.2: multiple processes
-
This issue might be related to the problem that I had with FreeRADIUS. See bug: https://redmine.pfsense.org/issues/4337.
The fact that there are two startup scripts is normal and is not the cause of this issue.
To check if the startup scripts are causing the issue try to kill all apcupsd processes and start it manually by running "apcupsd.sh start". Then check how many processes are started.
-
The problem seems to occur on booting and firewall configuration changes. So maybe the problem is there.
When stopping/starting manually:
/usr/local/etc/rc.d/apcupsd.sh stop
-> no process
/usr/local/etc/rc.d/apcupsd.sh start
-> one process runsIn system.log:
Jul 14 10:35:34 fw2 kernel: pid 49899 (apcupsd), uid 0: exited on signal 10 (core dumped)
Jul 14 10:35:47 fw2 apcupsd[77519]: apcupsd 3.14.12 (29 March 2014) freebsd startup succeeded
Jul 14 10:35:47 fw2 apcupsd[77519]: NIS server startup succeededEverything fine.
So what to do?
-
Question:
Starting APC UPS Daemon…
Is never shown in system.log; is /usr/local/etc/rc.d/apcupsd.sh not used?
We only get:
Jul 14 10:54:19 fw2 apcupsd[85701]: apcupsd 3.14.12 (29 March 2014) freebsd startup succeeded
Jul 14 10:54:19 fw2 apcupsd[85701]: NIS server startup succeeded
Jul 14 10:54:19 fw2 apcupsd[93634]: apcupsd 3.14.12 (29 March 2014) freebsd startup succeeded -
anybody?
-
Anybody?
-
Still seeing it here after both upgrading pfSense to 2.2.3 (will try 2.2.4 when convenient) and reinstalling the apcupsd package. The package reports itself as version 3.14.12.
Aug 6 21:50:50 apcupsd[94698]: NIS server startup succeeded Aug 6 21:50:50 apcupsd[94698]: apcupsd 3.14.12 (29 March 2014) freebsd startup succeeded Aug 6 21:50:45 apcupsd[82835]: apcupsd shutdown succeeded Aug 6 21:50:45 apcupsd[86117]: apcupsd shutdown succeeded Aug 6 21:50:45 apcupsd[82835]: apcupsd exiting, signal 15 Aug 6 21:50:45 apcupsd[86117]: apcupsd exiting, signal 15 Aug 6 21:50:26 apcupsd[86117]: apcserver: cannot bind port 3551\. ERR=Address already in use Aug 6 21:50:26 apcupsd[86117]: apcupsd 3.14.12 (29 March 2014) freebsd startup succeeded Aug 6 21:50:26 apcupsd[82835]: NIS server startup succeeded Aug 6 21:50:26 apcupsd[82835]: apcupsd 3.14.12 (29 March 2014) freebsd startup succeeded Aug 6 21:50:21 apcupsd[67945]: apcupsd shutdown succeeded Aug 6 21:50:21 apcupsd[67945]: apcupsd exiting, signal 15 Aug 6 21:50:20 php-fpm: /rc.start_packages: Restarting/Starting all packages. Aug 6 21:50:20 php-fpm: /rc.start_packages: Restarting/Starting all packages.
-
Having this issue still with latest pfsense, can this be fixed somehow?
-
I sent a PM to the maintainer: dbaio
I also posted in his thread here: https://forum.pfsense.org/index.php?topic=70830.0
Lets see what happens. I have the same issue when installing. I am going to disable for now.
-
Sorry, I was away from this forum.
@webdawg, try this command like @alfredo did:
/usr/local/etc/rc.d/apcupsd.sh stop
Check if this works killing all apcupsd process.
I think "killall apcupsd" is not killing the process in your box.
About the two startup scripts, apcupsd.sh is generated by pfsense and this script is used by the web interface.
The other one came with the FreeBSD package and it's not used.
-
Not going to be able to do this for you.
2.3 changed entirely how packages work and this package was removed.