Upgrade from 23.09.1 to 24.11 failed
-
Hello, I had a system up and running on pfSense CE v2.7.2 and decided to purchase pfSense+
The upgrade from CE v2.7.2 -> Plus 23.09.1 went flawlessly, all my settings were saved - no problems.
I then attempted to set the Upgrade train to "Current Latest - 24.11" and immediately had problems...
When the system rebooted, it errored-out during bootup with the following output below and informed me it was going to switch to an alternate boot environment. Sure enough, after confirming, it booted back into 23.09.1 and my webGUI notified me there was a crash dump (below).
Is this due to me using Kea DHCP Server on CE v2.7.2? Any fix for this? Thanks
PHP {$errortype}s
PHP ERROR: Type: 1, File: /etc/inc/util.inc, Line: 3961, Message: Uncaught TypeError: array_get_path(): Argument #1 ($arr) must be of type array, string given, called in /usr/local/pfSense/include/www/services_dhcp.inc on line 174 and defined in /etc/inc/util.inc:3961
Stack trace:
#0 /usr/local/pfSense/include/www/services_dhcp.inc(174): array_get_path()
#1 /etc/inc/system.inc(633): kea6_earlydnsreg_mappings()
#2 /etc/inc/system.inc(664): system_hosts_entries()
#3 /etc/rc.bootup(236): system_hosts_generate()
#4 {main}
thrown @ 2024-12-23 05:25:27 -
I saw similar PHP errors when upgrading to 24.11 with my Netgate 1100. The process seemed rough, and the upgrade took a long time. Eventually, it appeared to complete and after restart confirmed 24.11 was the installed version. Not too long after, my network went down and I could not receive DHCP assignments. Now I need to figure out how to restore from brick.. Not having a good day.
-
@inferno480 I don't know, but you can always switch off Kea, upgrade, and try upgrading again, then switch back to Kea. It was/is in "feature preview" after all.
@srobadelic You could always revert...
https://docs.netgate.com/pfsense/en/latest/backup/zfsbe/loader.htmlWhat is "a long time"? On an 1100/2100 I'd allow at least 10 minutes, or more if you left packages installed.
-
@SteveITS so it seemed to be the Kea DHCP Server that was the issue.
I switched it to ISC, performed the upgrade without a hitch...
Then I attempted to switch it back to Kea and the same exact error occurred and it loaded back onto 23.09.1
I re-performed the upgrade to 24.11 and this time left it at ISC for now. Not sure what else to try.
-
kea - imho, starts to be ok when you've installed 24.11. Any versions before, do what the thousands of forum post already told you : stay with ISC.
Btw : You came from 2.7.2. I might be wrong, but if you want to fully exploit the ZFS system (Boot Environments) I would recommend you to install 'from scratch'.
-
@inferno480 you switch to Kea, it reboots, and you end up in an older boot environment? And does a normal reboot succeed?
-
Hmm, something odd there. A reboot should not be required to switch DHCP backends.
-
@stephenw10 I think OP is saying, it boots on its own after the crash. So, odder.
-
sorry, I'll re-cap.
(FYI: This is amd64 / DIY hardware, not a Netgate appliance btw)
-
was initially running on 2.7.2 (with Kea DHCP, and already was using ZFS and boot environments) running fine ever since the fresh install with 2.7.2 CE.
-
decided I wanted to be on 2024.11, so I purchased a TAC Lite license, uninstalled all my packages, entered my registration code, backed up my configuration and upgraded to pfSense+
-
after the upgrade, the system was on pfSense+ 23.09.1 but was functioning fine (no errors or crash dumps) so I switched to the Current train and upgraded to 24.11
-
Upgrade went fine, the system automatically rebooted as part of the normal process. During the boot-up process, it posted the PHP error pertaining to the Kea DHCP settings and (I wish I had a cut'n pasteable or at least screenshot, but I don't) had a prompt stating the current boot environment (default) had failed and that it was going to revert back to the previous (23.09.1) boot environment after a period of time if I didn't press anything. I pressed Enter to acknowledge it and tell it to continue to revert to the previous boot env, but it was going to after a delay if I didn't press anything, I believe.
-
Made my original post where it was suggested to revert to ISC DHCP , so I did that and attempted the 24.11 upgrade again. The 24.11 upgrade went off without a hitch, and everything was functioning fine. I re-installed a couple of my packages [Avahi/pimd], and my configurations for them (even from 2.7.2) were seemingly preserved, which was nice.
-
Then I pushed my luck and thought "I wonder if I could switch this back over to Kea DHCP now..." and while it succeeded through the UI and everything was seemingly working, I decided to try a reboot "just to be sure".
Apparently during the boot-up process the same exact PHP error was encountered, but I did not get to the console in time to verify the same prompt about reverting back to the old boot message was there, but after a while it did in fact boot back to 23.09.1 all on its own without me interacting on the console at all.
At that point my settings were reverted back to ISC DHCP as well, so I re-did the 24.11 upgrade and left it at ISC DHCP for now (everything's working).
-
-
@inferno480 said in Upgrade from 23.09.1 to 24.11 failed:
was initially running on 2.7.2 (with Kea DHCP, and already was using ZFS and boot environments)
That could potentially be an issue. Since BEs are not supported in the GUI in CE I assume you created one at the CLI? It's possible the filesystem layout changes are not compatible.
Though that doesn't really fit the PHP error shown above. Do you have any DHCP6 static mappings?