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

    Suricata 2.0.4 fails to install

    Scheduled Pinned Locked Moved pfSense Packages
    13 Posts 3 Posters 2.6k 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.
    • bmeeksB
      bmeeks
      last edited by

      @BearOne:

      Hi,
      I tried to install suricata today (fresh installation, pfSense 2.15 AMD64, suricata 2.0.4 pkg v2.1.1, but no luck.

      Installation hangs at "Executing custom_php_install_command()…"
      Deinstallation troublesome, too. Hangs at "Deinstall commands...". Trying 2 or 3 times the package gets deinstalled.

      Other installed packages before: 1 (Open-VM-Tools, pfSense running on a ESXi-Host)

      Any hints?

      Oh, and merry christmas :-)

      Can you post the system log messages from the period during the attempted package install?

      Bill

      1 Reply Last reply Reply Quote 0
      • B
        BearOne
        last edited by

        Dec 26 19:33:55 php: /pkg_mgr_install.php: Beginning package installation for suricata .
        Dec 26 19:33:56 check_reload_status: Syncing firewall
        Dec 26 19:35:25 php: /pkg_mgr_install.php: [Suricata] Installing free GeoIP country database files…
        Dec 26 19:35:25 php: /pkg_mgr_install.php: [Suricata] Updating the GeoIP country database files…
        Dec 26 19:35:27 php: /pkg_mgr_install.php: [Suricata] GeoIP database update finished.
        Dec 26 19:35:28 check_reload_status: Syncing firewall

        Installation window shows:
        Loading package instructions…
        Custom commands...
        Executing custom_php_install_command()...

        That's all.

        Installation some days ago with previous version worked like a charm.

        A program worth using is a program worth buying!

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

          @BearOne:

          Dec 26 19:33:55 php: /pkg_mgr_install.php: Beginning package installation for suricata .
          Dec 26 19:33:56 check_reload_status: Syncing firewall
          Dec 26 19:35:25 php: /pkg_mgr_install.php: [Suricata] Installing free GeoIP country database files…
          Dec 26 19:35:25 php: /pkg_mgr_install.php: [Suricata] Updating the GeoIP country database files…
          Dec 26 19:35:27 php: /pkg_mgr_install.php: [Suricata] GeoIP database update finished.
          Dec 26 19:35:28 check_reload_status: Syncing firewall

          Installation window shows:
          Loading package instructions…
          Custom commands...
          Executing custom_php_install_command()...

          That's all.

          Installation some days ago with previous version worked like a charm.

          Have you tried removing the package by clicking the X icon to completely delete the package?  If not, try that and then install it again.

          Another user had a similar issue I believe, but I was never able to reproduce it in my test virtual machines.

          Bill

          1 Reply Last reply Reply Quote 0
          • B
            BearOne
            last edited by

            Hi again,

            thx for the suggestion, but I tried all 3 (deinstall,reinstall,reinstall gui c.) several times, and made complete new VMs also. Did not work out so far.

            Strange.

            A program worth using is a program worth buying!

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

              @BearOne:

              Hi again,

              thx for the suggestion, but I tried all 3 (deinstall,reinstall,reinstall gui c.) several times, and made complete new VMs also. Did not work out so far.

              Strange.

              Open a console session on the firewall and try this command after attempting to install the package again:

              
              php /usr/local/pkg/suricata/suricata_post_install.php
              
              

              Post any console screen output messages that look suspicious, and also post the system log output from the same time period.

              Bill

              1 Reply Last reply Reply Quote 0
              • P
                pihl
                last edited by

                Have the same issue, here is the output

                php /usr/local/pkg/suricata/suricata_post_install.php
                Content-type: text/html

                Fatal error: Cannot use string offset as an array in /usr/local/pkg/suricata/suricata_post_install.php on line 123

                1 Reply Last reply Reply Quote 0
                • B
                  BearOne
                  last edited by

                  Yep, that's my output, too. Tried on a different machine today, same result.

                  A program worth using is a program worth buying!

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

                    @pihl:

                    Have the same issue, here is the output

                    php /usr/local/pkg/suricata/suricata_post_install.php
                    Content-type: text/html

                    Fatal error: Cannot use string offset as an array in /usr/local/pkg/suricata/suricata_post_install.php on line 123

                    Ah-ha ..  ;D!  That's the bug report I needed.  Let me examine the offending line and see what's up.

                    Edit:  I see the problem.  I will submit the fix for review and approval by the pfSense Team in the next couple of days.

                    1 Reply Last reply Reply Quote 0
                    • B
                      BearOne
                      last edited by

                      Great! Thank you!

                      A program worth using is a program worth buying!

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

                        The Pull Request containing the fix has been posted for the pfSense Developers to review and merge.  Here is a link for anyone wishing to follow the progress:  https://github.com/pfsense/pfsense-packages/pull/761

                        Bill

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

                          The "fails to install bug" in the Suricata package should now be fixed with the latest update of the package to Suricata 2.0.4 pkg v2.1.2.

                          Bill

                          1 Reply Last reply Reply Quote 0
                          • B
                            BearOne
                            last edited by

                            Confirmed, everything runnin' now.

                            Thanks again for the fast response and fix!

                            A program worth using is a program worth buying!

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