• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

23.01 notices.inc PHP error

Scheduled Pinned Locked Moved General pfSense Questions
7 Posts 4 Posters 1.4k Views 4 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.
  • D Offline
    daplumber
    last edited by daplumber Mar 6, 2023, 5:58 PM Mar 6, 2023, 5:57 PM

    I am getting the following crash report on an irregular occasional basis:

    ===
    Crash report begins. Anonymous machine information:

    amd64
    14.0-CURRENT
    FreeBSD 14.0-CURRENT #0 plus-RELENG_23_01-n256037-6e914874a5e: Fri Feb 10 20:30:29 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/obj/amd64/VDZvZksF/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/sources/FreeBS

    Crash report details:

    PHP Errors:
    [02-Mar-2023 22:00:00 CST6CDT] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /etc/inc/config.lib.inc:172
    Stack trace:
    #0 /etc/inc/config.lib.inc(172): fwrite(false, 'a:44:{s:7:"vers...')
    #1 /etc/inc/config.lib.inc(147): generate_config_cache(Array)
    #2 /etc/inc/config.inc(141): parse_config()
    #3 /etc/inc/gwlb.inc(25): require_once('/etc/inc/config...')
    #4 /etc/inc/functions.inc(35): require_once('/etc/inc/gwlb.i...')
    #5 /etc/inc/notices.inc(26): require_once('/etc/inc/functi...')
    #6 /usr/local/arpwatch/sendmail_proxy.php(5): require_once('/etc/inc/notice...')
    #7 {main}
    thrown in /etc/inc/config.lib.inc on line 172
    [02-Mar-2023 22:00:00 CST6CDT] PHP Fatal error: Uncaught ValueError: Path cannot be empty in /etc/inc/notices.inc:101
    Stack trace:
    #0 /etc/inc/notices.inc(101): fopen('', 'w')
    #1 /etc/inc/config.lib.inc(1162): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
    #2 [internal function]: pfSense_clear_globals()
    #3 {main}
    thrown in /etc/inc/notices.inc on line 101

    No FreeBSD crash data found.

    ===

    PHP error log attached, but it doesn't contain anything else useful.

    Any idea what's going on here, and what I can do to fix it?
    My hardware is a Dell Desktop with Intel i5-6500 @ 3.2GHz, 8GB of RAM, a 1TB SSD, GELI ZFS boot/root, Intel X520 and Intel 1GB NICs, two WAN connections to two different ISPs.

    I recently had to turn off the watchdog on the pfBlockerNG DNSbl as it kept crashing too.

    230306_PHP_errors.log.txt

    –--------
    This user has been carbon dated to the 8-bit era...

    1 Reply Last reply Reply Quote 0
    • J Offline
      jimp Rebel Alliance Developer Netgate
      last edited by Mar 6, 2023, 6:26 PM

      Unfortunately errors in that spot are likely from a problem writing to the disk. It could be a filesystem issue, the disk may be failing, the controller might have stopped responding, etc. It's really impossible to know for sure -- all that can be told from that is that the attempts to write to the disk failed in those specific locations.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      D 1 Reply Last reply Mar 9, 2023, 3:36 PM Reply Quote 0
      • D Offline
        daplumber @jimp
        last edited by Mar 9, 2023, 3:36 PM

        @jimp OK, so should I manually fsck the disk (SSD) or what?

        –--------
        This user has been carbon dated to the 8-bit era...

        D 1 Reply Last reply Mar 9, 2023, 4:35 PM Reply Quote 0
        • D Offline
          dem @daplumber
          last edited by Mar 9, 2023, 4:35 PM

          @daplumber You might want to look at the S.M.A.R.T. and ZFS dashboard widgets:

          Disk Screenshot.png

          D 1 Reply Last reply Mar 16, 2023, 10:31 PM Reply Quote 0
          • D Offline
            daplumber @dem
            last edited by Mar 16, 2023, 10:31 PM

            @dem I use both widgets and there was nothing in either.

            So after a bunch of zpool scrub zroot, and having to burn a CURRENT-14 memstick because I forgot to update the boot code after doing a zpool upgrade, and some more scrubs, sigh...

            All seems copacetic once more. ¯\_(ツ)_/¯

            –--------
            This user has been carbon dated to the 8-bit era...

            1 Reply Last reply Reply Quote 0
            • S Offline
              stephenw10 Netgate Administrator
              last edited by Mar 16, 2023, 11:36 PM

              We did re-open the bug for this anyway since a number of people are hitting it:
              https://redmine.pfsense.org/issues/14061

              Steve

              D 1 Reply Last reply Mar 27, 2023, 3:35 PM Reply Quote 1
              • D Offline
                daplumber @stephenw10
                last edited by Mar 27, 2023, 3:35 PM

                @stephenw10 Yeah, it's recurring, still nothing in a Zpool scrub.

                –--------
                This user has been carbon dated to the 8-bit era...

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  [[user:consent.lead]]
                  [[user:consent.not_received]]