Certbot error with certbot --apache command

I encounter a problem when I run the command: certbot --apache I get this error: root@Serveur-1-Machine-Web-1:/home/tagogue# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
(Enter 'c' to cancel): tagogueoff@gmail.com
An unexpected error occurred:
ValueError: Requesting acme-v02.api.letsencrypt.org/directory: Network is unreachable
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

I don't have a firewall on my machine and I opened the ports on my router before it worked and recently it no longer works.

Can you perhaps run the command:

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

and show the entire output?

1 Like

Yes and probably for thousands too as we speak. The IP addresses are also the same for me.

It seems your IPv4 and IPv6 are giving different errors.

Can you try the following commands?

traceroute -4 acme-v02.api.letsencrypt.org
traceroute -6 acme-v02.api.letsencrypt.org
traceroute -4 -T -p 443 acme-v02.api.letsencrypt.org
traceroute -6 -T -p 443 acme-v02.api.letsencrypt.org
1 Like

Is your IP address 172.1.2.1, i.e. is that your own router? Or is that the router of your ISP?

Also it's quite strange that 172.1.2.1 replies only after 3 (!!!) seconds (!!!) with the !H error (="host unreachable").

(Also, you probably don't have any IPv6 configured, correct?)

1 Like

With an IP address like this:

I think it is likely to blame for the IPv4 routing problem.
[unless your ISP is AT&T]
See: ARIN Whois/RDAP - American Registry for Internet Numbers

2 Likes

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