Error: Requesting acme-v01.api.letsencrypt.org/directory: No route to host. Skipping


#1

I have error
./letsencrypt-auto renew
->
error: Requesting acme-v01.api.letsencrypt.org/directory: No route to host. Skipping.

curl https://acme-v02.api.letsencrypt.org/directory
curl: (7) Failed to connect to acme-v02.api.letsencrypt.org port 443: Connection timed out

How to fix it,


#2

Hi @nguyenhoang999,

Could you please show the output of these commands?.

curl -Iv https://acme-v01.api.letsencrypt.org/directory 
curl -Iv https://acme-v02.api.letsencrypt.org/directory

Cheers,
sahsanu


#3

connect to 2001:ee0:3241:809c::3a8e port 443 failed: No route to host

traceroute -nT -p 443 104.67.56.30
traceroute to 104.67.56.30 (104.67.56.30), 30 hops max, 48 byte packets
1 112.213.86.1 0.772 ms 0.713 ms 0.769 ms
2 112.213.82.9 0.465 ms 0.808 ms 0.759 ms
3 118.69.216.41 1.402 ms 2.054 ms 2.025 ms
4 118.70.2.34 22.064 ms 23.199 ms 21.852 ms
5 123.29.16.73 23.454 ms 23.277 ms 22.986 ms
6 * * 113.171.5.9 22.930 ms
7 113.171.27.226 23.182 ms 21.627 ms 113.171.34.26 20.423 ms
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * *

Please unblock my IP: 103.7.43.215


#4

Vietnam and Akamai, name a more iconic duo.

What happens if you force IPv4?

curl -4 -Iv https://acme-v01.api.letsencrypt.org/directory

If that doesn’t work, what happens if you put this in /etc/hosts and try again:

104.97.250.189 acme-v01.api.letsencrypt.org

#5

Yeah Great, i add 104.97.250.189 acme-v01.api.letsencrypt.org in /etc/hosts, the problems has fixed
Thanks you very much


#6

Unfortunately that is not a long term solution, as the IP address will eventually change and stop working.

To confirm, IPv4-forcing curl request did not succeed (without the /etc/hosts workaround)? It is important to understand whether the problem is IPv6 related or a recurrence of previous Akamai Vietnam issues.


#7

Yes IP VPS in local VietNam
Thanks for help


#8

@nguyenhoang999
Could you temporarily comment out the changes to your /etc/hosts file and run the following commands? I’d like to pass this information along to the CDN.

mtr --no-dns -c100 --report https://acme-v01.api.letsencrypt.org
curl -4 -v -H 'Expect:' https://acme-v01.api.letsencrypt.org/directory -H "Pragma: akamai-x-cache-on, akamai-x-get-cache-key, akamai-x-get-true-cache-key, akamai-x-get-request-id"
curl -4 -v -X POST -H 'Expect:' https://acme-v01.api.letsencrypt.org/directory -H "Pragma: akamai-x-cache-on, akamai-x-get-cache-key, akamai-x-get-true-cache-key, akamai-x-get-request-id"