lego: desec: hangs forever at waiting for DNS record propagation
- Yes, I’m using a binary release within 2 latest releases.
- Yes, I’ve searched similar issues on GitHub and didn’t find any.
- Yes, I’ve included all information below (version, config, etc).
What did you expect to see?
I expected that lego would obtain a certificate once the DNS record was updated.
What did you see instead?
lego hangs forever at repeatedly “waiting for DNS record propagation” even though dig -tTXT _acme-challenge.mumble.artemislena.eu shows me that the record has been updated successfully already.
Steps to reproduce
- Install NixOS
git clone https://codeberg.org/FantasyCookie17/nixos-server-configs/ && cd nixos-server-configs && ./apply.sh mumbleNote: The relevant config from there is this:
security.acme = {
acceptTerms = true;
email = "fantasycookie17@artemislena.eu";
certs.mumble = {
domain = "mumble.artemislena.eu";
dnsProvider = "desec";
credentialsFile = "/etc/acme/desec";
postRun = "systemctl restart murmur";
group = "murmur";
};
};
- Change
security.acme.certs.mumble.domainto what you have on deSEC - Put something like this in
/etc/acme/desec:
DESEC_TOKEN=secret
DESEC_HTTP_TIMEOUT=60
DESEC_PROPAGATION_TIMEOUT=4200
DESEC_POLLING_INTERVAL=120
systemctl restart acme-mumble.service
Details
Version of lego
$ lego --version
lego version 4.3.1 linux/arm64
Logs
May 15 00:57:45 rock64-2g systemd[1]: Starting Renew ACME certificate for mumble...
May 15 00:57:45 rock64-2g acme-mumble-start[985]: + echo ac5ca4447a4f8a2d1d8b
May 15 00:57:45 rock64-2g acme-mumble-start[986]: ++ ls -1 accounts
May 15 00:57:45 rock64-2g acme-mumble-start[985]: + '[' -e certificates/mumble.artemislena.eu.key -a -e certificates/mumble.artemislena.eu.crt -a -n acme-v02.api.letsencrypt.org ']'
May 15 00:57:45 rock64-2g acme-mumble-start[985]: + lego --accept-tos --path . -d mumble.artemislena.eu --email fantasycookie17@artemislena.eu --key-type ec256 --dns desec run
May 15 00:57:46 rock64-2g acme-mumble-start[987]: 2021/05/15 00:57:46 [INFO] [mumble.artemislena.eu] acme: Obtaining bundled SAN certificate
May 15 00:57:47 rock64-2g acme-mumble-start[987]: 2021/05/15 00:57:47 [INFO] [mumble.artemislena.eu] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/13121589978
May 15 00:57:47 rock64-2g acme-mumble-start[987]: 2021/05/15 00:57:47 [INFO] [mumble.artemislena.eu] acme: Could not find solver for: tls-alpn-01
May 15 00:57:47 rock64-2g acme-mumble-start[987]: 2021/05/15 00:57:47 [INFO] [mumble.artemislena.eu] acme: Could not find solver for: http-01
May 15 00:57:47 rock64-2g acme-mumble-start[987]: 2021/05/15 00:57:47 [INFO] [mumble.artemislena.eu] acme: use dns-01 solver
May 15 00:57:47 rock64-2g acme-mumble-start[987]: 2021/05/15 00:57:47 [INFO] [mumble.artemislena.eu] acme: Preparing to solve DNS-01
May 15 00:57:47 rock64-2g acme-mumble-start[987]: 2021/05/15 00:57:47 [INFO] [mumble.artemislena.eu] acme: Trying to solve DNS-01
May 15 00:57:47 rock64-2g acme-mumble-start[987]: 2021/05/15 00:57:47 [INFO] [mumble.artemislena.eu] acme: Checking DNS record propagation using [192.168.1.1:53 [fd6c:337f:780f::1]:53]
May 15 00:59:47 rock64-2g acme-mumble-start[987]: 2021/05/15 00:59:47 [INFO] Wait for propagation [timeout: 1h10m0s, interval: 2m0s]
May 15 00:59:47 rock64-2g acme-mumble-start[987]: 2021/05/15 00:59:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:01:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:01:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:03:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:03:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:05:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:05:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:07:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:07:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:09:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:09:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:11:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:11:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:13:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:13:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:15:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:15:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:17:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:17:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:19:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:19:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
May 15 01:21:47 rock64-2g acme-mumble-start[987]: 2021/05/15 01:21:47 [INFO] [mumble.artemislena.eu] acme: Waiting for DNS record propagation.
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 3
- Comments: 18 (5 by maintainers)
Commits related to this issue
- less propagation checks https://github.com/go-acme/lego/issues/1406 — committed to BeryJu/acme-for-appliances by BeryJu 2 years ago
how is propagation checked in lego?
i’ve been waiting for a full day and https://www.whatsmydns.net/ tells me the record is available everywhere. however, lego still says “acme: Waiting for DNS record propagation.” which is suspeciously different from “Checking DNS record propagation using [8.8.8.8:53]” so i assume these are different, and the second isnt documented.
looking at the code, it seems to just query the authoritive nameservers, which in my case is gandi, all of which have the record.
in my case the issue was that lego is probing ipv6 nameservers on a machine that doesnt have an ipv6 router. dns.disable-cp worked.
How come lookups with other tools work just fine, then?
I now added
--dns.disable-cpto the flags, and it seems to work just fine (Mumble stopped complaining about the validity of the cert of my server), convincing me that there is indeed some kind of bug with how record propagation is checked for.