Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    PHP Errors thrown in /etc/inc/rrd.inc on line 1025

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 205 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chpalmerC Offline
      chpalmer
      last edited by

      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/pfSe

      Crash 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

      Triggering snowflakes one by one..
      Primary- Intel(R) Pentium(R) CPU G4400 @ 3.30GHz on an M470 WG box. pfSense CE 2.8.1
      Lab Unit- Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box. pfSense+

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG Online
        Gertjan @chpalmer
        last edited by Gertjan

        @chpalmer

        The rrd subsystem wanted to create a file, env 12 Kbytes, a shells script.

        5f21c7ab-a608-4c40-988c-7076f00b43b8-image.png

        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 :

        69b5738e-6285-41fe-892a-5b4f69859286-image.png

        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.

        No "help me" PM's please. Use the forum, the community will thank you.

        chpalmerC 1 Reply Last reply Reply Quote 1
        • chpalmerC Offline
          chpalmer @Gertjan
          last edited by

          @Gertjan

          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.

          Triggering snowflakes one by one..
          Primary- Intel(R) Pentium(R) CPU G4400 @ 3.30GHz on an M470 WG box. pfSense CE 2.8.1
          Lab Unit- Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box. pfSense+

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy