traefik: Plugin not working

Welcome!

  • Yes, I’ve searched similar issues on GitHub and didn’t find any.
  • Yes, I’ve searched similar issues on the Traefik community forum and didn’t find any.

What did you do?

I tested custom plugin in EKS traefik deployment, but it’s not working. helm chart config:

additionalArguments: 
  - "--log.level=DEBUG"
  - "--experimental.plugins.example.modulename=github.com/traefik/plugindemo"
  - "--experimental.plugins.example.version=v0.2.2"

the pod error message:

time="2022-11-08T15:42:07Z" level=debug msg="loading of plugin: example: github.com/traefik/plugindemo@v0.2.2"
time="2022-11-08T15:42:12Z" level=error msg="Plugins are disabled because an error has occurred." error="failed to download plugin github.com/traefik/plugindemo: failed to call service: Get \"https://plugins.traefik.io/public/download/github.com/traefik/plugindemo/v0.2.2\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"

the network is ok, I can wget https://plugins.traefik.io/public/download/github.com/traefik/plugindemo/v0.2.2 in the pod

Then I test different version of traefik docker image:

Custom plugin working fine: v2.7.0 v2.8.0 v2.8.1 v2.8.3

Custom plugin not working: v2.8.4 v2.8.8 v2.9.4

Conclusion: The latest working version is Traefik v2.8.3

What did you see instead?

time="2022-11-08T15:42:07Z" level=debug msg="loading of plugin: example: github.com/traefik/plugindemo@v0.2.2"
time="2022-11-08T15:42:12Z" level=error msg="Plugins are disabled because an error has occurred." error="failed to download plugin github.com/traefik/plugindemo: failed to call service: Get \"https://plugins.traefik.io/public/download/github.com/traefik/plugindemo/v0.2.2\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"

What version of Traefik are you using?

v2.9.4

What is your environment & configuration?

additionalArguments: 
  - "--log.level=DEBUG"
  - "--experimental.plugins.example.modulename=github.com/traefik/plugindemo"
  - "--experimental.plugins.example.version=v0.2.2"

If applicable, please paste the log output in DEBUG level

time="2022-11-08T15:42:07Z" level=debug msg="loading of plugin: example: github.com/traefik/plugindemo@v0.2.2"
time="2022-11-08T15:42:12Z" level=error msg="Plugins are disabled because an error has occurred." error="failed to download plugin github.com/traefik/plugindemo: failed to call service: Get \"https://plugins.traefik.io/public/download/github.com/traefik/plugindemo/v0.2.2\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

I have built the master version and tested. All plugins load fine! Thanks!

> kubectl logs traefik-65bfff4694-6l7rb -n traefik
time="2022-11-24T05:07:23Z" level=info msg="Configuration loaded from flags."
time="2022-11-24T05:07:23Z" level=info msg="Traefik version 81a5b1b4c8946dfa9cbee298c2f4a263df407b0f built on 2022-11-23_03:01:37AM"
time="2022-11-24T05:07:23Z" level=debug msg="Static configuration loaded {\"global\":{\"checkNewVersion\":true},\"serversTransport\":{\"maxIdleConnsPerHost\":200},\"entryPoints\":{\"metrics\":{\"address\":\":9100/tcp\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{},\"http2\":{\"maxConcurrentStreams\":250},\"udp\":{\"timeout\":\"3s\"}},\"traefik\":{\"address\":\":9000/tcp\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{},\"http2\":{\"maxConcurrentStreams\":250},\"udp\":{\"timeout\":\"3s\"}},\"web\":{\"address\":\":8000/tcp\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{},\"http2\":{\"maxConcurrentStreams\":250},\"udp\":{\"timeout\":\"3s\"}},\"websecure\":{\"address\":\":8443/tcp\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{\"tls\":{}},\"http2\":{\"maxConcurrentStreams\":250},\"udp\":{\"timeout\":\"3s\"}}},\"providers\":{\"providersThrottleDuration\":\"2s\",\"kubernetesIngress\":{\"namespaces\":[\"default\",\"traefik\"]},\"kubernetesCRD\":{\"namespaces\":[\"default\",\"traefik\"],\"allowExternalNameServices\":true}},\"api\":{\"dashboard\":true},\"metrics\":{\"prometheus\":{\"buckets\":[0.1,0.3,1.2,5],\"addEntryPointsLabels\":true,\"addServicesLabels\":true,\"entryPoint\":\"metrics\"}},\"ping\":{\"entryPoint\":\"traefik\",\"terminatingStatusCode\":503},\"log\":{\"level\":\"DEBUG\",\"format\":\"common\"},\"accessLog\":{\"format\":\"common\",\"filters\":{},\"fields\":{\"defaultMode\":\"keep\",\"headers\":{\"defaultMode\":\"drop\"}}},\"experimental\":{\"plugins\":{\"plugin-requestid\":{\"moduleName\":\"github.com/pipe01/plugin-requestid\",\"version\":\"v1.0.0\"},\"traefikxrequeststart\":{\"moduleName\":\"github.com/EasySolutionsIO/traefikxrequeststart\",\"version\":\"v0.0.3\"}}}}"
time="2022-11-24T05:07:23Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://doc.traefik.io/traefik/contributing/data-collection/\n"
time="2022-11-24T05:07:23Z" level=debug msg="loading of plugin: plugin-requestid: github.com/pipe01/plugin-requestid@v1.0.0"
time="2022-11-24T05:07:30Z" level=debug msg="loading of plugin: traefikxrequeststart: github.com/EasySolutionsIO/traefikxrequeststart@v0.0.3"