PHP Errors thrown in /etc/inc/rrd.inc on line 1025
-
This is showing up this morning.. Only change is I added Sudo package..
Crash report begins. Anonymous machine information:
amd64
16.0-CURRENT
FreeBSD 16.0-CURRENT #36 plus-RELENG_26_03-n256531-4923e82e59d1: Fri Mar 20 18:22:49 UTC 2026 root@pfsense-build-release-amd64-1.eng.atx.netgate.com:/var/jenkins/workspace/pfSense-Plus-snapshots-26_03-main/obj/amd64/TVcqnR7U/var/jenkins/workspace/pfSeCrash report details:
PHP Errors:
[11-May-2026 12:48:11 America/Vancouver] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, false given in /etc/inc/rrd.inc:1025
Stack trace:
#0 /etc/inc/rrd.inc(1025): fwrite()
#1 /etc/rc.restart_webgui(44): enable_rrd_graphing()
#2 {main}
thrown in /etc/inc/rrd.inc on line 1025 -
The rrd subsystem wanted to create a file, env 12 Kbytes, a shells script.

This file is mostly identical for all of us, although some hardware / software differences can make this file a little bit smaller, or bigger.
If fwrite() = "file write" returns a 'false', then these are the classic reasons :
If the file could be opened for writing, and then fwrite failed : not enough space on device ?and because there was no error checking :

If the fopen() failed - opening /var/db/rrd/updaterrd.sh for 'writing' and it failed, subsequently fwrite will use the not correctly initialized file descriptor, $fd.
fopen can find if the file folder/path "/var/db/rrd/" doesn't exist (yjis would be alarming), the file already exists, but can't be overwritten (not applicable here, root can overwrite root**) or .... no space on device.** You've mentioned 'sudo'.
This makes me think : are you doing 'root' (admin) only things with a non root user ?
I know, vague question but I guess you get the point. -
This makes me think : are you doing 'root' (admin) only things with a non root user ?
Yep.. kinda.. trying to go straight to the menu when I ssh in.. without having to type a command I never remember..
I'll have to retrace my steps and see if I can cause it again.. then never do that again lol.
Privacy Policy · Cookie Policy