I am really puzzlled by a certificate renewal issue. I used to have a service that was using .org domain name. At some point we decided to move to .net
domain name instead. After I moved the service over, Traefiks' LE renewal is still trying to renew the wrong certificate.
See this error message and tell me its not confusing to you too:
traefik | time="2021-10-29T00:30:46Z" level=info msg="Renewing certificate from LE : {Main:support.resonancehealth.net SANs:[]}" providerName=letsEncrypt.acme
traefik | time="2021-10-29T00:30:51Z" level=error msg="Error renewing certificate from LE: {support.resonancehealth.net []}, error: one or more domains had a problem:\n[support.resonancehealth.org] acme: error: 400 :: urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for support.resonancehealth.org - check that a DNS record exists for this domain\n" providerName=letsEncrypt.acme
As you can see, the error message starts out by telling us its going to renew the .net
domain, but then it proceeds to complaining about the DNS issue with the .org
at the end.
How does this make any sense. I am posting the docker definition (labels) section of the freescout service I'm trying to host:
labels:
- "traefik.enable=true"
- "traefik.http.routers.freescout-app.rule=Host(`support.resonancehealth.net`)"
- "traefik.http.services.freescout-app.loadbalancer.server.port=80"
- "traefik.http.routers.freescout-app.tls.certresolver=letsEncrypt"