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

    php error with suricata after updating to 2.8

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    4 Posts 3 Posters 233 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.
    • J
      jc1976
      last edited by

      Hello all,

      I followed the recommendation of uninstalling all packages before updating from 2.7.2->2.8.

      pfblocker seems to be fine but suricata has been giving me issues.

      Today, I tried to do a simple reinstall of suricata and while it claims to have been installed successfully, the 'suricata' link under services isn't there, it's not showing up under 'service status' on my dashboard, and i keep getting php crashes.

      the php error is as follows:

      "PHP {$errortype}s

      PHP ERROR: Type: 1, File: /usr/local/pkg/suricata/suricata.inc, Line: 2469, Message: Allowed memory size of 536870912 bytes exhausted (tried to allocate 12288 bytes) @ 2025-06-29 10:52:44" 
      

      I'd upload the log but when i tried i was told it was the wrong file format, which being it's a simple .txt file shouldn't be a problem.

      thanks!

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        Part of the install/update process for the package rebuilds the enabled rules. It appears you do not have enough free PHP memory for that to complete. Because the rules rebuild is crashing, the install never completes because rebuilding rules is part of the install when an existing configuration is detected. Not completing the install results in the menu entry under SERVICES not being created (as that is the very last step of the installation process).

        Try increasing the amount of PHP memory allocated by pfSense under the SYSTEM menu. Then remove the Suricata package and try the install again.

        fireodoF 1 Reply Last reply Reply Quote 1
        • fireodoF
          fireodo @bmeeks
          last edited by

          @bmeeks said in php error with suricata after updating to 2.8:

          Part of the install/update process for the package rebuilds the enabled rules.

          Maybe to much rules too?

          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
          pfsense 2.8.0 CE
          Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

          bmeeksB 1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks @fireodo
            last edited by

            @fireodo said in php error with suricata after updating to 2.8:

            @bmeeks said in php error with suricata after updating to 2.8:

            Part of the install/update process for the package rebuilds the enabled rules.

            Maybe to much rules too?

            A possibility for sure, but the rules rebuild was apparently working under the previous pfSense version if I am understanding the OP correctly.

            He also has pfBlockerNG installed and it will use a lot of PHP memory for some tasks.

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