ERR error="middleware \"globalcrowdsec@file\" does not exist" entryPointName=http routerName=acme-ht
I am use this Tutorial : https://www.crowdsec.net/blog/securing-automated-app-deployment-crowdsec-and-coolify to Installing the Traefik Remediation Component
in coolify. but when i add Compose Command section by adding the following lines:
command:
- '--experimental.plugins.crowdsec.modulename=github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin'
- '--experimental.plugins.crowdsec.version=v1.4.2'
- '--entryPoints.http.http.middlewares=globalcrowdsec@file'
- '--entryPoints.https.http.middlewares=globalcrowdsec@file'
I got errors log and webserver down:
ERR error="middleware "globalcrowdsec@file" does not exist" entryPointName=http routerName=acme-http@internal
ERR error="middleware "globalcrowdsec@file" does not exist" entryPointName=http routerName=ping@internal
Any advice..
Thanks
Securing Automated App Deployment with CrowdSec & Coolify
Learn how to secure your automated app deployments with CrowdSec and Coolify and defend against abusive IPs and unwanted traffic.
8 Replies
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 ❤️
So you created a
crowdsec.yml
inside /data/coolify/proxy/dynamic
folder with these contents
yes. I created by using Dynamic Configurations in Coolify UI
Can you confirm they exist on the disk, cause when I tried it sometimes it said it saved the file and it didn't
yes it is in path /data/coolify/proxy/dynamic/crowdsec.yml
And if you exec into the coolify proxy you see the file mounted, you should be able to see the mount paths in the proxy compose
hmmmm, no
docker exec -it coolify-proxy cat /dynamic/crowdsec.yml
i catch it in path: docker exec -it coolify-proxy cat /traefik/dynamic/crowdsec.yml
i add command :
- "--providers.file.directory=/traefik/dynamic"
and still the same error log
any advice
just giving the full compose as there something missing but hard to find.