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

    Can't uninstall/reinstall/upgrade snort 2.9.7.2 pkg v3.2.4

    Scheduled Pinned Locked Moved IDS/IPS
    6 Posts 2 Posters 2.0k 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.
    • R
      ryan408
      last edited by

      I have  a stuck installation of snort.  I have tried to uninstall/reinstall/upgrade it but I always get the error:

      Warning: require(/usr/local/pkg/snort/snort_defs.inc): failed to open stream: No such file or directory in /usr/local/pkg/snort/snort.inc on line 40 Fatal error: require(): Failed opening required '/usr/local/pkg/snort/snort_defs.inc' (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /usr/local/pkg/snort/snort.inc on line 40

      The web GUI stops at this point and snort is not removed or upgraded.

      Has anyone run into this before?  I can't figure out how to even uninstall without raising this error.

      Thank you for any pointers.

      Ryan

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

        First question is what kind of system are we talking about:  Nano install or full install with a conventional disk?

        Look in the path /usr/local/pkg and see if a snort directory exists.  You can use the Diagnostics…Edit File command to browse the file system.

        If that directory is missing, then Snort is actually removed and your config.xml file has leftover information in it.  Post back the kind of system and whether or not the directory referenced above exists.  Depending on those results, there is a way to manually edit the config.xml file so as to remove the Snort package information.

        Bill

        1 Reply Last reply Reply Quote 0
        • R
          ryan408
          last edited by

          Thanks for the reply.  This is a full install on a system with a conventional disk.

          I just checked the /usr/local/pkg directory and there is indeed a snort directory with files in it.

          ..
          snort.inc 151.52 KiB
          snort_check_cron_misc.inc 10.10 KiB
          snort_conf_template.inc 2.59 KiB
          snort_migrate_config.php 23.35 KiB
          snort_post_install.php    12.34 KiB

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

            How old is your current Snort package?  Odd that the file is missing.

            Here is a link to the missing file:

            https://packages.pfsense.org/packages/config/snort/snort_defs.inc

            Download it and copy it to /usr/local/pkg/snort on your box.

            See if the uninstall will proceed then.

            Bill

            1 Reply Last reply Reply Quote 0
            • R
              ryan408
              last edited by

              Thank you.  That did the trick.  I uploaded the file then reinstalled and it went smoothly this time.  Latest version is now installed.

              I don't know where that defs file got lost along the way.

              I appreciate you taking the time to help me sort this out.  Thanks again.

              Ryan

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

                It is strange the file disappeared.  Glad you got the problem sorted out.

                Bill

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