Crash in filter.inc
-
pfSense was running and the dashboard wasn't reporting any errors, but no client behind my firewall could get to the internet. I rebooted pfSense, and the Crash Reporter came up after the reboot and provided this information:
Crash report begins. Anonymous machine information:
amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #1 RELENG_2_7_0-n255866-686c8d3c1f0: Wed Jun 28 04:21:19 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/obj/amd64/LwYAddCr/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/sources/FreeBSD-src-RELCrash report details:
PHP Errors:
[19-Aug-2023 08:18:32 America/New_York] PHP Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /etc/inc/filter.inc:2764
Stack trace:
#0 /etc/inc/filter.inc(2764): fclose(false)
#1 /etc/inc/filter.inc(355): filter_nat_rules_generate()
#2 /etc/rc.bootup(383): filter_configure_sync()
#3 {main}
thrown in /etc/inc/filter.inc on line 2764 -
That is an odd place for it to throw an error. It suggests it had a problem writing that file out.
Gut feeling says it may be hardware (e.g. disk/ssd) but it could just be the filesystem if it's UFS. Running a filesystem check a few times might help.
If the disk is using ZFS then it's more likely to be hardware.