I installed crowdsec on my debian 11 but I’m not able to enroll the agent. I have this error
Error: unknown command “console” for “cscli”
Run ‘cscli --help’ for usage.
FATA[0000] While executing root command : unknown command “console” for “cscli”
cscli version
FATA[0000] read '/etc/crowdsec/config/default.yaml' : open /etc/crowdsec/config/default.yaml: no such file or directory
cscli --config /etc/crowdsec/config.yaml version
FATA[0000] parse '/etc/crowdsec/config.yaml' : yaml: unmarshal errors:
line 1: field common not found in type csconfig.CrowdSec
line 10: field config_paths not found in type csconfig.CrowdSec
line 18: field crowdsec_service not found in type csconfig.CrowdSec
line 23: field cscli not found in type csconfig.CrowdSec
line 26: field db_config not found in type csconfig.CrowdSec
line 39: field plugin_config not found in type csconfig.CrowdSec
line 42: field api not found in type csconfig.CrowdSec
line 60: cannot unmarshal !!map into bool
You will find you have two and one is old the other is the new one. You just need to rm the old one and that one will be the one you can’t do cscli version
I uninstalled Crowdsec, deleted both executables, and then reinstalled Crowdsec. However, I am still unable to use the cscli command to enroll the agent.