• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.
  • H
    HorstZimmermann
    last edited by stephenw10 May 13, 2023, 3:15 PM May 13, 2023, 1:45 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by May 13, 2023, 2:13 PM

      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?

      H 1 Reply Last reply May 13, 2023, 2:17 PM Reply Quote 0
      • H
        HorstZimmermann @stephenw10
        last edited by HorstZimmermann May 13, 2023, 2:18 PM May 13, 2023, 2:17 PM

        @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
        • S
          stephenw10 Netgate Administrator
          last edited by May 13, 2023, 2:31 PM

          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....

          H 1 Reply Last reply May 13, 2023, 2:31 PM Reply Quote 0
          • H
            HorstZimmermann @stephenw10
            last edited by May 13, 2023, 2:31 PM

            @stephenw10

            yes this is the latest i created

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by May 13, 2023, 2:33 PM

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

              bectl destroy 23.01_Working_Latest
              
              H 1 Reply Last reply May 13, 2023, 2:36 PM Reply Quote 1
              • H
                HorstZimmermann @stephenw10
                last edited by HorstZimmermann May 13, 2023, 2:44 PM May 13, 2023, 2:36 PM

                @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
                • S
                  stephenw10 Netgate Administrator
                  last edited by May 13, 2023, 2:47 PM

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

                  H 1 Reply Last reply May 13, 2023, 2:50 PM Reply Quote 0
                  • H
                    HorstZimmermann @stephenw10
                    last edited by May 13, 2023, 2:50 PM

                    @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
                    • S
                      stephenw10 Netgate Administrator
                      last edited by May 14, 2023, 12:00 PM

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

                      H 1 Reply Last reply May 14, 2023, 12:06 PM Reply Quote 1
                      • H
                        HorstZimmermann @stephenw10
                        last edited by May 14, 2023, 12:06 PM

                        @stephenw10 sounds good. Thanks for checking

                        1 Reply Last reply Reply Quote 0
                        • T The Party of Hell No referenced this topic on Apr 8, 2024, 10:08 PM
                        • G Gertjan referenced this topic on Jul 15, 2024, 4:33 PM
                        11 out of 11
                        • First post
                          11/11
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          This community forum collects and processes your personal information.
                          consent.not_received