Field not found, node provider

Hello,

Error message: command traefik error: field not found, node provider
I think this is a "syntax" mistake but I do not find it.

global:
  checkNewVersion: true
  sendAnonymousUsage: false
serversTransport:
  insecureSkipVerify: true
entryPoints:
  # Not used in apps, but redirect everything from HTTP to HTTPS
  http:
    address: :80
    forwardedHeaders:
      trustedIPs: &trustedIps
        # Start of Clouflare public IP list for HTTP requests, remove this if you don't use it
        - 173.245.48.0/20
        - 103.21.244.0/22
        - 103.22.200.0/22
        - 103.31.4.0/22
        - 141.101.64.0/18
        - 108.162.192.0/18
        - 190.93.240.0/20
        - 188.114.96.0/20
        - 197.234.240.0/22
        - 198.41.128.0/17
        - 162.158.0.0/15
        - 104.16.0.0/13
        - 104.24.0.0/14
        - 172.64.0.0/13
        - 131.0.72.0/22
        - 2400:cb00::/32
        - 2606:4700::/32
        - 2803:f800::/32
        - 2405:b500::/32
        - 2405:8100::/32
        - 2a06:98c0::/29
        - 2c0f:f248::/32
        # End of Cloudlare public IP list
#  http:
    redirections:
    entryPoint:
    to: https
    scheme: https
          # HTTPS endpoint, with domain wildcard
  https:
    address: :443
    forwardedHeaders:
      # Reuse list of Cloudflare Trusted IP's above for HTTPS requests
    trustedIPs: *trustedIps
#  http:
    tls:
      # Generate a wildcard domain certificate
    certResolver: letsencrypt
    domains:
      - main: domain.org
        sans:
      - '*.domain.org'
    middlewares:
      - securityHeaders@file
providers:
  docker:
    endpoint: "unix:///var/run/docker.sock"   # Listen to the UNIX Docker socket
    exposedByDefault: false                   # Only expose container that are explicitly enabled (using label traefik.enabled)
    network: "docker-net"  
    defaultRule: "Host(`{{ lower (trimPrefix `/` .Name )}}.domain.org`)"                  # Default network to use for connections to all containers.
    watch: true                               # Watch Docker Swarm event
    providersThrottleDuration: 10
     # File provider for connecting things that are outside of docker / defining middleware
  file:
    filename: /etc/traefik/fileConfig.yml
    watch: true
# Enable traefik ui
api:
  dashboard: true
  insecure: true
  # Log level INFO|DEBUG|ERROR
log:
  level: DEBUG
  # Use letsencrypt to generate ssl serficiates
certificatesResolvers:
  letsencrypt:
    acme:
      email: tra@domain.tld
      storage: /etc/traefik/acme.json
      dnsChallenge:
      provider: cloudflare
        # Used to make sure the dns challenge is propagated to the rights dns servers
  resolvers:
    - "1.1.1.1:53"
    - "1.0.0.1:53"

Maybe it's here... :

Hello, its here:

the field provider doesn't exist, it should be:

certificatesResolvers:
  letsencrypt:
    acme:
      email: tra@domain.tld
      storage: /etc/traefik/acme.json
      dnsChallenge:
         provider: cloudflare

It's just an indentation problem.

It is correct thx.
But now I have this: traefik error: field not found, node: scheme

:slight_smile:

I recommend using JSON schema to validate your configuration:

There are several indentation problems.
A fixed version of your configuration:

global:
  checkNewVersion: true
  sendAnonymousUsage: false
serversTransport:
  insecureSkipVerify: true
entryPoints:
  # Not used in apps, but redirect everything from HTTP to HTTPS
  http:
    address: :80
    forwardedHeaders:
      trustedIPs: &trustedIps
        # Start of Clouflare public IP list for HTTP requests, remove this if you don't use it
        - 173.245.48.0/20
        - 103.21.244.0/22
        - 103.22.200.0/22
        - 103.31.4.0/22
        - 141.101.64.0/18
        - 108.162.192.0/18
        - 190.93.240.0/20
        - 188.114.96.0/20
        - 197.234.240.0/22
        - 198.41.128.0/17
        - 162.158.0.0/15
        - 104.16.0.0/13
        - 104.24.0.0/14
        - 172.64.0.0/13
        - 131.0.72.0/22
        - 2400:cb00::/32
        - 2606:4700::/32
        - 2803:f800::/32
        - 2405:b500::/32
        - 2405:8100::/32
        - 2a06:98c0::/29
        - 2c0f:f248::/32
        # End of Cloudlare public IP list
    http:
      redirections:
        entryPoint:
          to: https
          scheme: https
    # HTTPS endpoint, with domain wildcard
  https:
    address: :443
    forwardedHeaders:
      # Reuse list of Cloudflare Trusted IP's above for HTTPS requests
      trustedIPs: *trustedIps
    http:
      tls:
      # Generate a wildcard domain certificate
      certResolver: letsencrypt
      domains:
        - main: domain.org
          sans:
        - '*.domain.org'
      middlewares:
        - securityHeaders@file
providers:
  providersThrottleDuration: 10s
  docker:
    endpoint: "unix:///var/run/docker.sock"   # Listen to the UNIX Docker socket
    exposedByDefault: false                   # Only expose container that are explicitly enabled (using label traefik.enabled)
    network: "docker-net"
    defaultRule: "Host(`{{ lower (trimPrefix `/` .Name )}}.domain.org`)"                  # Default network to use for connections to all containers.
    watch: true                               # Watch Docker Swarm event
    # File provider for connecting things that are outside of docker / defining middleware
  file:
    filename: /etc/traefik/fileConfig.yml
    watch: true
# Enable traefik ui
api:
  dashboard: true
  insecure: true
  # Log level INFO|DEBUG|ERROR
log:
  level: DEBUG
  # Use letsencrypt to generate ssl serficiates
certificatesResolvers:
  letsencrypt:
    acme:
      email: tra@domain.tld
      storage: /etc/traefik/acme.json
      dnsChallenge:
        provider: cloudflare
        # Used to make sure the dns challenge is propagated to the rights dns servers
        resolvers:
          - "1.1.1.1:53"
          - "1.0.0.1:53"

I recommend using JSON schema to validate your configuration:

I have made with your help Traefik running ...
Now I will have to make it working :slight_smile: Traefik will be in front of my VM (webserver under Unraid)
Thx again.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.