Crashing after restoring from backup
-
I recently restored our pfSense firewall from a backup and now I'm getting crash reports every time I log in. Services like OpenVPN and FreeRadius authentication aren't working anymore either. Most of the errors in the crash log are "Unable to load" errors pointing to files in this path: /usr/local/lib/php/20131226/
Any ideas what happened? Is it common for a restore from a backup to fail like this when no hardware has changed?
-
What version of pfSense are you running? What version was the backup taken from?
It looks like you have some lib mismatches which might be caused if you're running a version earlier than 2.4.4. In that case restoring a config will cause it to reload any packages that were installed and it will pull in the 2.4.4 (php7) packages into whatever version you're running.
If that is the case you should upgrade as soon as possible
Steve
-
@stephenw10 I've been running 2.4.3 all along, hadn't upgraded to 2.4.4 yet. The weird thing is the status summary page shows 2.4.3 but says I'm running a later version than the official release?
I wonder if may be I did upgrade and then forgot...
-
Looks like I must have upgraded and forgot to check before the restore. I did a fresh install of 2.4.4 then restored the backup and all the errors went away. It broke my FreeRADIUS authentication, but that's another issue...
-
Yeah, if you were on 2.4.3 or earlier and tried to install a package, which is what happens when you restore, it will have pulled in a load of 2.4.4 stuff which can break things in all sorts of ways.
The clean install and restore should fix all that as you found.Steve
-
@stephenw10 it's too bad the backup XML doesn't have the version in it somewhere. I searched all through it (it's unencrypted and kept in a highly secure internal file store) and found no reference to the pfSense version.
-
It does but only the config version at the start of the file. Fortunately there is a handy reference
https://docs.netgate.com/pfsense/en/latest/releases/versions-of-pfsense-and-freebsd.html
Steve