-
Notifications
You must be signed in to change notification settings - Fork 521
Open
Labels
Description
What happened?
During apt upgrade
to update crowdsec
to 1.6.9 over 1.6.8 on Debian Bookworm, the postinst
script threw an error from ss
due to incorrect parameters.
What did you expect to happen?
No errors.
How can we reproduce it (as minimally and precisely as possible)?
Due to having the following section in /etc/crowdsec/config.yaml
api:
server:
enable: false
The code here doesn't check that cscli config show --key "Config.API.Server.ListenURI"
returned non-empty valid URI, causing the following ss -nlt "sport = ${PORT}
to throw an error due to an empty value in ${PORT}
variable.
Anything else we need to know?
No response
Crowdsec version
$ cscli version
version: v1.6.9-debian-pragmatic-amd64-40b8cfe6
Codename: alphaga
BuildDate: 2025-06-17_14:01:07
GoVersion: 1.24.3
Platform: linux
libre2: C++
User-Agent: crowdsec/v1.6.9-debian-pragmatic-amd64-40b8cfe6-linux
Constraint_parser: >= 1.0, <= 3.0
Constraint_scenario: >= 1.0, <= 3.0
Constraint_api: v1
Constraint_acquis: >= 1.0, < 2.0
Built-in optional components: cscli_setup, datasource_appsec, datasource_cloudwatch, datasource_docker, datasource_file, datasource_http, datasource_journalctl, datasource_k8s-audit, datasource_kafka, datasource_kinesis, datasource_loki, datasource_s3, datasource_syslog, datasource_victorialogs, datasource_wineventlog
OS version
Debian GNU/Linux 12 (bookworm)
Enabled collections and parsers
Acquisition config
Config show
No response
Prometheus metrics
Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.
No response