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

    [Solved] PHP error in Boot Environments

    Scheduled Pinned Locked Moved General pfSense Questions
    11 Posts 2 Posters 1.1k 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.
    • HorstZimmermannH
      HorstZimmermann
      last edited by stephenw10

      hello,
      i have a problem with my Boot Environments....

      pfsense plus 23.01 on ZFS (non Netgate Hardware)

      i deleted an old Boot Environment and i wanted to create a new one, now when i try to get in to/Sytem/Boot Environmets i get the following error

      Crash report begins.  Anonymous machine information:
      
      amd64
      14.0-CURRENT
      FreeBSD 14.0-CURRENT #0 plus-RELENG_23_01-n256037-6e914874a5e: Fri Feb 10 20:30:29 UTC 2023     root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/obj/amd64/VDZvZksF/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/sources/FreeBS
      
      Crash report details:
      
      PHP Errors:
      [13-May-2023 15:21:15 Europe/Berlin] PHP Fatal error:  Uncaught ValueError: array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements in /usr/local/pfSense/include/www/system_be.inc:413
      Stack trace:
      #0 /usr/local/pfSense/include/www/system_be.inc(413): array_combine(Array, Array)
      #1 /usr/local/pfSense/include/www/system_be.inc(448): _zfs_get_properties(Array)
      #2 /usr/local/www/system_be.php(79): be_bootenv_list()
      #3 {main}
        thrown in /usr/local/pfSense/include/www/system_be.inc on line 413
      
      
      
      No FreeBSD crash data found.
      			
      

      how can i fix this error?

      EDIT
      all available patches are installed

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

        Hmm, interesting. Looks the same as https://forum.netgate.com/topic/179988/php-fatal-error-with-boot-environments-help

        Can you still list the BEs at the CLI? bectl list

        Do any have the same name?

        HorstZimmermannH 1 Reply Last reply Reply Quote 0
        • HorstZimmermannH
          HorstZimmermann @stephenw10
          last edited by HorstZimmermann

          @stephenw10

          here the output

          [23.01-RELEASE][admin@pfSense.xxxxxxxxxxx.de]/root: bectl list
          BE                   Active Mountpoint Space Created
          22.01_Base_install   -      -          942M  2023-01-20 19:31
          22.05_Base_install   -      -          224M  2023-01-20 19:46
          22.05_Working        -      -          74.6M 2023-02-17 13:41
          22.05_Working_Config -      -          59.7M 2023-02-18 17:33
          23.01_Working_Config -      -          37.1M 2023-03-03 13:23
          23.01_Working_Latest -      -          824K  2023-05-13 15:08
          default              NRT    /          3.19G 2023-02-18 18:26
          [23.01-RELEASE][admin@pfSense.xxxxxxxxxxx.de]/root:
          
          

          this i deleted first then i tried to recreate with the same name

          23.01_Working_Latest -      -          824K  2023-05-13 15:08
          
          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            So the one you listed there 23.01_Working_Latest - 824K 2023-05-13 15:08 is the new entry you created?
            Hmm, I wonder if it's cached somewhere....

            HorstZimmermannH 1 Reply Last reply Reply Quote 0
            • HorstZimmermannH
              HorstZimmermann @stephenw10
              last edited by

              @stephenw10

              yes this is the latest i created

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

                If you remove it at the CLI can you access the gui again?

                bectl destroy 23.01_Working_Latest
                
                HorstZimmermannH 1 Reply Last reply Reply Quote 1
                • HorstZimmermannH
                  HorstZimmermann @stephenw10
                  last edited by HorstZimmermann

                  @stephenw10 THANK YOU!!!!!

                  you saved my a....

                  everything working now, i can access the gui again and i can add new boot environments

                  do i have to check anything else, or maybe reboot? just to be sure?

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

                    Nope you should be good. That is a bug though, it shouldn't happen. Let me dig into it...

                    HorstZimmermannH 1 Reply Last reply Reply Quote 0
                    • HorstZimmermannH
                      HorstZimmermann @stephenw10
                      last edited by

                      @stephenw10 if you need any logs configs etc..... let me know

                      how do i mark this as solved? i can´t edit the title, it gets flaged as spam if i try 🤔

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

                        I can't replicate that in 23.05 so although it clearly was bug it appears to have been fixed.

                        HorstZimmermannH 1 Reply Last reply Reply Quote 1
                        • HorstZimmermannH
                          HorstZimmermann @stephenw10
                          last edited by

                          @stephenw10 sounds good. Thanks for checking

                          1 Reply Last reply Reply Quote 0
                          • T The Party of Hell No referenced this topic on
                          • GertjanG Gertjan referenced this topic on
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.