Upgrading from 24.7.12.4 to 25.1 fails on APU4D4

Started by angryviking, February 25, 2025, 09:38:32 PM

Previous topic - Next topic
Hello guys!

I have the exact same problem as the gentleman in https://forum.opnsense.org/index.php?topic=45505 when upgrading my firewall.

During boot after upgrade it gives the following message and does not complete.

>>> Invoking early script 'upgrade'
>>> Invoking early script 'configd'
Starting configd.
>>> Invoking early script 'templates'
Generating configuration: OK
>>> Invoking early script 'backup'
>>> Invoking backup script 'captiveportal'
>>> Invoking backup script 'dhcpleases'
>>> Invoking backup script 'duid'
>>> Invoking backup script 'netflow'
>>> Invoking backup script 'rrd'
>>> Invoking early script 'carp'
CARP event system: Error (255)
Launching the init system...done.
Initializing...
Fatal error: Uncaught Error: Call to undefined function OPNsense\Core\simplexml_load_string() in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php:389
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(431): OPNsense\Core\Config->loadFromStream(Resource id #18)
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php(329): OPNsense\Core\Config->load()
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Singleton.php(51): OPNsense\Core\Config->init()
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Singleton.php(72): OPNsense\Core\Singleton->__construct()
#4 /usr/local/etc/inc/config.inc(114): OPNsense\Core\Singleton::getInstance()
#5 /usr/local/etc/inc/config.inc(369): parse_config()
#6 /usr/local/etc/rc.bootup(50): require_once('/usr/local/etc/...')
#7 {main}
  thrown in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Config.php on line 389
Enter full pathname of shell or RETURN for /bin/sh:

I have been able to rollback using a ZFS snapshot I randomly created. Would be really nice feature if all upgrades created a snapshot automatically by the way :)

Have tried this upgrade 3 times now and still get the same result. All health checks looks good and everything is working perfectly.

Any idea how to upgrade without reinstalling 25.1 and reimporting the config?

I've upgraded APU4D4 without any issue.

Can you post the healthcheck results before attempting the upgrade ?