Launching the init system...done.Initializing...Fatal error: Uncaught Error: Call to undefined function OPNsense\Base\FieldTypes\gettext() in /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/OptionField.php:51Stack trace:#0 /usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php(221): OPNsense\Base\FieldTypes\OptionField->setOptionValues(Array)...
namespace OPNsense\Base\FieldTypes;/** * Class OptionField * @package OPNsense\Base\FieldTypes */class OptionField extends BaseListField{ /** * setter for option values * @param $data */ public function setOptionValues($data) { if (is_array($data)) { $this->internalOptionList = array(); // copy options to internal structure, make sure we don't copy in array structures foreach ($data as $key => $value) { if (!is_array($value)) { if ($key === "__empty__") { $this->internalOptionList[""] = gettext($value); } else { $this->internalOptionList[$key] = gettext($value); } } } } }}
The problem with UFS is that sometimes you install all packages and a new kernel but after reboot the data is suddenly gone
In your case there is the PHP gettext package missing after upgrade.It might also be the disk for one reason or another.
It's late here and I can't really come up with a third option. Once I have this firewall up and running I intend to upgrade its mate to 21.1.8. Is it reasonable to hope the upgrade process will be more successful on that one?
if you can manage to manually set up networking (dhclient on WAN interface) you can use the "opnsense-bootstrap" utility instead to get back to 21.1.8 quicker.
fetch https://raw.githubusercontent.com/opnsense/update/master/bootstrap/opnsense-bootstrap.shsh ./opnsense-bootstrap.sh
ENTER (to get a shell)ifconfig em0 inet x.y.z.171 netmask 255.255.255.192route add default x.y.z.129echo "nameserver 1.1.1.1" > /etc/resolv.confsh /usr/local/sbin/opnsense-bootstrap
rm /usr/local/bin/phpsh /usr/local/sbin/opnsense-bootstrap
route add default x.y.z.129echo "nameserver 1.1.1.1" > /etc/resolv.confsh /usr/local/sbin/opnsense-bootstrap
***GOT REQUEST TO AUDIT HEALTH***Currently running OPNsense 21.1.8_1 (amd64/OpenSSL) at Fri Jul 9 11:56:16 MDT 2021>>> Check installed kernel versionVersion 21.1.8 is correct.>>> Check for missing or altered kernel filesNo problems detected.>>> Check installed base versionVersion 21.1.8 is correct.>>> Check for missing or altered base filesNo problems detected.>>> Check for missing package dependenciesChecking all packages: .......... done>>> Check for missing or altered package filesChecking all packages: .......... done>>> Check for core packages consistencyCore package "opnsense" has 66 dependencies to check.Checking packages: ..................................................pkg-1.16.3 repository mismatch: unknown-repositoryChecking packages: .................. done***DONE***