[Solved] PHP error in Boot Environments
-
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 errorCrash 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 -
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?
-
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
-
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.... -
yes this is the latest i created
-
If you remove it at the CLI can you access the gui again?
bectl destroy 23.01_Working_Latest
-
@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?
-
Nope you should be good. That is a bug though, it shouldn't happen. Let me dig into it...
-
@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
-
I can't replicate that in 23.05 so although it clearly was bug it appears to have been fixed.
-
@stephenw10 sounds good. Thanks for checking
-
-