[v2.0-alpha7] Error matching constraints expression: %vunsupported *ast.Ident

Having this error on the new version. Its a bug or misconfigurations?

could you provide more information : full logs, configuration, etc.

Config Below:

static configuration

[global]
  checkNewVersion = true
  sendAnonymousUsage = true

[serversTransport]
  insecureSkipVerify = true

[entryPoints]
  [entryPoints.http]
    address = ":80"
  [entryPoints.https]
    address = ":443"

[api]
  debug = true

[log]
  level = "DEBUG"

[providers.file]

[providers.docker]
  #endpoint = "unix:///var/run/docker.sock"
  exposedByDefault = false
  #constraints = ["tag==ufs"]
  defaultRule="Host(`{{ normalize .Name }}`).dev.ufs.br"

## dynamic configuration (require the file provider)

[[tls]]
  store = ["default"]
  [tls.certificate]
    certFile = "/opt/localcerts/arara-docker-dev.ufs.br.pem"
    keyFile  = "/opt/private/arara-docker.key"

[tlsStores]
  [tlsStores.default]
    [tlsStores.default.defaultCertificate]
      certFile = "/opt/localcerts/arara-docker-dev.ufs.br.pem"
      keyFile  = "/opt/private/arara-docker.key"

Logs:

time="2019-06-25T17:18:11Z" level=info msg="Configuration loaded from file: /etc/traefik/traefik.toml"
time="2019-06-25T17:18:11Z" level=info msg="Traefik version 2.0.0-alpha7 built on 2019-06-21T15:59:46Z"
time="2019-06-25T17:18:11Z" level=debug msg="Static configuration loaded {\"Global\":{\"CheckNewVersion\":true,\"SendAnonymousUsage\":true},\"ServersTransport\":{\"InsecureSkipVerify\":true,\"RootCAs\":null,\"MaxIdleConnsPerHost\":200,\"ForwardingTimeouts\":null},\"EntryPoints\":{\"http\":{\"Address\":\":80\",\"Transport\":{\"LifeCycle\":{\"RequestAcceptGraceTimeout\":0,\"GraceTimeOut\":10000000000},\"RespondingTimeouts\":{\"ReadTimeout\":0,\"WriteTimeout\":0,\"IdleTimeout\":180000000000}},\"ProxyProtocol\":null,\"ForwardedHeaders\":{\"Insecure\":false,\"TrustedIPs\":null}},\"https\":{\"Address\":\":443\",\"Transport\":{\"LifeCycle\":{\"RequestAcceptGraceTimeout\":0,\"GraceTimeOut\":10000000000},\"RespondingTimeouts\":{\"ReadTimeout\":0,\"WriteTimeout\":0,\"IdleTimeout\":180000000000}},\"ProxyProtocol\":null,\"ForwardedHeaders\":{\"Insecure\":false,\"TrustedIPs\":null}},\"traefik\":{\"Address\":\":8080\",\"Transport\":{\"LifeCycle\":{\"RequestAcceptGraceTimeout\":0,\"GraceTimeOut\":10000000000},\"RespondingTimeouts\":{\"ReadTimeout\":0,\"WriteTimeout\":0,\"IdleTimeout\":180000000000}},\"ProxyProtocol\":null,\"ForwardedHeaders\":{\"Insecure\":false,\"TrustedIPs\":null}}},\"Providers\":{\"ProvidersThrottleDuration\":2000000000,\"Docker\":{\"Constraints\":\"\",\"Watch\":true,\"Endpoint\":\"unix:///var/run/docker.sock\",\"DefaultRule\":\"Host(`{{ normalize .Name }}`).dev.ufs.br\",\"TLS\":null,\"ExposedByDefault\":false,\"UseBindPortIP\":false,\"SwarmMode\":false,\"Network\":\"\",\"SwarmModeRefreshSeconds\":15000000000},\"File\":{\"Directory\":\"\",\"Watch\":true,\"Filename\":\"\",\"DebugLogGeneratedTemplate\":false,\"TraefikFile\":\"/etc/traefik/traefik.toml\"},\"Marathon\":null,\"Kubernetes\":null,\"KubernetesCRD\":null,\"Rest\":null,\"Rancher\":null},\"API\":{\"EntryPoint\":\"traefik\",\"Dashboard\":true,\"Debug\":true,\"Statistics\":null,\"Middlewares\":null},\"Metrics\":null,\"Ping\":null,\"Log\":{\"Level\":\"DEBUG\",\"format\":\"common\"},\"AccessLog\":null,\"Tracing\":null,\"HostResolver\":null,\"ACME\":null}"
time="2019-06-25T17:18:11Z" level=info msg="\nStats collection is enabled.\nMany thanks for contributing to Traefik's improvement by allowing us to receive anonymous information from your configuration.\nHelp us improve Traefik by leaving this feature on :)\nMore details on: https://docs.traefik.io/basics/#collected-data\n"
time="2019-06-25T17:18:11Z" level=debug msg="No default certificate, generate one"
time="2019-06-25T17:18:11Z" level=info msg="Starting provider aggregator.ProviderAggregator {}"
time="2019-06-25T17:18:11Z" level=debug msg="Start TCP Server" entryPointName=http
time="2019-06-25T17:18:11Z" level=debug msg="Start TCP Server" entryPointName=traefik
time="2019-06-25T17:18:11Z" level=info msg="Starting provider *file.Provider {\"Directory\":\"\",\"Watch\":true,\"Filename\":\"\",\"DebugLogGeneratedTemplate\":false,\"TraefikFile\":\"/etc/traefik/traefik.toml\"}"
time="2019-06-25T17:18:11Z" level=debug msg="Start TCP Server" entryPointName=https
time="2019-06-25T17:18:11Z" level=info msg="Starting provider *docker.Provider {\"Constraints\":\"\",\"Watch\":true,\"Endpoint\":\"unix:///var/run/docker.sock\",\"DefaultRule\":\"Host(`{{ normalize .Name }}`).dev.ufs.br\",\"TLS\":null,\"ExposedByDefault\":false,\"UseBindPortIP\":false,\"SwarmMode\":false,\"Network\":\"\",\"SwarmModeRefreshSeconds\":15000000000}"
time="2019-06-25T17:18:11Z" level=debug msg="Provider connection established with docker 18.09.6 (API 1.39)" providerName=docker
time="2019-06-25T17:18:11Z" level=debug msg="Configuration received from provider file: {\"HTTP\":{},\"TCP\":{},\"TLSOptions\":{},\"TLSStores\":{\"default\":{\"DefaultCertificate\":{\"CertFile\":\"/opt/localcerts/arara-docker-dev.ufs.br.pem\",\"KeyFile\":\"/opt/private/arara-docker.key\"}}}}" providerName=file
time="2019-06-25T17:18:11Z" level=debug msg="No store is defined to add the certificate MIIG9zCCBd+gAwIBAgIMIipydXDe4R7mDZffMA0GCSqGSIb3DQ, it will be added to the default store."
time="2019-06-25T17:18:11Z" level=debug msg="Adding certificate for domain(s) *.dev.ufs.br,dev.ufs.br"
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/traefik-753849df13390ced4746ab115f3041caf90081b3f7b24c5cdcc93a82ed80e9f1
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/espelho_bdsigaa-c33fd2a10ad7dedd78fa7846a796d9349239b3ae8c27b52ad57a85d30efd9f1a
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/espelho_bdsig-6d98b06e245309ebde35930734f175635c677ea355327d914ae8e22735ab6fbd
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/residencia_bdsig-a8b9c99f34f884133d9315ed562fd5ac128966dca58d8d4970875e90e8414f74
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/residencia_bdsigaa-c184a13a1824c6e20b69aff44353901cdabdae650ca9ac5d3cf490f295761b53
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/bolsas_bdsig-193b854726dc3806ccdd12e574f2aa1bfbd0fcc2eb3f60bb83aecaf3201c7315
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/bolsas_bdsigaa-ee52e912a6cb7642481415f63d25c40c87669fa4bd43d77c605bf78d205b5a91
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/opendata_bdsigaa-bb17239d1fccafe35fb72130d7a448a9cfcf4e786e1311f096094f3998952bd4
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/opendata_bdsig-b78ddc5aae6fef8f7526494de68bbe46826f60c933d6414a182a9f3b2ccbcfac
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/progressao_bdsig-935e431590c3bfb96abf7fbcce189ad51568e56bc94cb5633286c3f9ea4b015d
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/progressao_bdsigaa-db6f708e53599f670e98f442410d610fa41c7c5f7f66bc4b0779c7a39a7f67ab
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/censo_bdsigaa-bad06e19eaffc377e58f037c247f6890c2f8b30464937a764fc8db26903d3d66
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/extensao_treinamento_bdsig-7f556cabb862fd39bb405190157602a7d67532cb8b64a4ac030d8dae4b700791
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/extensao_treinamento_bdsigaa-4df65f33d87bbaa416b2e8f689a88c807e2969c4aff73d26f401bed9ef7a35c3
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" container=/homologacao_bdsigaa-732ffbd19f469e9a14aa72d4d4e9ed88ba8167e90b1cf0de5a85aac5823a099b providerName=docker
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" container=/manutencao_arquivos_bdsigaa-d1e6d690f209d1e9c562c21bce0b8dc4e74f64121fbf9c4c1d228f8611653895 providerName=docker
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/alocacao_bdsig-30c45ab6dde6f9b2e81d1890cb0ff2ad996d039c6830db19d6b05cc70fbdf548
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/alocacao_bdsigaa-c1512bcd2af26dfafccb987eb2922011201b23149a85dd6a316408604291867c
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/processamento_matricula_bdsigaa-0026c2142a3068b8c8d9444580fc1acd0bc9fbbc67a77a691ccbbc095863cbf9
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" container=/dev_monitoria_bdsigaa-93d2a00ca7a006e676b7a9f0fe02cfb736f3a5b74cb26b310d6e7a5a0b1bba6c providerName=docker
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/dev_monitoria_bdsig-28ccd5080336fb14aa9ce28752876bbfaeeb08cc736716a827a34d8c1e05c825
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/homologacao_monitoria_bdsig-3b297d838724dd2549f312adedea8abadd44bf6c40b916f294918c136d4cfa52
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" container=/homologacao_monitoria_bdsigaa-ead081c28677bbb72b219768d8ff504b22257f0d63559effb8191343dd628f88 providerName=docker
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/desenvolvimento_portal-bcf32c6b05974aefb98c092e2839b21a870874b821aca5ed33f5dd65de01378a
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" container=/api_bdsigaa-16b8c72fc769ddf02bf99c57c47970b23e2590d9be24f7f91f35bc564a5231fc providerName=docker
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/api_bdsig-4c97e99d5a8af953e57c9f22c79e8cf3e57e5a3370495a2ff20f5839e949f177
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/desenvolvimento_repositorio-9f7024f4da4653116f3a21b460d6acff4b97617785960abf2b6e3526eaa4ca92
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/treinamento_repositorio-9faa2fcd978a02f101f8df65097ed92d4e7a9162304198dbd96fd0ad9b77afa9
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/pesquisa_bdsig-8d11e7761d74b2c29940e38ca10eee18c5bcd37e092074c20378f96d21de4c63
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/pesquisa_bdsigaa-d9d319ce75c2a441d8d7a81c4c9310e1d458eb1adf44c0a5319ff88fe8b8b8c9
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" container=/projeto_externo_bdsigaa-6c1e590846998884ad7a55e56ee3432645616deac824b3262f6e27ecc59487d0 providerName=docker
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" providerName=docker container=/projeto_externo_bdsig-155ca7c9474a7ce4d8fe4e28a990b1c2a1a530dbd0a6cb204af37c82f6ac7f5f
time="2019-06-25T17:18:11Z" level=debug msg="Filtering disabled container" container=/nostalgic_keller-9f1e5e8a7a39edbe92913acfadd8aaa33d4be1893f5098c7fb832908d30ba616 providerName=docker
time="2019-06-25T17:18:11Z" level=debug msg="Configuration received from provider docker: {\"HTTP\":{\"routers\":{\"/Espelho\":{\"entryPoints\":null,\"service\":\"/Espelho\",\"rule\":\"Host(`Espelho`).dev.ufs.br\"}},\"services\":{\"/Espelho\":{\"loadbalancer\":{\"servers\":[{\"url\":\"http://172.17.0.34:8080\"}],\"passHostHeader\":true}}}},\"TCP\":{},\"TLSOptions\":null,\"TLSStores\":null}" providerName=docker
time="2019-06-25T17:18:11Z" level=debug msg="Adding certificate for domain(s) *.dev.ufs.br,dev.ufs.br"
time="2019-06-25T17:18:11Z" level=debug msg="Creating middleware" entryPointName=https middlewareName=pipelining middlewareType=Pipelining routerName=/Espelho@docker serviceName=/Espelho
time="2019-06-25T17:18:11Z" level=debug msg="Creating load-balancer" serviceName=/Espelho entryPointName=https routerName=/Espelho@docker
time="2019-06-25T17:18:11Z" level=debug msg="Creating server 0 http://172.17.0.34:8080" entryPointName=https routerName=/Espelho@docker serviceName=/Espelho serverName=0
time="2019-06-25T17:18:11Z" level=debug msg="Added outgoing tracing middleware /Espelho" entryPointName=https routerName=/Espelho@docker middlewareName=tracing middlewareType=TracingForwarder
time="2019-06-25T17:18:11Z" level=error msg="error while parsing rule Host(`Espelho`).dev.ufs.br: unsupported *ast.SelectorExpr" entryPointName=https routerName=/Espelho@docker
time="2019-06-25T17:18:11Z" level=debug msg="Creating middleware" middlewareType=Recovery entryPointName=https middlewareName=traefik-internal-recovery
time="2019-06-25T17:18:11Z" level=error msg="error while parsing rule Host(`Espelho`).dev.ufs.br: unsupported *ast.SelectorExpr" entryPointName=traefik routerName=/Espelho@docker
time="2019-06-25T17:18:11Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2019-06-25T17:18:11Z" level=error msg="error while parsing rule Host(`Espelho`).dev.ufs.br: unsupported *ast.SelectorExpr" entryPointName=http routerName=/Espelho@docker
time="2019-06-25T17:18:11Z" level=debug msg="Creating middleware" middlewareName=traefik-internal-recovery middlewareType=Recovery entryPointName=http

The constraint syntax has been changed in alpha7: https://docs.traefik.io/v2.0/providers/docker/#constraints

The syntax is invalid:

A valid syntax is:

defaultRule="Host(`{{ normalize .Name }}.dev.ufs.br`)"
1 Like

Thanks, this did the trick. I was aware of the label change th

This did the trick. Thanks!

Got it! It was commented on my PoC however.