Unable to Backup and Restore after upgrade to 2.5.2
-
I'm getting following error after the upgrade from 2.5.1 to 2.5.2, when I try to click on Backup and Restore under Diagnostic
PHP ERROR: Type: 64, File: /usr/local/www/diag_backup.php, Line: 43, Message: require_once(): Failed opening required 'backup.inc' (include_path='.:/etc/inc:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/')
-
That file should exist as
/usr/local/pfSense/include/www/backup.inc
and it does on all 2.5.2 installations I have here, both fresh installations and upgrades.It's possible the upgrade did not fully complete on your system if that is missing. or you may have a more subtle issue such as a filesystem problem.
The fastest and easiest way to ensure you have a fully working and consistent system will be to reinstall and restore the configuration from backup.
-
@jimp
Hi there,
Unfortunately, I cant get into the backup and restore page, that is where I'm getting that error. So what would be the best way to re apply the upgrade to get that file /usr/local/pfSense/include/www/backup.inc? (ie how do I reinstall the system? ) -
You can connect as
root
with an scp client likescp
orFileZilla
and download/conf/config.xml
or even download it via Diagnostics > Command Prompt.If you have enabled AutoConfigBackup you can download it from there as well, from the Restore tab.
Also during the installation process there is an option to "Recover config.xml" which will read it off the existing installation. I'd keep an off-firewall copy of the config just in case, but that is easy and fast to use as well.
-
What would be the best way to reinstall. Boot up with the USB, that is how I install the pfsense before?
-
If you used the memstick installer before, use the same method this time.
-
Hello,
I ran into the same problem while trying to ran a backup.
But on my pfsense (AMD G-T40E Processor) I do not even find a directory /usr/local/pfsense. Also I can not find "backup.inc".
The WebGUI tells me to update to 2.6.0. Could this be a solution to restore the missing file / directory or will this lead to a total crash?Regards,
Sebastian -
@alpaca EDIT: Sorry, but I had cleared my packages - and had deleted Backup/Restore pkg. How embarrassing!
Reinstalled pkg, updated and everything is OK. Shame on me ...Regards,
Sebastian