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

    Fatal error trying to delete DHCP leases

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 647 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.
    • J
      jjj
      last edited by

      We setup the pfSense box and disabled DHCP, but it still gave out DHCP leases (on a 192.168.1.0/24 network that's not even configured or assigned to an interface). We then rebooted it which stopped DHCP from the box and now when trying to delete leases it throws this error:

      Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 2 bytes) in /usr/local/www/status_dhcp_leases.php on line 79 Call Stack: 0.0001 229744 1. {main}() /usr/local/www/status_dhcp_leases.php:0 0.0147 763448 2. file() /usr/local/www/status_dhcp_leases.php:79 PHP ERROR: Type: 1, File: /usr/local/www/status_dhcp_leases.php, Line: 79, Message: Allowed memory size of 536870912 bytes exhausted (tried to allocate 2 bytes)

      It let us delete like half of the leases, then started throwing the error.
      Just an FYI.

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

        If the daemon is disabled/stopped, just ignore the page or remove the lease files /var/dhcpd/var/db/dhcpd*

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.