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

    Dashboard gateways can't gather data - 2.0-BETA4 (i386) built on Fri Oct 1

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    23 Posts 10 Posters 8.6k 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.
    • G
      gnhb
      last edited by

      n1ko posted a link to his config in the other thread on this topic.
      "Changing Gateway configuration results in broken gateway" (http://forum.pfsense.org/index.php/topic,28599.0.html)

      He has two dhcp gateways and his /tmp/apinger.status file has only one line, for the first gateway, so that's the source of the "always just gathering data" problem. (The /tmp/apinger.status is the source for the data on the dashboard and in Status menu=>Gateways page.)

      I'm not sure if its an apinger bug, but it seems like it is.

      I've seen what bluematt is reporting, but I think that's just a data parsing problem, or html problem somewhere.

      GB

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Yeah the formatting is just a minor problem with the AJAX update of the gateway widget. Cosmetic only.

        I have two dynamic gateways (PPPoE DSL and DHCP Cable) right now and a good status for both, but I'm on a snap from Saturday.

        Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • B
          BlueMatt
          last edited by

          This would be fixed if apinger was restarted at some point.Ā  If you just killall -9 apinger; /usr/local/sbin/apinger -c /var/etc/apinger.conf
          it starts working again.

          1 Reply Last reply Reply Quote 0
          • G
            grazman
            last edited by

            I will confirm this fixes the status and the cosmetic layout of the table. I am monitoring this to see if it also resolves my outbound load balancing too.

            (using cron to restart the pinger hourly might be a good idea)

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              I committed a couple fixes just now that will correct the AJAX updating of the gateways widget. There were a couple problems before: (1) If the status was "gathering data", it output would become corrupted. (2) The last cell of the table was never updated.

              Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • B
                BlueMatt
                last edited by

                The problem here is that for some very odd reason apinger does not quit when sent the TERM signal, it needs the KILL signal.Ā  This only happens after initial boot, but if you restart apinger manually it will die from the TERM signal.Ā  A (potentially bad) option would be to replace all the killbypid with sigkillbypid (*, "KILL") in /etc/inc/gwlb.inc. Maybe send TERM then wait and if it does not quit send KILL.

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  Not sure if it will make any difference, but I just recompiled apinger on both of the builders (amd64 and i386) so the next snapshot should have an fresh binary.

                  It may have to wait until Ermal can have a look, but he's at EuroBSDCon so his availability is limited for a while.

                  Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • B
                    BlueMatt
                    last edited by

                    I checked and replacing killbypid("{$g['varrun_path']}/apinger.pid"); with sigkillbypid("{$g['varrun_path']}/apinger.pid","KILL");
                    on lines 43 and 225 of /etc/inc/gwlb.inc fixes the issue.Ā  Obviously this is not a good solution, but if anyone wants apinger to work until the actual root of the problem is found, you could do this.

                    1 Reply Last reply Reply Quote 0
                    • P
                      Phobia
                      last edited by

                      Hi there,

                      I'm running :

                      2.0-BETA4 Ā (i386)
                      built on Fri Oct 8 02:16:27 EDT 2010
                      FreeBSD 8.1-RELEASE-p1

                      I have 3 WAN connections, 2 x PPPoE (1 DSL, 1 VDSL) and 1 DHCP (cable).

                      The DHCP/cable connection correctly displays online, while my 2 PPPoE connection still show Gathering Data in the GW Status screen, as well as the GW Groups page. (blue indicator with gathering data)

                      It doesn't seem to impact functionality from what I can tell so far, but I have detected a new issue.

                      A while back the "disconnect" button for PPPoE interfaces wasn't working, and then it was fixed. Ā Something has again broken the functionality here as well as a press of disconnect now results in a loss of IP address, but the interface still shows as online with an IP of "0.0.0.0". Ā As the interface still thinks it is online, there is no "connect" button, and the only way to restore the connection seems to be a reboot.

                      So - there definitely seems to be something to PPPoE connections, gateways and the interface screen.

                      Thanks,

                      – Phob

                      1 Reply Last reply Reply Quote 0
                      • S
                        soldier1326
                        last edited by

                        @Phobia:

                        Something has again broken the functionality here as well as a press of disconnect now results in a loss of IP address, but the interface still shows as online with an IP of "0.0.0.0". Ā As the interface still thinks it is online, there is no "connect" button, and the only way to restore the connection seems to be a reboot.

                        The same situation with DHCP. But reboot not help. After rebootĀ  IP 0.0.0.0

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