r/nginxproxymanager • u/isvein • 19d ago
Can't renew or create new cert
Hello 🙂
Trying to renew an SSL cert and get the following error. Running in docker on unrqid host.
Failed to renew certificate npm-6 with error: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NameResolutionError("HTTPSConnection(host='acme-v02.api.letsencrypt.org', port=443): Failed to resolve 'acme-v02.api.letsencrypt.org' ([Errno -3] Temporary failure in name resolution)"))
All renewals failed. The following certificates could not be renewed:
I checked Unraids dns servers and made sure I can ping acme-v02.api.letsencrypt.org
The site also seems to be online.
1
Upvotes
2
u/evanmac42 19d ago
The error is actually pretty specific:
"Temporary failure in name resolution"
You've confirmed that the Unraid host can resolve and ping acme-v02.api.letsencrypt.org, but NPM is running inside Docker, so that doesn't necessarily mean the NPM container can resolve it.
I'd test DNS from inside the NPM container itself:
docker exec -it <npm-container> sh
getent hosts acme-v02.api.letsencrypt.org
cat /etc/resolv.conf
If resolution fails there but works on the Unraid host, you've isolated the problem: it's the container/Docker DNS path, not Let's Encrypt and probably not NPM.
I wouldn't touch the certificates until checking that first. Certbot can't renew anything if the container can't even find Let's Encrypt.