caddy-dns / namecheap

37 stars 4 forks source link

Error: "solving challenges: waiting for solver certmagic.solverWrapper to be ready: timed out waiting for record to fully propagate; verify DNS provider configuration is correct - last error: <nil> #6

Open jleaders opened 1 year ago

jleaders commented 1 year ago

I am creating this issue merely to document the solution.

I kept getting this error:

Error: "solving challenges: waiting for solver certmagic.solverWrapper to be ready: timed out waiting for record to fully propagate; verify DNS provider configuration is correct - last error: <nil>

I solved this issue by adding resolvers and wiping leftover challenges:

tls {
    dns namecheap { ... }
    resolvers 1.1.1.1 1.0.0.1
}

Final caddyfile

# requires https://github.com/caddy-dns/namecheap
(namecheap_ssl) {
tls {
        dns namecheap {
          api_key ***************
          user ***************
          client_ip my_server_public_ip
          endpoint https://api.namecheap.com/xml.response
        }
        resolvers 1.1.1.1 1.0.0.1
    }
}
https://app.example.com {
  reverse_proxy localhost:8484
  import namecheap_ssl
}

I had to delete the leftover acme-challenges from the namecheap web dashboard before restarting caddy