The operating system is (include version): Ubuntu 14.04.5 LXC
I have a cron job with the following command: 0 10 * * * root certbot -q renew
I have the following error:
error: HTTPSConnectionPool(host='acme-v01.api.letsencrypt.org', port=443): Max retries exceeded with url:
+/directory (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection
+object at 0x7f00f8d7a5d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)).
+Skipping.
If I run certbot -q renew from console shell, I can renew a cert without any problem.
Whenever this error has come up in the past, it’s always related to some kind of firewall, including a host-based firewall, that limits the ability of software on the computer to make outbound connections. Are you positive that you don’t have any kind of software that controls other software’s ability to make outbound network connections from your server?