PHP error after rebooting with filesystem check
-
This has happened before after rebooting with a filesystem check. I recovered by reinstalling, however I don’t want to configure significant changes since last saved config.
#2 /etc/inc/config.gui. inc (53): parse_config() #3 /etc/inc/auth. inc(34): require_once(' /etc/inc/config... #4 / etc/inc/openvpn, inc(36): require_once('/etc/inc/auth.1 #5 /etc/inc/filter. inc(30): require_once(' /etc/inc/openvp. #5 / etc/inc/ipsec. inc(25): require_once('/etc/inc/filter.. #7 /etc/inc/gwlb. inc (27): require_once(' /etc/1nc/1psec.... #8 /etc/inc/functions. inc (35): require_once(' /etc/inc/gulb.1.. #9 /etc/inc/notices. inc (26): require_once('/etc/inc/functi... #10 /etc/inc/config. inc(37): require_once('/etc/inc/notice... #11 /etc/rc. banner (27): require_once('/etc/inc/config...') #12 (main) thrown Fatal error: Uncaught ValueError: Path cannot be empty in /etc/inc/notices. inc: 135 Stack trace: #0 /etc/inc/notices. inc(135): fopen('', 'w') #1 /etc/inc/config, 11b. inc(1154): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors' ) #2 linternal function]: pfSense_clear_globals() #3 (main) thrown in /etc/inc/notices.inc on line 135
Hopefully this is accurate since I took a photo with my phone and used OCR.
I’ve booted in single user and ran
fsck -fy /
five times and rebooted but this error persists. If I try again in single user it just “repairs” and says it’s clean but issue repeats.Also tried “removing” (by renaming) notices.inc but I get another error with a different file trying to access that file?
-
The error there is from trying to display a notice but it indicates some earlier PHP error that generated the notice. Do you know what that was.
You can get the config off the firewall from single user mode. You can recover it when reinstalling if you need to.
-
@stephenw10 I am not certain what the error was. Where could I look? Should I search the notices?
I can pull the config off onto a USB from single user? Where would the config location be? Also, how would I use it while reinstalling?
-
The config is in /cf/conf/config.xml. You can mount a flash drive and copy it out if you need to.
You can put the config onto the install drive to have it auto-added to a new install:
https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html#restore-configuration-from-usb-during-installYou can also choose to recover the existing config when you boot the installer:
https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html#recover-config-xml-from-existing-installationSteve
-
@stephenw10 I managed to pull the config. For some reason it was empty? Perhaps when I tried to reload last known configuration? Luckily I had plenty of backups, so thanks for your help.