# Certbot: Challenge failed for domain

**URL:** <https://community.letsencrypt.org/t/certbot-challenge-failed-for-domain/135278>\
**Category:** Help\
**Created:** [October 5, 2020, 1:53pm UTC](https://community.letsencrypt.org/t/certbot-challenge-failed-for-domain/135278 "2020-10-05T13:53:37Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![hamged](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hamged](https://community.letsencrypt.org/u/hamged)\
**Post date:** [October 7, 2020, 7:11am UTC](https://community.letsencrypt.org/t/certbot-challenge-failed-for-domain/135278/12 "2020-10-07T07:11:00Z")

</div>

It seems an error occurred on that command:

Saving debug log to /var/log/letsencrypt/letsencrypt.log  
Plugins selected: Authenticator webroot, Installer apache  
An unexpected error occurred:  
Traceback (most recent call last):  
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 156, in \_new\_conn  
conn = connection.create\_connection(  
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 61, in create\_connection  
for res in socket.getaddrinfo(host, port, family, socket.SOCK\_STREAM):  
File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo  
for res in \_socket.getaddrinfo(host, port, family, type, proto, flags):  
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen  
httplib\_response = self.\_make\_request(  
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in \_make\_request  
self.\_validate\_conn(conn)  
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in \_validate\_conn  
conn.connect()  
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 300, in connect  
conn = self.\_new\_conn()  
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in \_new\_conn  
raise NewConnectionError(  
urllib3.exceptions.NewConnectionError: \<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9da89c4250\>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send  
resp = conn.urlopen(  
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen  
retries = retries.increment(  
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment  
raise MaxRetryError(\_pool, url, error or ResponseError(cause))  
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='[acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org)', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('\<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9da89c4250\>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='[acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org)', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('\<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9da89c4250\>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))  
Please see the logfiles in /var/log/letsencrypt for more details.

---

_[View the full topic](https://community.letsencrypt.org/t/certbot-challenge-failed-for-domain/135278)._
