Decisions not showing up in crowdsec browser Decisions page? Is it not normal?
Hi I tried to ban myself with my local IP address with: cscli decisions add -i YOUR_TEST_IP -t ban -d 1m .
I tried then to reach a page covered by traefik with its bouncer plugin installed and after I run the cscli command I got banned and everything works.
Shouldn't I see such decision in the decisions page on the browser though? Or is it like a paid feature?
27 Replies
Important Information
This post has been marked as resolved. If this is a mistake please press the red button below or type
/unresolve
Β© Created By WhyAydan for CrowdSec β€οΈ
Since the decision is 1 minutes, there a delay between the alert and being recieved by the console so it may expire before it can be rendered in the page.
also forgot to point out the page only shows active decisions
if you check the alerts page do you see the manual alert?
Ahhh ok, now I banned myself for 10 minutes... maybe now it will show up
also make sure you can see manual alerts in the alerts tab, if not then most likely it hasnt enabled the manual alerts inside
cscli console status
at the moment in the crowsec dashboard ( browser I mean) I don't see anything but I just run cscli console status and this is the status

ahhh well that makes sense, manual is turned off
so I guess that manual ban are not sent to the dashboard online at all right?
ye you do
cscli console enable manual
then you have to restart the container cause it needs to reloadOk, I just run the command, rebooted the container and banned myself again
I guess I have to try to get the ip of my phone and try to reach a service out of my local network π

so if an IP is local then it won't show up at all in the console
hmm that info is not correct as far as im aware
cause I get this

As a "debug", I tried now in my local crowdsec container to ban the IP of my phone, and still, I can't see it as an alert nor a decision
and for the container you are persisting the
/etc/crowdsec
directory so your not getting disconnect from the enrollment?
sorry for the trash formatting
yep
# - ./crowdsec_config:/etc/crowdsec
is commented out so everytime you restart it getting a new idah fuck π
so now I have to enroll it again, right?
Yep but firstly make sure you persist it cause if not going to happen again
May I ask if I can remove this volume then? --> - ${BASE_PATH}/crowdsec/data:/var/lib/crowdsec/data:rw
No as that is the database path, the other is the configuration directory, you need both
Oh yes!
It works! Thanks @Loz
Basically the main issue was the missing config volume
Yep cause whenever we would change anything configuration wise such as enrolling a restart will think its a new instance
Yep π the cscli console enable manual, can be maybe setup with an env variable? SO that I don't need I can debug whenever I need?
Yeah there a pending PR to add it as a env variable, still needs to be merged afaik
Super thank you for the info π
Resolving Decisions not showing up in crowdsec browser Decisions page? Is it not normal?
This has now been resolved. If you think this is a mistake please run
/unresolve