# requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Read timed out

**URL:** https://community.letsencrypt.org/t/requests-exceptions-readtimeout-httpsconnectionpool-host-acme-v02-api-letsencrypt-org-port-443-read-timed-out/112194
**Category:** Help
**Created:** [February 3, 2020, 2:19pm UTC](https://community.letsencrypt.org/t/requests-exceptions-readtimeout-httpsconnectionpool-host-acme-v02-api-letsencrypt-org-port-443-read-timed-out/112194 "2020-02-03T14:19:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![abulojoshua1](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@abulojoshua1](https://community.letsencrypt.org/u/abulojoshua1)
#### Post date: [February 3, 2020, 2:19pm UTC](https://community.letsencrypt.org/t/requests-exceptions-readtimeout-httpsconnectionpool-host-acme-v02-api-letsencrypt-org-port-443-read-timed-out/112194/1 "2020-02-03T14:19:10Z")

</div>

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. [https://crt.sh/?q=example.com](https://crt.sh/?q=example.com)), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: abulo.dev

I ran this command: certbot certonly --standalone -d abulo.dev

It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log  
Plugins selected: Authenticator standalone, Installer None  
Obtaining a new certificate  
An unexpected error occurred:  
Traceback (most recent call last):  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 387, in \_make\_request  
six.raise\_from(e, None)  
File “”, line 3, in raise\_from  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 383, in \_make\_request  
httplib\_response = conn.getresponse()  
File “/usr/lib/python3.6/http/client.py”, line 1346, in getresponse  
response.begin()  
File “/usr/lib/python3.6/http/client.py”, line 307, in begin  
version, status, reason = self.\_read\_status()  
File “/usr/lib/python3.6/http/client.py”, line 268, in \_read\_status  
line = str(self.fp.readline(\_MAXLINE + 1), “iso-8859-1”)  
File “/usr/lib/python3.6/socket.py”, line 586, in readinto  
return self.\_sock.recv\_into(b)  
File “/usr/lib/python3.6/ssl.py”, line 1012, in recv\_into  
return self.read(nbytes, buffer)  
File “/usr/lib/python3.6/ssl.py”, line 874, in read  
return self.\_sslobj.read(len, buffer)  
File “/usr/lib/python3.6/ssl.py”, line 631, in read  
v = self.\_sslobj.read(len, buffer)  
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/usr/lib/python3/dist-packages/requests/adapters.py”, line 440, in send  
timeout=timeout  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 639, in urlopen  
\_stacktrace=sys.exc\_info()[2])  
File “/usr/lib/python3/dist-packages/urllib3/util/retry.py”, line 367, in increment  
raise six.reraise(type(error), error, \_stacktrace)  
File “/usr/lib/python3/dist-packages/six.py”, line 693, in reraise  
raise value  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 601, in urlopen  
chunked=chunked)  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 389, in \_make\_request  
self.\_raise\_timeout(err=e, url=url, timeout\_value=read\_timeout)  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 309, in \_raise\_timeout  
raise ReadTimeoutError(self, url, “Read timed out. (read timeout=%s)” % timeout\_value)  
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘[acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org)’, port=443): Read timed out. (read timeout=45)

During handling of the above exception, another exception occurred:

requests.exceptions.ReadTimeout: HTTPSConnectionPool(host=‘[acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org)’, port=443): Read timed out. (read timeout=45)  
Please see the logfiles in /var/log/letsencrypt for more details.

My web server is (include version): Nginx

The operating system my web server runs on is (include version): Ubuntu 18.04.2 LTS

I can login to a root shell on my machine

The version of my client is certbot 0.31.0:

---

<div class="post-metadata">

### Author: ![stevenzhu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/stevenzhu/32/18864_2.png) [@stevenzhu](https://community.letsencrypt.org/u/stevenzhu)
#### Post date: [February 3, 2020, 2:57pm UTC](https://community.letsencrypt.org/t/requests-exceptions-readtimeout-httpsconnectionpool-host-acme-v02-api-letsencrypt-org-port-443-read-timed-out/112194/2 "2020-02-03T14:57:55Z")

</div>

Hi,

Could you please run the below test and see if you can access Let’s Encrypt API server?

(Please post the full response content here)  
`curl -i -v https://acme-v02.api.letsencrypt.org/`  
`dig acme-v02.api.letsencrypt.org`  
`ping acme-v02.api.letsencrypt.org`

Thank you

---

<div class="post-metadata">

### Author: ![abulojoshua1](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@abulojoshua1](https://community.letsencrypt.org/u/abulojoshua1)
#### Post date: [February 3, 2020, 3:15pm UTC](https://community.letsencrypt.org/t/requests-exceptions-readtimeout-httpsconnectionpool-host-acme-v02-api-letsencrypt-org-port-443-read-timed-out/112194/3 "2020-02-03T15:15:48Z")

</div>

@stevenzhu, when I ran the above on the server’s terminal, all looks good, I can connect and receive back bytes with the ping. I only get the connection error when I attempt to get the SSL certificate.

---

<div class="post-metadata">

### Author: ![stevenzhu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/stevenzhu/32/18864_2.png) [@stevenzhu](https://community.letsencrypt.org/u/stevenzhu)
#### Post date: [February 3, 2020, 3:18pm UTC](https://community.letsencrypt.org/t/requests-exceptions-readtimeout-httpsconnectionpool-host-acme-v02-api-letsencrypt-org-port-443-read-timed-out/112194/4 "2020-02-03T15:18:20Z")

</div>

Hi,

Can you try to see if the below solution is also working for you?

> [@Cannot get new certificate, readtimeout error](https://community.letsencrypt.org/t/cannot-get-new-certificate-readtimeout-error/94586/10):
>
> Y…

Thank you

---

<div class="post-metadata">

### Author: ![mnordhoff](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mnordhoff/32/22583_2.png) [@mnordhoff](https://community.letsencrypt.org/u/mnordhoff)
#### Post date: [February 3, 2020, 5:14pm UTC](https://community.letsencrypt.org/t/requests-exceptions-readtimeout-httpsconnectionpool-host-acme-v02-api-letsencrypt-org-port-443-read-timed-out/112194/5 "2020-02-03T17:14:52Z")

</div>

Note that hardcoding IP addresses like that will no longer work – the API uses different infrastructure now, which uses anycast routing and IPs that do not change frequently.

It does potentially sound like an MTU issue, though.

Can you post `/var/log/letsencrypt/letsencrypt.log` from when the issue happened and before it?

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)
#### Post date: [March 4, 2020, 5:14pm UTC](https://community.letsencrypt.org/t/requests-exceptions-readtimeout-httpsconnectionpool-host-acme-v02-api-letsencrypt-org-port-443-read-timed-out/112194/6 "2020-03-04T17:14:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
