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

    Connection interruption and DHCP Lease 504 GW Time-out

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 2 Posters 908 Views 2 Watching
    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.
    • T Offline
      turrican64
      last edited by turrican64

      Hello

      Software version: 21.05.2-RELEASE

      Devices connected to SG-1100 had network connectivity issues.
      It happened on two different locations as well couple days apart. Unfortunately I was not on site and because they are production boxes I didn't have time for extensive troubleshooting remotely.

      I've noticed on both boxes that the Status > DHCP Leases page returns 504 Gateway Time-out (nginx) error message, but I had no issues opening other pages on the router.
      8699f29a-b606-44af-b94a-ebb7ecc7f358-nginx time-out.JPG

      The DHCP Server status indicated that the service is up and running.
      843c6eea-a30d-4e97-aaef-ecc7443023a1-image.png

      I still restarted the DHCP server and at the first occasion the connectivity issue has resolved after, and I was also able to open the DHCP Leases page successfully.

      Unfortunately restarting the DCHP server didn't solve the issue when the same issue appered on the other SG-1100 box couple days later. I still received the 504 Gateway Timeout when I tried to open the DHCP Leases page. I had to restart the SG-1100 which has solved the problem connectivity problem and I was also been able to open the DHCP Leases page.

      Today again there were connectivity issues reported on both boxes. One of the boxes was restarted almost immediately, I was not able to remotely log in to see if the symptoms are similar and if it is possible to open the DHCP Leases page, but the restart resolved the connectivity issue.
      I was also not able to log in to the other box immediately when the issue was reported, only half an hour later, but at that time the connectivity issue has disappeared by itself (this box was not rebooted) and I was also able to open the DHCP Leases page.

      I was checking the DHCP logs page but no error messages. Would you please help me what other logs I should check to pinpoint the problem?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        The most common issue in 21.05.2 that might present like that is the pcscd memory leak. For which there is a patch: https://redmine.pfsense.org/issues/11933#note-7

        Check the previous memory usage in Status > Monitoring.

        Steve

        T 1 Reply Last reply Reply Quote 1
        • T Offline
          turrican64 @stephenw10
          last edited by

          @stephenw10 Thank you Steve very useful.
          The graph shows the continuous memory depletion over 30 days.

          Is there a proper way to disable the pcscd daemon or shall I just stop it in the Status > Services every time after reboot?

          1 Reply Last reply Reply Quote 0
          • stephenw10S Offline
            stephenw10 Netgate Administrator
            last edited by

            Yeah, apply the patch I linked above using the System Patches package. That prevents it starting at boot. Or upgrade to 22.01-Beta where it's now disabled by default if that's an option for you.

            Steve

            1 Reply Last reply Reply Quote 1
            • T Offline
              turrican64
              last edited by

              This System Patches package is great. I just applied the patch.

              Thank you!

              1 Reply Last reply Reply Quote 0
              • T Offline
                turrican64
                last edited by

                I see the target Plus version is 22.01
                Do I need to remove the patch manually before I upgrade to 22.01 or the upgrade will take care of it automatically and the patch will disappear from the Patches list?

                1 Reply Last reply Reply Quote 0
                • stephenw10S Offline
                  stephenw10 Netgate Administrator
                  last edited by

                  Nope the upgrade will take care of it. The patch will remain in the package but will show as applied because it's already in 22.01. You can just delete it at that point, do not revert it!

                  Steve

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