New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
difficulties to setup this plugin #49
Comments
plugins are experimental, and loading info is in DEBUG in traefik logs. |
i dont know if this can hellp, but in my case i could see this error in the log: level=error msg="Plugins are disabled because an error has occurred." error="mkdir plugins-storage: read-only file system" which lead me to this: traefik/traefik-helm-chart#282 basically experimental plugins have to be enabled globally within the helm chart in k8s:
now i see that the container is trying to download the plugins, but for some reason it does not reach the host: evel=error msg="Plugins are disabled because an error has occurred." error="failed to download plugin github.com/tomMoulard/fail2ban: failed to call service: Get "https://plugin.pilot.traefik.io/public/download/github.com/tomMoulard/fail2ban/v0.6.6\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" but from a shell inside the container i can download the plugin without any trouble ... so i wonder why cant traefik download it ? can i increase the timeout ? |
also, i feel this point should be documented as well: The fail2ban plugin needs to be the first one on the plugin list of a router, in case the 401, or other "fail sources" are located in the middlewares after fail2ban itself |
@dberardo-com just wanted to say thanks, your posts above have helped me to get the plugin to work! |
Following @dberardo-com comment, I think that this issue could be related to Traefik itself and not to this plugin. Thus, I will close this issue. If you think I am wrong, feel free to open a new issue documenting your use case ! |
@tomMoulard maybe it could be made clearer in the documentation that the I agree with your assessment, most of the issues described above are generic Traefik issues on how to get Traefik configured to run plugins. |
For sure, feel free to open a PR to improve the documentation ! |
@dberardo-com I have opened this PR to add some more docs, following your feedback: #74 |
i believe that my original issue was due to a outdated version of traefik or so, but TBH i forgot. however, well done with the PR ! |
Hello,
I'm trying to setup this plugin and I can't get it to work.
My environment is kubernetes (k3s), my traefik (ingress-controller) is working as expected before starting to play with fail2ban.
my rules-fail2ban.yaml is still the default one:
once starting traefik i don't the see plugin loading:
Is there anything obvious i'm missing ?
The text was updated successfully, but these errors were encountered: