Can't uninstall/reinstall/upgrade snort 2.9.7.2 pkg v3.2.4
-
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
-
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
-
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 -
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
-
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
-
It is strange the file disappeared. Glad you got the problem sorted out.
Bill