Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Apcupsd on 2.2: multiple processes

    Scheduled Pinned Locked Moved pfSense Packages
    14 Posts 6 Posters 5.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      azzido
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • A Offline
        alfredo
        last edited by

        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 runs

        In 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 succeeded

        Everything fine.

        So what to do?

        1 Reply Last reply Reply Quote 0
        • A Offline
          alfredo
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • A Offline
            alfredo
            last edited by

            anybody?

            1 Reply Last reply Reply Quote 0
            • A Offline
              alfredo
              last edited by

              Anybody?

              1 Reply Last reply Reply Quote 0
              • S Offline
                sporkme
                last edited by

                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.
                
                
                1 Reply Last reply Reply Quote 0
                • F Offline
                  FlashEngineer
                  last edited by

                  Having this issue still with latest pfsense, can this be fixed somehow?

                  1 Reply Last reply Reply Quote 0
                  • W Offline
                    webdawg
                    last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dbaio
                      last edited by

                      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.

                      –
                      Danilo G. Baio (dbaio)

                      1 Reply Last reply Reply Quote 0
                      • W Offline
                        webdawg
                        last edited by

                        Not going to be able to do this for you.

                        2.3 changed entirely how packages work and this package was removed.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.