Missing files after update to 2.5.2
-
Hello,
I've updated pfSense 2.5.1 to 2.5.2 and facing now some errors at the web gui...
- If I open System -> Advanced I get the following error:
PHP ERROR: Type: 64, File: /usr/local/www/system_advanced_admin.php, Line: 40, Message: require_once(): Failed opening required 'system_advanced_admin.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/')
- If I open Diagnostics -> Bachup & Retore I get the following message:
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/')
Probably there are more pages in the WebGUI that throws similar errors.
My approach now would be to backup the configuration, reinstall pfSense and restore the configuration.
However, this is not possible due to error 2...Is there any way to restore the files or at least backup the configuration?
Many thanks in advance.
-
You can SSH into your pfSense and copy the config file, location is
/conf/config.xml
-Rico
-
Team
I'm seeing a similar problem with php calls to .inc files (failing to call /vendor/autoconf.php after forced remote upgrade of packages via CLI.The include_path in the machine that wasn't upgraded has an extra variable in the include_path, which I notice is also missing in juppin's error message.
On the machine that is working, I'm seeing an additional variable in the path.
/usr/local/pfSense/includenot-working
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/'working
include_path='.:/etc/inc:/usr/local/pfSense/include:/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/'This difference also seen in the /etc/rc.php_setup_initial file as well. Whilst this looks like a simple bug that been introduced - it probably isn't - simply putting the missing variable didn't seem to fix the problem (for me it's the disks.inc widget failing on the dashboard - crashing that page).
JP.
-
discs.inc
is a new file on 21.02 and 2.6.0 snapshots, it is not on 2.5.2.Sounds to me like your system pulled in some parts of snapshots, likely from selecting the snapshot update branch and then making a change to packages without upgrading the firmware first.
There isn't likely a bug here, but something broken locally on your system.