Recently rebooted HA and now can’t access from outside my network. Here’s my duckdns log:
# INFO: Using main config file /data/workdir/config
+ Account already registered!
[08:30:44] INFO: KO
# INFO: Using main config file /data/workdir/config
Processing xxxx.duckdns.org
+ Signing domains...
+ Generating private key...
+ Generating signing request...
+ Requesting new certificate order from CA...
+ Received 1 authorizations URLs from the CA
+ Handling authorization for xxxx.duckdns.org
+ 1 pending challenge(s)
+ Deploying challenge tokens...
KO + Responding to challenge for xxxx.duckdns.org authorization...
+ Cleaning challenge tokens...
KO + Challenge validation has failed :(
ERROR: Challenge is invalid! (returned: invalid) (result: {
"type": "dns-01",
"status": "invalid",
"error": {
"type": "urn:ietf:params:acme:error:unauthorized",
"detail": "Incorrect TXT record \"\" found at _acme-challenge.xxxx.duckdns.org",
"status": 403
},
"url": "https://acme-v02.api.letsencrypt.org/acme/chall-v3/1433547445/j1yZyQ",
"token": "kR8AQGBZ9WHiEbXkdCYaBA7NQn0XGUYdc68DKlVc4c8"
})
[08:36:24] INFO: KO
[08:41:25] INFO: KO
Not sure what to try. Any help would be appreciated!
ok i dont know how that happened but the token that was in that picture was NOT my duckdns token. I shut off duckdns and deleted the pic just for good measure. Just to check, before i shut it down I still couldnt get in. Im lost and more than a little bit concerned.
Here’s how I fixed it. I deleted fullchain.pem and privkey.pem from the ssl directory, then removed my domain from duckdns. Re-added the same domain and restarted the Duckdns add-on. The pem files were rebuilt and now everything is back.
I also solved it by deleting fullchain.pem and privkey.pem from the ssl directory, then removed my domain from duckdns. Re-added the same domain. The pem files however were rebuilt on a full system restart.
Hoping not getting the same problem again when the new cert expires in another three months…
Yeah, no luck! A few months down the line and the same problem occurs. This LetsEncrypt/DuckDNS in Home Assistant is broken for sure. Tried my own solution from last time around but now the interface is not coming back at all (not even on local network connection)! Now struggling with a totally broken HA server. This is a real bummer!
Half a day spent fixing HA (removed the lines in the http: section in configuration.yaml by using USB keyboard and my TV to use the undocumented “login” command) and then the certificate:
Removed all aliases from the DuckDNS config leaving only the original line:
aliases: []
Restarted DuckDNS and finally challenge was working. Then added the aliases section back, restarted DuckDNS again and now everything is back to normal (until december 21 when this will most likely happen again).
Super! I also have the calendar set to remind me in december. However, do we know where to report this apparent bug so it might be fixed for everyone before then? I looked last time but couldn’t find any forum for bug reporting.