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

DHCP lease screen not loading

DHCP and DNS
30
123
52.6k
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.
  • P
    pette_rsson
    last edited by Mar 9, 2021, 6:25 PM

    The page worked perfectly just before the update, and right after the update it was broken. I didn’t change a thing, did not even leave my chair....

    G Z 2 Replies Last reply Mar 10, 2021, 7:52 AM Reply Quote 2
    • G
      Gertjan @pette_rsson
      last edited by Mar 10, 2021, 7:52 AM

      @pette_rsson said in DHCP lease screen not loading:

      The page worked perfectly just before the update

      When the dust settled, did you executed a clean GUI reboot ?

      Time to inspect the dhcp leases files ?
      Like :

      [2.5.0-RELEASE][admin@pfsense.local.net]/root: ls -al /var/dhcpd/var/                                                                                                             db
      total 88
      drwxr-xr-x  2 dhcpd  _dhcp    512 Mar 10 07:52 .
      drwxr-xr-x  4 dhcpd  _dhcp    512 Jan 29  2015 ..
      -rw-r--r--  1 dhcpd  _dhcp  33690 Mar 10 08:04 dhcpd.leases
      -rw-r--r--  1 dhcpd  _dhcp  34410 Mar 10 07:52 dhcpd.leases~
      -rw-r--r--  1 dhcpd  _dhcp    527 Mar 10 06:03 dhcpd6.leases
      -rw-r--r--  1 dhcpd  _dhcp    772 Mar 10 06:03 dhcpd6.leases~
      

      The last two files are for the IPv6 DHCP leases and not concerned here.

      What did you find in the file "dhcpd.leases" ? (the dhcpd.leases~ is just an unused copy).
      Are there any "dhcpd.leases.xxxxxxx" where xxxxx is a number ?

      You can stop the DHCP server(s), wipe the dhcpd.leases and dhcpd.leases~ files, and restart the DHCP server(s). That helps ?

      Check the Status > System Logs > DHCP page.
      Refresh a page a couple of times. is there a lot of activity ? Any 'strange' messages ?

      @pette_rsson said in DHCP lease screen not loading:

      did not even leave my chair....

      Don't worry. It isn't about what you've done. It's more about what you (and we) don't know yet.

      Plan Z : (something I would do ) :
      Take a look at the /usr/local/www/status_dhcp_leases.php
      It's setting up some stuff, reads the leases file, and loops over it.

      I would place log lines so it drops an 'I'm here' every xx lines. They way, you'll see, when you look at the DHCP Lease files with the GUI, when it stops logging thus when it reached the point where it block. At that point, start logging the variables (their values) used just above, and you'll find out why an where it blocks.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      P R 2 Replies Last reply Mar 10, 2021, 3:21 PM Reply Quote 3
      • P
        plague311 @Gertjan
        last edited by Mar 10, 2021, 3:21 PM

        @gertjan Thank you for this. After I stopped the server, deleted all of the files, and restarted the server the dhcp leases screen is now pulling up without an issue.

        Genuinely confusing but as long as it works I'm happy.

        Thank you again for your help, it's very appreciated.

        1 Reply Last reply Reply Quote 1
        • P
          pette_rsson
          last edited by Mar 11, 2021, 7:47 AM

          Deleting the files and restart the DHCP server worked for me as well.

          A 1 Reply Last reply Mar 12, 2021, 9:15 PM Reply Quote 1
          • A
            ANRt @pette_rsson
            last edited by Mar 12, 2021, 9:15 PM

            Deleting the files provides a temporary fix. However, the issue returns after several hours.

            After a fresh install of pfSense the issue is not present, then returns some hours later. System has been tested for memory, hard disk, and network communication issues -- none are present.

            Upon a fresh install of pfSense pages load normally in the GUI. However, after several hours the pages for DHCP Leases, Update, Package Manager, and Dashboard will take up to a minute to load and occasionally fail to load with the 504 error.

            G 1 Reply Last reply Mar 12, 2021, 9:50 PM Reply Quote 0
            • G
              Gertjan @ANRt
              last edited by Mar 12, 2021, 9:50 PM

              @anrt

              Deleting the files is a plan Z solution.

              The real problem is that there is a device in your network that totally breaks the DHCP RFC.
              That device renews it's IP after a while, spits out the same nonsense, with ongoing consequences.

              The real mission is - Plan A - / was / says : find that device.
              And repair it (change the host name, give it a static IP, whatever) - or throw it out of the window.
              Issue solved. Definitely.

              Programs can be fool proof, but code can be bad, and still break everything.
              No one can program for every exception, or possible situation.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              A C 2 Replies Last reply Mar 12, 2021, 10:45 PM Reply Quote 0
              • A
                ANRt @Gertjan
                last edited by ANRt Mar 12, 2021, 10:56 PM Mar 12, 2021, 10:45 PM

                @gertjan said in DHCP lease screen not loading:

                The real problem is that there is a device in your network that totally breaks the DHCP RFC.
                That device renews it's IP after a while, spits out the same nonsense, with ongoing consequences.

                I just don't see how this is possible. There aren't any new devices on the network for months and this problem didn't appear until after upgrading/clean installing to 2.5.

                And, even if that is the problem it doesn't explain why other GUI pages are failing to load or loading exceptionally slowly.

                Like, how is login-to-view this the result of some funky client on the DCHP table? Especially when the DHCP log doesn't appear to have abnormal activity.

                G 1 Reply Last reply Mar 13, 2021, 2:24 PM Reply Quote 0
                • G
                  Gertjan @ANRt
                  last edited by Mar 13, 2021, 2:24 PM

                  @anrt
                  Unable to check for upgrades
                  is new in this thread.

                  The updates : Enter the console, and use option 13.
                  Does that work ?

                  If many pages become slow, then I tend to say that the entire PHP-FPM or even nginx (the webserver) has some issues.

                  Console option 8.
                  Use

                  top
                  

                  and see what is on top when you open some GUI pages.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  A 1 Reply Last reply Mar 15, 2021, 7:55 PM Reply Quote 0
                  • A
                    ANRt @Gertjan
                    last edited by Mar 15, 2021, 7:55 PM

                    @gertjan

                    Option 13 (Update from console): Another instance is already running. . . Aborting!

                    Shell "top": login-to-view

                    G 1 Reply Last reply Mar 15, 2021, 11:37 PM Reply Quote 0
                    • G
                      Gertjan @ANRt
                      last edited by Mar 15, 2021, 11:37 PM

                      @anrt said in DHCP lease screen not loading:

                      Update from console): Another instance is already running. . . Aborting!

                      I've seen that before : a blocked 'pkg' process.
                      The forum has words about that.

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      1 Reply Last reply Reply Quote 0
                      • C
                        chance @Gertjan
                        last edited by Apr 6, 2021, 3:00 PM

                        I've got the same DHCP page won't load issue. I just recently did the upgrade to 2.5.0(yesterday), and the problem appeared today. Did anyone ever figure out what was causing the issue?

                        P A 2 Replies Last reply Apr 6, 2021, 3:25 PM Reply Quote 1
                        • P
                          plague311 @chance
                          last edited by plague311 Apr 6, 2021, 3:33 PM Apr 6, 2021, 3:25 PM

                          @chance I just checked mine again and it's back to having the same problem. I don't have much more to offer, I'm just going to move DHCP off of pfsense.

                          I don't buy that there's some random device on my network that's having DHCP issues that somehow popped up with pfsense 2.5, given I had no issues at all previously (for years). If there's a problem, the problem is with whatever change they made in pfsense 2.5, not with one of my devices. If you check the forums the 2.5 update has been painful for a lot of people. Tons of stuff broke like VPN's, and the issues referred to in this thread. I'd just revert back if you still have that option. Wait for netgate to figure out what they did.

                          login-to-view

                          As you can see, my leases files aren't even to 10k. There's no way my DHCP scope or my leases are the issue.

                          1 Reply Last reply Reply Quote 0
                          • A
                            ANRt @chance
                            last edited by Apr 7, 2021, 4:06 PM

                            @chance I got mine working for a while by completely reinstalling pfSense and not using that system for anything but DHCP and the basic firewall (no packages, no certificate creation, no DNS, no port forwarding).

                            That ended up not working after around five days and the page was timing out again. So, I moved to Opnsense and haven't had any issues.

                            I'll probably be back to pfSense a few months after the next update comes out, but this has been a terrible experience.

                            P 1 Reply Last reply Apr 7, 2021, 4:25 PM Reply Quote 0
                            • P
                              plague311 @ANRt
                              last edited by Apr 7, 2021, 4:25 PM

                              @anrt said in DHCP lease screen not loading:

                              @chance I got mine working for a while by completely reinstalling pfSense and not using that system for anything but DHCP and the basic firewall (no packages, no certificate creation, no DNS, no port forwarding).

                              That ended up not working after around five days and the page was timing out again. So, I moved to Opnsense and haven't had any issues.

                              I'll probably be back to pfSense a few months after the next update comes out, but this has been a terrible experience.

                              I spun up a VM using OPNSense as well, and it was a decent piece of software. Like you, whatever the problematic device on my network was didn't seem to effect OPNSense. If the screen was more of an issue I'd probably switch over as well.

                              C 1 Reply Last reply Apr 7, 2021, 4:45 PM Reply Quote 1
                              • C
                                chance @plague311
                                last edited by Apr 7, 2021, 4:45 PM

                                Unfortunately I'm in "production" so I can't switch out to Opnsense without a huge change control and testing. My installation is also fairly complicated as it is a private ISP for a neighborhood. I guess that will teach me to upgrade... ever... even with the large amount of testing I did there are still minor things like this that will come up no matter what.

                                P A 3 Replies Last reply Apr 7, 2021, 4:48 PM Reply Quote 0
                                • P
                                  plague311 @chance
                                  last edited by Apr 7, 2021, 4:48 PM

                                  @chance said in DHCP lease screen not loading:

                                  Unfortunately I'm in "production" so I can't switch out to Opnsense without a huge change control and testing. My installation is also fairly complicated as it is a private ISP for a neighborhood. I guess that will teach me to upgrade... ever... even with the large amount of testing I did there are still minor things like this that will come up no matter what.

                                  If you look up at my post, I found that deleting the leases files got it working for a few days. I can test it on my home environment by deleting those files again and see if the screen will load. It might not be a perfect resolution but it might be a bit of a work around until netgate gets it figured out.

                                  1 Reply Last reply Reply Quote 1
                                  • A
                                    ANRt @chance
                                    last edited by Apr 7, 2021, 4:49 PM

                                    @chance Can you manage a rollback? It's a bit nuclear, but if everything was working on 2.45 then maybe sitting on that until the current development version is stable would be the best option.

                                    C 1 Reply Last reply Apr 7, 2021, 4:54 PM Reply Quote 1
                                    • C
                                      chance @ANRt
                                      last edited by Apr 7, 2021, 4:54 PM

                                      @anrt

                                      I probably can, but it's been a little while since the upgrade, and I "think" I can live with this for the time being... Here's hoping it makes 2.5.1...

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        plague311 @chance
                                        last edited by Apr 7, 2021, 4:57 PM

                                        @chance I deleted the files again, restarted the DHCP service through the DHCP leases screen and it is backup and running. So I can confirm that deleting those files and restarting the service will bring up that page again.

                                        That being said, after restarting the service the only leases that showed up in that screen were the static IPs. I didn't get time to test if I had to renew each dynamic device to see if it would show up, but when I loaded up my test VM it grabbed a DHCP address and then showed up in the list.

                                        I hope this helps a bit.

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          plague311
                                          last edited by plague311 Apr 7, 2021, 5:08 PM Apr 7, 2021, 5:06 PM

                                          I'll explain what I did in case someone stumbles across this thread looking for a work around.

                                          I run pfsense as a VM on my home server (just an old dell R810, nothing special), running ESXi. I opened up the console through the ESXi webGUi (SSH'ing in would do the same thing), pressed 8 (for shell) on the machine, typed

                                          cd /var/dhcpd/var/db

                                          Just to make sure I was in the right location I performed the

                                          ls -lh

                                          It's all lowercase but for clarification I typed LS -LH just so there's no confusion. After I confirmed that the files were in that directory I typed:

                                          rm dhcpd.leases dhcpd.leases~

                                          The one with the ~ is the active leases file. I deleted both just to be safe. I then opened up the webGUI for pfsense. I navigated to status > dhcp leases and restarted the service. Those showed all of my static IPs, and then the dynamics started filling in as my leases expired.

                                          I hope this helps someone.

                                          G 1 Reply Last reply Apr 8, 2021, 6:46 AM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.