My domain is: lemmyslab.duckdns.org
I installed Nginx proxy manager in a docker container on my home server.
I got a domain from duckdns.org (lemmyslab.duckdns.org).
I followed along with this youtube tutorial to set up let's encrypt for my home server ip adress (https://www.youtube.com/watch?v=qlcVx-k-02E). I did everything as mentioned, but when I want to generate the certificate I get the following errors:
Sometimes this:
Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-25" --agree-tos --email "weihrauch.business@gmail.com" --domains "lemmyslab.duckdns.org" --authenticator dns-duckdns --dns-duckdns-credentials "/etc/letsencrypt/credentials/credentials-25" --dns-duckdns-propagation-seconds 120
Saving debug log to /tmp/letsencrypt-log/letsencrypt.log
The resolution lifetime expired after 5.403 seconds: Server 127.0.0.11 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.11 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.11 UDP port 53 answered The DNS operation timed out.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.
at ChildProcess.exithandler (node:child_process:402:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1100:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
And sometimes this:
Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-21" --agree-tos --email "weihrauch.business@gmail.com" --domains "lemmyslab.duckdns.org" --authenticator dns-duckdns --dns-duckdns-credentials "/etc/letsencrypt/credentials/credentials-21" --dns-duckdns-propagation-seconds 120
Saving debug log to /tmp/letsencrypt-log/letsencrypt.log
Encountered exception during recovery: certbot.errors.PluginError: HTTPSConnectionPool(host='www.duckdns.org', port=443): Max retries exceeded with url: /update?token=redacted&domains=lemmyslab.duckdns.org&txt=&clear=true (Caused by NameResolutionError(": Failed to resolve 'www.duckdns.org' ([Errno -2] Name or service not known)"))
The resolution lifetime expired after 5.403 seconds: Server 127.0.0.11 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.11 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.11 UDP port 53 answered The DNS operation timed out.
Ask for help or search for solutions at https://community.letsencrypt.org/. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.
at ChildProcess.exithandler (node:child_process:402:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1100:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
I put my ip into the duckdns ip field and used the api key for the DNS Challange within nginx proxy manager.
I also exposed the ports 80, 81 and 443 in my docker compose file.
Could this be a problem with my router?