Open sawyersteven opened 8 months ago
@sawyersteven: Thanks for opening an issue, it is currently awaiting triage.
In the meantime, you can:
Seems you may have two crowdsec binaries on the system as the version is quite outdated
which -a crowdsec
$ which -a crowdsec
/usr/bin/crowdsec
/bin/crowdsec
I'm not sure how more than one binary got installed... This is a relatively fresh os install and everything else I run is containerized.
edit:
Running apt purge crowdsec
results in both binaries being removed, but apt install crowdsec
puts them both back.
$ which -a crowdsec /usr/bin/crowdsec /bin/crowdsec
I'm not sure how more than one binary got installed... This is a relatively fresh os install and everything else I run is containerized.
edit:
Running
apt purge crowdsec
results in both binaries being removed, butapt install crowdsec
puts them both back.
or maybe you have two cscli
? cause the version output you provided says 1.4.6
$ which -a cscli
/usr/bin/cscli
/bin/cscli
But after an apt purge of everything and a reboot the cscli metrics
command works as expected. But it still shows two paths (bin and usr/bin) for both cscli and crowdsec.
So if it runs I'll just have to do some good pen tests to make sure it is working correctly and actually blocks bad actors.
In many distributions /bin is a link to /usr/bin so seeing two binaries is not a surprise.
Check your /etc/apt/sources.list.d for the content of the relevant repository. I do use Debian testing and the script.deb.sh created trixie instead of newer versions (like bookworm) as link to the repository. You probably currently do see an error when running apt update for the URL. After changing trixie -> bookworm (or relevant latest supported Ubuntu version), run 'apt update & apt upgrade' You should see an upgrade to the latest Version of crowdsec (1.6.1*)
This fixed the cscli metrics issue for me.
What happened?
When running
cscli metrics
the following was printed:What did you expect to happen?
Metrics to print
How can we reproduce it (as minimally and precisely as possible)?
Ubuntu 24.04, the following commands:
No configs have been modified.
Anything else we need to know?
Crash log: https://pastebin.com/JgPEaZtp
Crowdsec version
OS version
Enabled collections and parsers
Acquisition config
Config show
Prometheus metrics
Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.