OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • After update to 24.1.7Crowdsec will not start with LAPI disabled
« previous next »
  • Print
Pages: [1]

Author Topic: After update to 24.1.7Crowdsec will not start with LAPI disabled  (Read 958 times)

A.R.

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
After update to 24.1.7Crowdsec will not start with LAPI disabled
« on: May 17, 2024, 09:47:45 am »
I run crowdsec in a distributed config and have an issue with crowdsec with LAPI disabled not starting after the update to 24.1.7.

Following can be produced by running
Code: [Select]
sh -x rc.d/crowdsec start
With LAPI enabled:
Code: [Select]
limits -C daemon /usr/sbin/daemon -f -P /var/run/crowdsec_daemon.pid -p /var/run/crowdsec.pid -r -R 10 -t crowdsec -- /usr/local/bin/crowdsec -c /usr/local/etc/crowdsec/config.yamlWith LAPI disabled
Code: [Select]
limits -C daemon /usr/sbin/daemon -no-api -f -P /var/run/crowdsec_daemon.pid -p /var/run/crowdsec.pid -r -R 10 -t crowdsec -- /usr/local/bin/crowdsec -c /usr/local/etc/crowdsec/config.yaml -no-api
daemon: illegal option -- n
usage: daemon [-cfHrS] [-p child_pidfile] [-P supervisor_pidfile]
              [-u user] [-o output_file] [-t title]
              [-l syslog_facility] [-s syslog_priority]
              [-T syslog_tag] [-m output_mask] [-R restart_delay_secs]

Somehow the -no-api parameter also is used for deamon. Looks to be in the construction of _doit in /etc/rc.subr

EDIT: Issue is caused by upstream changes. Tracked here: https://github.com/opnsense/plugins/issues/3985
« Last Edit: May 17, 2024, 12:58:47 pm by A.R. »
Logged

REB00T

  • Newbie
  • *
  • Posts: 35
  • Karma: 1
    • View Profile
Re: After update to 24.1.7Crowdsec will not start with LAPI disabled
« Reply #1 on: May 17, 2024, 11:55:01 pm »
Can confirm. It happens to me as well.
Logged

mmetc

  • Newbie
  • *
  • Posts: 45
  • Karma: 5
    • View Profile
Re: After update to 24.1.7Crowdsec will not start with LAPI disabled
« Reply #2 on: May 18, 2024, 09:42:30 am »
Thanks! Quick fix and PR in

https://github.com/opnsense/plugins/issues/3985#issuecomment-2118451676
Logged

Taunt9930

  • Full Member
  • ***
  • Posts: 126
  • Karma: 3
    • View Profile
Re: After update to 24.1.7Crowdsec will not start with LAPI disabled
« Reply #3 on: May 19, 2024, 01:11:16 pm »
Quote from: mmetc on May 18, 2024, 09:42:30 am
Thanks! Quick fix and PR in

https://github.com/opnsense/plugins/issues/3985#issuecomment-2118451676

If I were to pull the trigger on the upgrade now, would I need to fiddle about with the quick-fix or has the plugin already been updated and all should be good?

Thanks.
Logged

Mr_Cus

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: After update to 24.1.7Crowdsec will not start with LAPI disabled
« Reply #4 on: May 20, 2024, 11:42:31 am »
Can confirm it's currently still broken in -release (I'm here cleaning up after an update gone wild)

Quote from: Taunt9930 on May 19, 2024, 01:11:16 pm
If I were to pull the trigger on the upgrade now, would I need to fiddle about with the quick-fix or has the plugin already been updated and all should be good?

Thanks.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • After update to 24.1.7Crowdsec will not start with LAPI disabled
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2