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

    PHP errors with 2.7.0-DEVELOPMENT-amd64-20220512-1201 snapshot

    Scheduled Pinned Locked Moved CE 2.7.0 Development Snapshots (Retired)
    9 Posts 2 Posters 948 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.
    • N
      NRgia
      last edited by NRgia

      Did a clean reinstall and received this:
      md64
      12.3-STABLE
      FreeBSD 12.3-STABLE devel-12-n227369-faf3efce301 pfSense

      Crash report details:

      PHP Errors:
      [12-May-2022 18:31:16 ] PHP Warning: file_put_contents(/var/dhcpd/var/db/dhcpd.leases): failed to open stream: No such file or directory in /etc/inc/config.lib.inc on line 264

      No FreeBSD crash data found.

      Under /var/dhcpd/var/db/ I have two files named:
      dhcpd.leases
      dhcpd.leases~
      created today.

      Any ideas?

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

        Were you restoring a configuration that contained DHCP lease data?

        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!

        N 1 Reply Last reply Reply Quote 0
        • N
          NRgia @jimp
          last edited by

          @jimp Correct. The thing is I did not lose any lease data. Is there any impact here?

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

            I'd expect it to have failed to restore the data with that error so I'm not sure what might have happened. Likely the directory did not exist at first and then once it was created it could restore the data.

            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!

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

              One more question: How did you restore the configuration? Using the GUI? Copied from USB during the install? Or using the ECL method?

              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!

              N 1 Reply Last reply Reply Quote 0
              • N
                NRgia @jimp
                last edited by NRgia

                @jimp Inspecting further I see that all leases were reassigned with today's date, besides the DHCP Static Mappings ones.

                1 Reply Last reply Reply Quote 0
                • N
                  NRgia @jimp
                  last edited by

                  @jimp I used both of them.
                  I mean I had the config.xml in both locations:

                  \config\config.xml
                  and
                  \conf\config.xml

                  so I think the USB one triggered first.

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

                    So it probably didn't actually restore the lease data then.

                    We'll look into it

                    https://redmine.pfsense.org/issues/13157

                    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!

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      NRgia @jimp
                      last edited by

                      @jimp said in PHP errors with 2.7.0-DEVELOPMENT-amd64-20220512-1201 snapshot:

                      So it probably didn't actually restore the lease data then.

                      We'll look into it

                      https://redmine.pfsense.org/issues/13157

                      Thanks,
                      I am available to reinstall and test, when the fix reaches a snapshot.

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