C
CrowdSec4mo ago
JIN

Two traefik-bouncers and can't delete the one that's not working

I used pangolin to setup crowdsec and i'm not sure why there is two traefik-bouncers. The 2nd traefik bouncer hasn't pulled from the API for 2 days and I tried deleting it but got the error WARNING bouncer 'traefik-bouncer@172.18.0.3' is auto-created and cannot be deleted, delete parent bouncer traefik-bouncer instead
No description
No description
7 Replies
CrowdSec
CrowdSec4mo ago
Important Information
Thank you for getting in touch with your support request. To expedite a swift resolution, could you kindly provide the following information? Rest assured, we will respond promptly, and we greatly appreciate your patience. While you wait, please check the links below to see if this issue has been previously addressed. If you have managed to resolve it, please use run the command /resolve or press the green resolve button below.
Log Files
If you possess any log files that you believe could be beneficial, please include them at this time. By default, CrowdSec logs to /var/log/, where you will discover a corresponding log file for each component.
Guide Followed (CrowdSec Official)
If you have diligently followed one of our guides and hit a roadblock, please share the guide with us. This will help us assess if any adjustments are necessary to assist you further.
Screenshots
Please forward any screenshots depicting errors you encounter. Your visuals will provide us with a clear view of the issues you are facing.
© Created By WhyAydan for CrowdSec ❤️
Jimmy Chen
Jimmy Chen4mo ago
I have the same issue, except I have 2 that are inactive and can't be deleted.
No description
No description
Jimmy Chen
Jimmy Chen4mo ago
@JIN I managed to delete them with the prune command in an interactive shell (docker exec -it crowdsec)
cscli bouncers prune -d 1440m
cscli bouncers prune -d 1440m
Still not sure why they got created and then deactivated in the first place though.
JIN
JINOP4mo ago
Thanks @Jimmy Chen I give that a go later tonight. Do you know if I’m missing out on anything if I only have one active?
Jimmy Chen
Jimmy Chen4mo ago
It seems fine so far
JIN
JINOP4mo ago
Okay. Thanks a lot!
Jimmy Chen
Jimmy Chen4mo ago
I cross posted in the pangolin discord and @griemel had the following solution: This is only one bouncer but it's initialized with different IP addresses. Every time you restart your crowdsec container it will get a random new IP address and will create a new line in the bouncer list. I was also annoyed by this. The only way to avoid this I know of is to give your containers a fixed IP address. (This is also very helpfull, if your logs show a problem with some IP addresses and you need to know which container uses that specific IP address at this time.) You can do that in your docker-compose.yml: networks: pangolin: ipv4_address: 172.22.0.3 It's now your responsibility that every container get's its unique IP address.

Did you find this page helpful?