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

    PID Error on starting INline IPS latest Suricata update

    Scheduled Pinned Locked Moved IDS/IPS
    7 Posts 3 Posters 1.1k 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.
    • Cool_CoronaC
      Cool_Corona
      last edited by

      @bmeeks

      26/8/2021 -- 19:58:03 - <Notice> -- This is Suricata version 5.0.6 RELEASE running in SYSTEM mode
      26/8/2021 -- 19:58:03 - <Info> -- CPUs/cores online: 8
      26/8/2021 -- 19:58:03 - <Info> -- HTTP memcap: 67108864
      26/8/2021 -- 19:58:03 - <Error> -- [ERRCODE: SC_ERR_INITIALIZATION(45)] - pid file '/var/run/suricata_vmx046827.pid' exists but appears stale. Make sure Suricata is not running and then remove /var/run/suricata_vmx046827.pid. Aborting!

      This is the error in the logs. Removing the PID file via SCP makes Suricata start.

      Cool_CoronaC S 2 Replies Last reply Reply Quote 0
      • Cool_CoronaC
        Cool_Corona @Cool_Corona
        last edited by

        And no traffic graphs are working after the startup when deleting the PID files.

        b94471c8-2a64-47ec-9383-6d87985d9b3d-billede.png

        bmeeksB 1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire @Cool_Corona
          last edited by

          @cool_corona The .pid being left over is generally because Suricata/Snort crashed and didn't clean up after itself. Did it crash some time before that?

          Per other posts by the maintainer, inline mode essentially breaks the traffic graphs.

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

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

            @cool_corona said in PID Error on starting INline IPS latest Suricata update:

            And no traffic graphs are working after the startup when deleting the PID files.

            b94471c8-2a64-47ec-9383-6d87985d9b3d-billede.png

            I said in another thread you posted about this issue, that it's a known problem with iflib in FreeBSD. It has nothing to do with Suricata. This has been brought to the attention of the Netgate team. There is a fix that was merged into upstream FreeBSD back on August 18th. Hopefully in the near future, when a FreeBSD update is pulled in for the 2.6 DEVEL snapshot branch, this fix gets pulled in with it.

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

              Look in the pfSense system log and see what is getting logged from Suricata. As I said in my reply in the other thread @SteveITS linked, the stale PID file is a symptom of another problem. It is not the root cause of your problem. Something is crashing Suricata, and it is unable to clean up behind itself, thus leaving the PID file in the /var/run directory.

              Look for any out-of-memory or out-of-swap space errors in the system log.

              Cool_CoronaC 1 Reply Last reply Reply Quote 0
              • Cool_CoronaC
                Cool_Corona @bmeeks
                last edited by

                @bmeeks Hi Bill

                Neither is there in the system logs. No crashes related to Suricata.

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

                  @cool_corona said in PID Error on starting INline IPS latest Suricata update:

                  @bmeeks Hi Bill

                  Neither is there in the system logs. No crashes related to Suricata.

                  The only possible way a PID file for a Suricata instance can exist in /var/run is if a running Suricata process created it. The only way it can exist when attempting to start that same Suricata instance is if the previous running instance failed to delete it at shutdown due to a crash.

                  The Suricata binary itself creates and deletes that file as part of its startup and orderly shutdown process. So the only way for the file to persist, if Suricata is not running on that interface, is for the Suricata process that originally created it to have crashed. That crash should show in the pfSense system log unless your log maybe got rotated out.

                  If this was a one-time occurrence, then don't sweat it.

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