At first I thought this was a problem introduced by a recent firewall change (and putting all port http requests though a proxy). But even if I turn off the firewall I get this problem.
It used to work in the past - but now it doesn’t!
My domain is: alice.hatters.org.uk
I ran this command (daily cronjob /etc/cron.d/certbot):
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew -i apache -a apache/etc/cron.d/certbot
It produced this output:
2019-09-08 09:07:45,267:DEBUG:certbot.plugins.selection:Selected authenticator <certbot.plugins.webroot.Authenticator object at 0x7f886d64d080> and installer None
2019-09-08 09:07:45,268:INFO:certbot.plugins.selection:Plugins selected: Authenticator webroot, Installer None
2019-09-08 09:07:45,270:DEBUG:certbot.main:Picked account: <Account(RegistrationResource(body=Registration(key=None, contact=(), agreement=None, status=None, terms_of_service_agreed=None, only_return_existing=None, external_account_binding=None), uri='https://acme-v01.api.letsencrypt.org/acme/reg/308104', new_authzr_uri=None, terms_of_service=None), 673298e24fb1e70065be14007c4535ca, Meta(creation_dt=datetime.datetime(2016, 1, 24, 15, 4, 50, tzinfo=<UTC>), creation_host='770b6b6a9c37'))>
2019-09-08 09:07:45,271:DEBUG:acme.client:Sending GET request to https://acme-v02.api.letsencrypt.org/directory.
2019-09-08 09:07:45,273:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): [acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org/)
2019-09-08 09:07:48,600:WARNING:certbot.renewal:Attempting to renew cert (alice.hatters.org.uk) from /etc/letsencrypt/renewal/alice.hatters.org.uk.conf produced an unexpected error: Requesting [acme-v02.api.letsencrypt.org/directory](http://acme-v02.api.letsencrypt.org/directory): Connection refused. Skipping.
2019-09-08 09:07:48,604:DEBUG:certbot.renewal:Traceback was:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 141, in _new_conn (self.host, self.port), self.timeout, **extra_kw)
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 83, in create_connection raise err
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
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 346, in _make_request self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 284, in connect conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 150, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f886d61f978>: Failed to establish a new connection: [Errno 111] Connection refused
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
My web server is (include version):
Apache 2.4.29
The operating system my web server runs on is (include version):
Ubuntu 18.04.3
My hosting provider , if applicable, is:
Jump Networks Ltd
I can login to a root shell on my machine (yes or no, or I don’t know):
Yes
I’m not using a control panel
The version of my client :
0.31.0