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

    PHP ERROR: Type: 1, File: /usr/local/pkg/pfblockerng/pfblockerng.inc, Line: 8927

    Scheduled Pinned Locked Moved pfBlockerNG
    3 Posts 2 Posters 667 Views
    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.
    • A
      aciampoli
      last edited by aciampoli

      Keep getting these errors in pfblocker

      Crash report begins. Anonymous machine information:

      amd64
      14.0-CURRENT
      FreeBSD 14.0-CURRENT amd64 1400094 #1 RELENG_2_7_2-n255948-8d2b56da39c: Wed Dec 6 20:45:47 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/obj/amd64/StdASW5b/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/sources/F

      Crash report details:

      PHP Errors:
      [01-Jan-2024 11:00:04 America/New_York] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/pkg/pfblockerng/pfblockerng.inc:8927
      Stack trace:
      #0 /usr/local/pkg/pfblockerng/pfblockerng.inc(8927): fwrite(false, 'local-data: "00...')
      #1 /usr/local/www/pfblockerng/pfblockerng.php(625): sync_package_pfblockerng('cron')
      #2 /usr/local/www/pfblockerng/pfblockerng.php(155): pfblockerng_sync_cron()
      #3 {main}
      thrown in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 8927
      [01-Jan-2024 12:00:10 America/New_York] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/pkg/pfblockerng/pfblockerng.inc:8927
      Stack trace:
      #0 /usr/local/pkg/pfblockerng/pfblockerng.inc(8927): fwrite(false, 'local-data: "00...')
      #1 /usr/local/www/pfblockerng/pfblockerng.php(625): sync_package_pfblockerng('cron')
      #2 /usr/local/www/pfblockerng/pfblockerng.php(155): pfblockerng_sync_cron()
      #3 {main}
      thrown in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 8927

      No FreeBSD crash data found
      Any ideas what I can do to fix this?

      1 Reply Last reply Reply Quote 0
      • J
        jrey
        last edited by

        What version of the pfBlockerNG package are you running?

        Was this an upgrade or fresh install?

        Do you see any errors in either the pfblockerng.log or error.log
        Filewall -> pfBlockerNG -> Logs

        A 1 Reply Last reply Reply Quote 0
        • A
          aciampoli @jrey
          last edited by

          @jrey thank you for the reply.

          It think I may have fixed the issue, I am using a ram disk and it was completely full. I have fixed this by encreasing the size and so far no issues.

          Thank you

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.