unable to upgrade ou install 1.4.1
What happened?
The install fail
crowdsec[2197464]: time="2022-08-19T14:32:20+02:00" level=fatal msg="while loading configuration : failed unmarshaling config: yaml: u
nmarshal errors:\n line 7: field log_max_size not found in type csconfig.CommonCfg\n line 8: field compress_logs not found in type csconfig.CommonCfg\n line 9: field log_
max_files not found in type csconfig.CommonCfg\n line 17: field notification_dir not found in type csconfig.ConfigurationPaths\n line 18: field plugin_dir not found in typ
e csconfig.ConfigurationPaths\n line 37: field plugin_config not found in type csconfig.GlobalConfig\n line 48: field console_path not found in type csconfig.LocalApiServe
rCfg\n line 51: field trusted_ips not found in type csconfig.LocalApiServerCfg"
What did you expect to happen?
install or upgrade
How can we reproduce it (as minimally and precisely as possible)?
just apt-get install the .deb
I also do a remove --purge and reinstall
Anything else we need to know?
No response
Crowdsec version
$ cscli version
# paste output here
OS version
# On Linux:
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -a
5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
Enabled collections and parsers
$ cscli hub list -o raw
# paste output here
Acquisition config
On Windows:
C:> Get-Content C:\ProgramData\CrowdSec\config\acquis.yaml
paste output here
Config show
No response
Prometheus metrics
No response
Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.
No response
Hello,
It seems you have an old binary that cannot understand modern configs. Do you have either an older locally installed crowdsec (which crowdsec / which cscli), or binaries from official Debian repositories that are a lot older?
I don't think so, I just checked the repositories and verified that there are no other references on the system, but the problem persist
Can you check for leftovers binaries and/or configurations after you uninstall the package ? without context, I didn't manage to reproduce the bug. Please perform uninstall --purge and which cscli or which crowdsec or check if /etc/crowdsec still exists :+1:
thanks
stale issue, don't hesitate to re-open if it persists @ddeenniiss