# Traefik V2 - No Docker - Router error: Acme challenge is not enabled

**URL:** <https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870>\
**Category:** Traefik v2\
**Tags:** letsencrypt-acme\
**Created:** [December 28, 2021, 6:02pm UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870 "2021-12-28T18:02:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![PREngineer](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@PREngineer](https://community.traefik.io/u/PREngineer)\
**Post date:** [December 28, 2021, 6:02pm UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/1 "2021-12-28T18:02:16Z")

</div>

Hi all, new to Traefik.

I want to perform SSL termination and reverse proxying for my services Plex, NAS, and WordPress.

I have managed to successfully install Traefik V2 in my raspberry pi (armv6). It is running fine outside of docker and redirecting to the appropriate back-end servers. However, SSL doesn't work. Not sure what I might have configured incorrectly. I'm not used to the way that Traefik's docs are written and I don't understand them well.

I see the following error on the web interface, but I can't find any log files being created in the specified path of the config.

 ![error](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/2/21afa0137a6346f6faa588e3dde041fd7f9aa2eb.png)

After burning my eyes reading the docs and anything I could find online, I have the following 'traefik.yaml' file:

```auto
#################################
# Traefik V2 Static Configuration
#################################

# Global Configurations
global:
  # Check for Update
  checkNewVersion: true

# Configure the transport between Traefik and your servers
serversTransport:
  # Skip the check of server certificates
  insecureSkipVerify: true
  # How manny connections per server
  maxIdleConnsPerHost: 42
  # Define timeouts
  forwardingTimeouts:
    dialTimeout: 42
    responseHeaderTimeout: 42
    idleConnTimeout: 42

# Configure the network entrypoints into Traefik V2. Which port will receive packets and if TCP/UDP
entryPoints:

  # HTTP Entry Point
  web:
    # Listen on TCP port 80 (80/tcp)
    address: ":80"
    # redirect http to https
    http:
      redirections:
        entryPoint:
          # Where to redirect
          to: web-secure
          # Scheme to use
          scheme: https
          # Make it always happen
          permanent: true
    # Specify the timeouts for the transports
    transport:
      # Controls the behavior during the shutdown phase
      lifeCycle:
        requestAcceptGraceTimeout: 42
        graceTimeOut: 42
      # Timeouts for incoming requests to Traefik V2 instance. No effect on UDP.
      respondingTimeouts:
        readTimeout: 42
        writeTimeout: 42
        idleTimeout: 42
    # Define how the Proxy Protocol should behave and what to trust.
    proxyProtocol:
      # Specify IPs for secure mode
      trustedIPs:
      - 10.0.0.1
      - 127.0.0.1
    forwardedHeaders:
      # Specify IPs for secure mode
      trustedIPs:
      - 10.0.0.1
      - 127.0.0.1
  
  # HTTPS Entry Point
  web-secure:
    # Listen on TCP port 443 (443/tcp)
    address: ":443"
    # Define TLS with Let's Encrypt for all
    http:
      tls:
        certResolver: letsencrypt
    # Specify the timeouts for the transports
    transport:
      # Controls the behavior during the shutdown phase
      lifeCycle:
        requestAcceptGraceTimeout: 42
        graceTimeOut: 42
      # Timeouts for incoming requests to Traefik V2 instance. No effect on UDP.
      respondingTimeouts:
        readTimeout: 42
        writeTimeout: 42
        idleTimeout: 42
    # Define how the Proxy Protocol should behave and what to trust.
    proxyProtocol:
      # Specify IPs for secure mode
      trustedIPs:
      - 10.0.0.1
      - 127.0.0.1
    forwardedHeaders:
      # Specify IPs for secure mode
      trustedIPs:
      - 10.0.0.1
      - 127.0.0.1

# Configure the providers
providers:
  providersThrottleDuration: 42
  
  # If using a dynamic file
  file:
    filename: "/etc/traefik/traefik-dynamic.yaml"
    watch: true
    debugLogGeneratedTemplate: true
    
  rest:
    insecure: true

# Traefik's Dashboard located in http://<ip>/dashboard/ (last / necessary)
api:
  # Enable the dashboard
  dashboard: true

# Location of Log files
log:
  # Logging levels are: DEBUG, PANIC, FATAL, ERROR, WARN, INFO
  level: DEBUG
  filePath: "/etc/traefik/traefik.log"

# SSL Certificates
certificatesResolvers:
# Use Let's Encrypt for SSL Certificates
  letsencrypt:
    # Enable ACME (Let's Encrypt automatic SSL)
    acme:
      # E-mail used for registration
      email: <my e-mail>
      # Leave commented for PROD servers uncomment for Non Prod
      #caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
      # File or key used for certificates storage.
      storage: acme.json
      # Optional 
      #keyType: RSA4096
      
      # Use HTTP-01 ACME challenge
      httpChallenge:
        entryPoint: web

```

And the following 'traefik-dynamic.yaml' file:

```auto
#################################
# Traefik V2 Dynamic Configuration
#################################

# Definition on how to handle HTTP requests
http:

  # Define the routers
  routers:

    # Map Traefik Dashboard requests to the Service
    Traefik:
      middlewares:
      - BasicAuth
      rule: "Host(`traefik.subdomain.dns1.us`)"
      service: api@internal
      tls:
        certResolver: letsencrypt

    # Map PLEX to the Server
    # No EntryPoints defined so that it listens in all of them
    PLEX:
      rule: "Host(`plex.subdomain.dns1.us`)"
      service: PLEX
      tls:
        certResolver: letsencrypt

  # Define the middlewares
  middlewares:
    # Basic auth for the dashboard
    BasicAuth:
      basicAuth:
        # Specify user and password (generator: https://www.web2generators.com/apache-tools/htpasswd-generator)
        users:
          - "<user>:<password>"

  # Define the services
  services:

    #PLEX Service
    PLEX:
      loadBalancer:
        # Backend URLs
        servers:
        - url: "http://10.0.0.21:32400"
        # Enable sticky sessions
        sticky:
          cookie: {}
        # Pass the client Host header to the server
        passHostHeader: true

```

Any help will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![tommoulard](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/tommoulard/32/2997_2.png) [@tommoulard](https://community.traefik.io/u/tommoulard)\
**Post date:** [December 29, 2021, 3:57pm UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/2 "2021-12-29T15:57:13Z")

</div>

Can you please provide your logs if possible ?

---

<div class="post-metadata">

**Author:** ![PREngineer](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@PREngineer](https://community.traefik.io/u/PREngineer)\
**Post date:** [December 29, 2021, 4:29pm UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/3 "2021-12-29T16:29:28Z")

</div>

Hi @tommoulard,

I would love to. However, I don't see the log files being created; which puzzled me. I mentioned it in the question.

Maybe something related to the logs in the config is wrong?

This is where I specified that the logs should be created. I even created the file and it won't write to it.

![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/7/7e687832f190dd71e1e591d1a2e5099233affa80.png)

Can't find a log for it anywhere:

![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/1/155abf7c27e4ece988589d166c9e298ef6c6f9e6.png)

---

<div class="post-metadata">

**Author:** ![tommoulard](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/tommoulard/32/2997_2.png) [@tommoulard](https://community.traefik.io/u/tommoulard)\
**Post date:** [December 29, 2021, 4:47pm UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/4 "2021-12-29T16:47:44Z")

</div>

This might be related to another issue since, using your configuration, I can launch traefik, your service and a TLS termination.

I tried to remove the `filepath` configuration for the log, and it did not show any error.

---

<div class="post-metadata">

**Author:** ![PREngineer](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@PREngineer](https://community.traefik.io/u/PREngineer)\
**Post date:** [December 29, 2021, 6:38pm UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/5 "2021-12-29T18:38:17Z")

</div>

Thank you sir.

I'm wondering if something is not working properly in the armv6 release then?

---

<div class="post-metadata">

**Author:** ![tommoulard](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/tommoulard/32/2997_2.png) [@tommoulard](https://community.traefik.io/u/tommoulard)\
**Post date:** [December 30, 2021, 8:05am UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/6 "2021-12-30T08:05:26Z")

</div>

Is it possible for you to run the binary directly, and do not set to output logs into a file, to see if there is any issue like this.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![PREngineer](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@PREngineer](https://community.traefik.io/u/PREngineer)\
**Post date:** [December 30, 2021, 6:55pm UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/7 "2021-12-30T18:55:54Z")

</div>

Awesome! Thanks for recommending that. Now I do see some useful information.

However, I did list that resolver. There must be something wrong with my config then.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/6/6482ee0193fac929568e0d6ab52d7bdca5e6cbd3.png)

---

<div class="post-metadata">

**Author:** ![tommoulard](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/tommoulard/32/2997_2.png) [@tommoulard](https://community.traefik.io/u/tommoulard)\
**Post date:** [December 31, 2021, 8:24am UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/8 "2021-12-31T08:24:27Z")

</div>

There you go, you have an invalid configuration of your ACME resolver. It might be linked to the content of your acme.json file.

You'll also need to configure a [challenge](https://doc.traefik.io/traefik/https/acme/#the-different-acme-challenges) to generate and renew ACME certificates.

---

<div class="post-metadata">

**Author:** ![PREngineer](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@PREngineer](https://community.traefik.io/u/PREngineer)\
**Post date:** [December 31, 2021, 7:02pm UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/9 "2021-12-31T19:02:24Z")

</div>

OK, error with the _ **"XXX uses a non-existent resolver: letsencrypt"** _ is solved at least.

I get a clean output when I run the executable.

![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/8/86cdfe9548f9f01fbb6bd8007ad1f7f23af9729e.png)

**Issue**

The acme.json file located in /etc/traefik was blank (only a line that said **#Acme** ) and for some reason Traefik didn't like it.

**Solution**

Removed the acme.json file and let Traefik recreate it itself.  
`sudo rm /etc/traefik/acme.json`

Still not getting certificates, so I will post an update with the solution once I figure it out.

---

<div class="post-metadata">

**Author:** ![PREngineer](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@PREngineer](https://community.traefik.io/u/PREngineer)\
**Post date:** [December 31, 2021, 9:23pm UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/10 "2021-12-31T21:23:40Z")

</div>

Finally got HTTPS working!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/8/8fbbaf8abf31d2e146f2650bddea58cfb5ecb86c.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/0/0c276cc4b51e2e19c97e74491d98b35bb3ae965a.png)

Here are the updated configuration files ( I simplified it a lot to test ):

/etc/traefik/traefik.yaml

```auto
#################################
# Traefik V2 Static Configuration
#################################

# Global Configurations
global:
  # Check for Update
  checkNewVersion: true

# Configure the transport between Traefik and your servers
serversTransport:
  # Skip the check of server certificates
  insecureSkipVerify: true

# Configure the network entrypoints into Traefik V2. Which port will receive packets and if TCP/UDP
entryPoints:

  # HTTP Entry Point
  web:
    # Listen on TCP port 80 (80/tcp)
    address: ":80"
    # redirect http to https
    http:
      redirections:
        entryPoint:
          # Where to redirect
          to: web-secure
          # Scheme to use
          scheme: https
          # Make it always happen
          permanent: true
  
  # HTTPS Entry Point
  web-secure:
    # Listen on TCP port 443 (443/tcp)
    address: ":443"
    # Define TLS with Let's Encrypt for all
    http:
      tls:
        certResolver: letsencrypt

# Configure the providers
providers:
  # If using a dynamic file
  file:
    filename: "/etc/traefik/traefik-dynamic.yaml"
    watch: true
    
  rest:
    insecure: true

# Traefik's Dashboard located in http://<ip>/dashboard/ (last / necessary)
api:
  # Enable the dashboard
  dashboard: true

# Location of Log files
log:
  # Logging levels are: DEBUG, PANIC, FATAL, ERROR, WARN, INFO
  level: ERROR
  filePath: "/etc/traefik/traefik.log"

# SSL Certificates
certificatesResolvers:
# Use Let's Encrypt for SSL Certificates
  letsencrypt:
    # Enable ACME (Let's Encrypt automatic SSL)
    acme:
      # E-mail used for registration
      email: "email@hotmail.com"
      # Leave commented for PROD servers uncomment for Non Prod
      #caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
      # File or key used for certificates storage.
      storage: "/etc/traefik/acme.json"
      
      # Use HTTP-01 ACME challenge
      httpChallenge:
        entryPoint: web-secure

```

/etc/traefik/traefik-dynamic.yaml

```auto
#################################
# Traefik V2 Dynamic Configuration
#################################

# Definition on how to handle HTTP requests
http:

  # Define the routers
  routers:

    # Map Traefik Dashboard requests to the Service
    Traefik:
      middlewares:
      - BasicAuth
      rule: "Host(`traefik.subdomain.dns1.us`)"
      service: api@internal
      tls:
        certResolver: letsencrypt

    # Map PLEX to the Server
    # No EntryPoints defined so that it listens in all of them
    PLEX:
      rule: "Host(`plex.subdomain.dns1.us`)"
      service: PLEX
      tls:
        certResolver: letsencrypt

  # Define the middlewares
  middlewares:
    # Basic auth for the dashboard
    BasicAuth:
      basicAuth:
        # Specify user and password (generator: https://www.web2generators.com/apache-tools/htpasswd-generator)
      users:
        - "user:password"

  # Define the services
  services:

    #PLEX Service
    PLEX:
      loadBalancer:
        # Backend URLs
        servers:
        - url: "http://ip:port"

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [January 3, 2022, 9:24pm UTC](https://community.traefik.io/t/traefik-v2-no-docker-router-error-acme-challenge-is-not-enabled/12870/11 "2022-01-03T21:24:24Z")

</div>

Closed on January 3, 2022, 9:24pm UTC

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