crowdsecurity / pfSense-pkg-crowdsec

52 stars 2 forks source link

Installing latest test version failing on 24.08 #96

Open yuryk1 opened 2 days ago

yuryk1 commented 2 days ago

Installation getting stuck on pfSense-pkg-crowdsec install. Tried script installation and manual - same issue.

Installing pfSense-pkg-crowdsec-0.1.4...
Newer FreeBSD version for package pfSense-pkg-crowdsec:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1500023
- running kernel: 1500019
Ignore the mismatch and continue? [y/N]: y
package pfSense-pkg-crowdsec is already installed, forced install
Extracting pfSense-pkg-crowdsec-0.1.4: 100%
Saving updated package information...
overwrite!
Loading package configuration... done.
Configuring package components...
Loading package instructions...
Custom commands...
Executing custom_php_install_command()...done.
Executing custom_php_resync_config_command()..
yuryk1 commented 2 days ago

script works fine with release version (no version tag)

mmetc commented 2 days ago

thanks for testing!

Two questions

To better reproduce the issue, it would be great if you could run "cscli support dump" and mail the resulting file to support@crowdsec.net, so that I can have a look at the logs

mmetc commented 2 days ago

There was an issue in some cases with 1.6.2 when it came to stopping the service. I though the script would take care of that.

You can try to run the installer (with --release v1.0.4-1.6.3_1) again after manually terminating the process and its manager

# kill -9 `ps xw | grep crowdsec | grep -v grep | awk '{print $1'}`
yuryk1 commented 2 days ago

Thanks for a quick reply! killing the process prior to installation worked:

service crowdsec enable

crowdsec enabled in /etc/rc.conf

service crowdsec start


Installing pfSense-pkg-crowdsec-0.1.4.pkg Saving updated package information... overwrite! Loading package configuration... done. Configuring package components... Loading package instructions... Custom commands... Executing custom_php_install_command()...done. Executing custom_php_resync_config_command()...done. Menu items... done. Services... done. Writing configuration... done.

--------------

Installation complete. You can configure and activate CrowdSec on you pfSense admin page (Package / Services: CrowdSec)