Need help, ip got blocked?

Senior developers, I apologize for the stupid situation. An unfinished project was moved from development to implementation, where a certificate renewal timer was created and failed for several months when it came to implementation.

https://lk.qr.orgp.spb.ru/
https://admin.qr.orgp.spb.ru/
https://api.qr.orgp.spb.ru/
5.183.28.78

I removed the timer, I will try to change the possibilities of false and private documents.

P.S.

2022-08-22 05:12:20,686:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2022-08-22 05:12:20,990:DEBUG:certbot._internal.main:certbot version: 1.29.0
2022-08-22 05:12:20,990:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/2192/bin/certbot
2022-08-22 05:12:20,990:DEBUG:certbot._internal.main:Arguments: ['--standalone', '--preferred-challenges', 'http', '-d', 'lktest.qr.orgp.spb.ru', '--preconfigured-renewal']
2022-08-22 05:12:20,990:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-08-22 05:12:21,002:DEBUG:certbot._internal.log:Root logging level set at 30
2022-08-22 05:12:21,002:DEBUG:certbot._internal.plugins.selection:Requested authenticator standalone and installer None
2022-08-22 05:12:21,005:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * standalone
Description: Spin up a temporary webserver
Interfaces: Authenticator, Plugin
Entry point: standalone = certbot._internal.plugins.standalone:Authenticator
Initialized: <certbot._internal.plugins.standalone.Authenticator object at 0x7ff087159ca0>
Prep: True
2022-08-22 05:12:21,005:DEBUG:certbot._internal.plugins.selection:Selected authenticator <certbot._internal.plugins.standalone.Authenticator object at 0x7ff087159ca0> and installer None
2022-08-22 05:12:21,005:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator standalone, Installer None
2022-08-22 05:12:21,011:DEBUG:certbot._internal.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-v02.api.letsencrypt.org/acme/acct/604778366', new_authzr_uri=None, terms_of_service=None), 9e2be746177615d3f3d553daba8b3dd4, Meta(creation_dt=datetime.datetime(2022, 6, 25, 13, 18, 20, tzinfo=<UTC>), creation_host='qr-gwnat1.mos.orgp.ru', register_to_eff=None))>
2022-08-22 05:12:21,012:DEBUG:acme.client:Sending GET request to https://acme-v02.api.letsencrypt.org/directory.
2022-08-22 05:12:21,013:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org:443
2022-08-22 05:12:21,394:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 1348, in getresponse
    response.begin()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 316, in begin
    version, status, reason = self._read_status()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 277, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 440, in send
    resp = conn.urlopen(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 1348, in getresponse
    response.begin()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 316, in begin
    version, status, reason = self._read_status()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 277, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/snap/certbot/2192/bin/certbot", line 8, in <module>
    sys.exit(main())
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/main.py", line 19, in main
    return internal_main.main(cli_args)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 1744, in main
    return config.func(config, plugins)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 1573, in certonly
    le_client = _init_le_client(config, auth, installer)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 832, in _init_le_client
    return client.Client(config, acc, authenticator, installer, acme=acme)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 311, in __init__
    acme = acme_from_config_key(config, self.account.key, self.account.regr)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 76, in acme_from_config_key
    client = acme_client.BackwardsCompatibleClientV2(net, key, config.server)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 880, in __init__
    directory = messages.Directory.from_json(net.get(server).json())
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1242, in get
    self._send_request('GET', url, **kwargs), content_type=content_type)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1180, in _send_request
    response = self.session.request(method, url, *args, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 501, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2022-08-22 05:12:21,396:ERROR:certbot._internal.log:An unexpected error occurred:
2022-08-22 05:12:21,396:ERROR:certbot._internal.log:requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

certbot renew --dry-run

2022-08-22 05:21:35,859:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2022-08-22 05:21:36,163:DEBUG:certbot._internal.main:certbot version: 1.29.0
2022-08-22 05:21:36,163:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/2192/bin/certbot
2022-08-22 05:21:36,163:DEBUG:certbot._internal.main:Arguments: ['--dry-run', '--preconfigured-renewal']
2022-08-22 05:21:36,163:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-08-22 05:21:36,175:DEBUG:certbot._internal.log:Root logging level set at 30
2022-08-22 05:21:36,175:DEBUG:certbot._internal.display.obj:Notifying user: Processing /etc/letsencrypt/renewal/admin.qr.orgp.spb.ru.conf
2022-08-22 05:21:36,194:DEBUG:certbot._internal.plugins.selection:Requested authenticator <certbot._internal.cli.cli_utils._Default object at 0x7feab2b0bc40> and installer <certbot._internal.cli.cli_utils._Default object at 0x7feab2b0bc40>
2022-08-22 05:21:36,194:DEBUG:certbot._internal.cli:Var dry_run=True (set by user).
2022-08-22 05:21:36,194:DEBUG:certbot._internal.cli:Var server={'dry_run', 'staging'} (set by user).
2022-08-22 05:21:36,194:DEBUG:certbot._internal.cli:Var dry_run=True (set by user).
2022-08-22 05:21:36,194:DEBUG:certbot._internal.cli:Var server={'dry_run', 'staging'} (set by user).
2022-08-22 05:21:36,194:DEBUG:certbot._internal.cli:Var account={'server'} (set by user).
2022-08-22 05:21:36,211:DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): r3.o.lencr.org:80
2022-08-22 05:21:46,260:INFO:certbot.ocsp:OCSP check failed for /etc/letsencrypt/archive/admin.qr.orgp.spb.ru/cert1.pem (are we offline?)
Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 1348, in getresponse
    response.begin()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 316, in begin
    version, status, reason = self._read_status()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 277, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 440, in send
    resp = conn.urlopen(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/packages/six.py", line 770, in reraise
    raise value
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 451, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 340, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='r3.o.lencr.org', port=80): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/ocsp.py", line 173, in _check_ocsp_cryptography
    response = requests.post(url, data=request_binary,
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 532, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='r3.o.lencr.org', port=80): Read timed out. (read timeout=10)
2022-08-22 05:21:46,264:INFO:certbot._internal.renewal:Certificate not due for renewal, but simulating renewal for dry run
2022-08-22 05:21:46,264:DEBUG:certbot._internal.plugins.selection:Requested authenticator standalone and installer None
2022-08-22 05:21:46,266:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * standalone
Description: Spin up a temporary webserver
Interfaces: Authenticator, Plugin
Entry point: standalone = certbot._internal.plugins.standalone:Authenticator
Initialized: <certbot._internal.plugins.standalone.Authenticator object at 0x7feab2ad3fd0>
Prep: True
2022-08-22 05:21:46,266:DEBUG:certbot._internal.plugins.selection:Selected authenticator <certbot._internal.plugins.standalone.Authenticator object at 0x7feab2ad3fd0> and installer None
2022-08-22 05:21:46,267:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator standalone, Installer None
2022-08-22 05:21:46,272:DEBUG:certbot._internal.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-staging-v02.api.letsencrypt.org/acme/acct/58639314', new_authzr_uri=None, terms_of_service=None), 320b8d8d33ffbf76e6f4b6e9bb890115, Meta(creation_dt=datetime.datetime(2022, 6, 25, 13, 32, 12, tzinfo=<UTC>), creation_host='qr-gwnat1.mos.orgp.ru', register_to_eff=None))>
2022-08-22 05:21:46,273:DEBUG:acme.client:Sending GET request to https://acme-staging-v02.api.letsencrypt.org/directory.
2022-08-22 05:21:46,274:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-staging-v02.api.letsencrypt.org:443
2022-08-22 05:21:46,328:ERROR:certbot._internal.renewal:Failed to renew certificate admin.qr.orgp.spb.ru with error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2022-08-22 05:21:46,330:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
    conn.connect()
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connection.py", line 416, in connect
    self.sock = ssl_wrap_socket(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 440, in send
    resp = conn.urlopen(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
    conn.connect()
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connection.py", line 416, in connect
    self.sock = ssl_wrap_socket(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/renewal.py", line 484, in handle_renewal_request
    main.renew_cert(lineage_config, plugins, renewal_candidate)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 1539, in renew_cert
    le_client = _init_le_client(config, auth, installer)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 832, in _init_le_client
    return client.Client(config, acc, authenticator, installer, acme=acme)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 311, in __init__
    acme = acme_from_config_key(config, self.account.key, self.account.regr)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 76, in acme_from_config_key
    client = acme_client.BackwardsCompatibleClientV2(net, key, config.server)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 880, in __init__
    directory = messages.Directory.from_json(net.get(server).json())
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1242, in get
    self._send_request('GET', url, **kwargs), content_type=content_type)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1180, in _send_request
    response = self.session.request(method, url, *args, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 501, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

2022-08-22 05:21:46,331:DEBUG:certbot._internal.display.obj:Notifying user: Processing /etc/letsencrypt/renewal/api.qr.orgp.spb.ru.conf
2022-08-22 05:21:46,331:DEBUG:certbot._internal.cli:Var dry_run=True (set by user).
2022-08-22 05:21:46,331:DEBUG:certbot._internal.cli:Var server={'dry_run', 'staging'} (set by user).
2022-08-22 05:21:46,331:DEBUG:certbot._internal.cli:Var dry_run=True (set by user).
2022-08-22 05:21:46,331:DEBUG:certbot._internal.cli:Var server={'dry_run', 'staging'} (set by user).
2022-08-22 05:21:46,331:DEBUG:certbot._internal.cli:Var account={'server'} (set by user).
2022-08-22 05:21:46,348:DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): r3.o.lencr.org:80
2022-08-22 05:21:46,405:DEBUG:urllib3.connectionpool:http://r3.o.lencr.org:80 "POST / HTTP/1.1" 200 503
2022-08-22 05:21:46,406:DEBUG:certbot.ocsp:OCSP response for certificate /etc/letsencrypt/archive/api.qr.orgp.spb.ru/cert1.pem is signed by the certificate's issuer.
2022-08-22 05:21:46,406:DEBUG:certbot.ocsp:OCSP certificate status for /etc/letsencrypt/archive/api.qr.orgp.spb.ru/cert1.pem is: OCSPCertStatus.GOOD
2022-08-22 05:21:46,406:INFO:certbot._internal.renewal:Certificate not due for renewal, but simulating renewal for dry run
2022-08-22 05:21:46,406:DEBUG:certbot._internal.plugins.selection:Requested authenticator standalone and installer None
2022-08-22 05:21:46,409:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * standalone
Description: Spin up a temporary webserver
Interfaces: Authenticator, Plugin
Entry point: standalone = certbot._internal.plugins.standalone:Authenticator
Initialized: <certbot._internal.plugins.standalone.Authenticator object at 0x7feab2ad3250>
Prep: True
2022-08-22 05:21:46,409:DEBUG:certbot._internal.plugins.selection:Selected authenticator <certbot._internal.plugins.standalone.Authenticator object at 0x7feab2ad3250> and installer None
2022-08-22 05:21:46,409:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator standalone, Installer None
2022-08-22 05:21:46,414:DEBUG:certbot._internal.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-staging-v02.api.letsencrypt.org/acme/acct/58639314', new_authzr_uri=None, terms_of_service=None), 320b8d8d33ffbf76e6f4b6e9bb890115, Meta(creation_dt=datetime.datetime(2022, 6, 25, 13, 32, 12, tzinfo=<UTC>), creation_host='qr-gwnat1.mos.orgp.ru', register_to_eff=None))>
2022-08-22 05:21:46,414:DEBUG:acme.client:Sending GET request to https://acme-staging-v02.api.letsencrypt.org/directory.
2022-08-22 05:21:46,415:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-staging-v02.api.letsencrypt.org:443
2022-08-22 05:21:47,028:DEBUG:urllib3.connectionpool:https://acme-staging-v02.api.letsencrypt.org:443 "GET /directory HTTP/1.1" 200 836
2022-08-22 05:21:47,029:DEBUG:acme.client:Received response:
HTTP 200
Server: nginx
Date: Mon, 22 Aug 2022 09:21:46 GMT
Content-Type: application/json
Content-Length: 836
Connection: keep-alive
Cache-Control: public, max-age=0, no-cache
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800

{
  "_ZhVzXhT0HA": "https://community.letsencrypt.org/t/adding-random-entries-to-the-directory/33417",
  "keyChange": "https://acme-staging-v02.api.letsencrypt.org/acme/key-change",
  "meta": {
    "caaIdentities": [
      "letsencrypt.org"
    ],
    "termsOfService": "https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017-w-v1.3-notice.pdf",
    "website": "https://letsencrypt.org/docs/staging-environment/"
  },
  "newAccount": "https://acme-staging-v02.api.letsencrypt.org/acme/new-acct",
  "newNonce": "https://acme-staging-v02.api.letsencrypt.org/acme/new-nonce",
  "newOrder": "https://acme-staging-v02.api.letsencrypt.org/acme/new-order",
  "renewalInfo": "https://acme-staging-v02.api.letsencrypt.org/get/draft-aaron-ari/renewalInfo/",
  "revokeCert": "https://acme-staging-v02.api.letsencrypt.org/acme/revoke-cert"
}
2022-08-22 05:21:47,029:DEBUG:certbot._internal.display.obj:Notifying user: Simulating renewal of an existing certificate for api.qr.orgp.spb.ru
2022-08-22 05:21:47,161:DEBUG:acme.client:Requesting fresh nonce
2022-08-22 05:21:47,162:DEBUG:acme.client:Sending HEAD request to https://acme-staging-v02.api.letsencrypt.org/acme/new-nonce.
2022-08-22 05:21:47,170:ERROR:certbot._internal.renewal:Failed to renew certificate api.qr.orgp.spb.ru with error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2022-08-22 05:21:47,171:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 1348, in getresponse
    response.begin()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 316, in begin
    version, status, reason = self._read_status()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 277, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 440, in send
    resp = conn.urlopen(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 1348, in getresponse
    response.begin()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 316, in begin
    version, status, reason = self._read_status()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 277, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/renewal.py", line 484, in handle_renewal_request
    main.renew_cert(lineage_config, plugins, renewal_candidate)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 1541, in renew_cert
    renewed_lineage = _get_and_save_cert(le_client, config, lineage=lineage)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 129, in _get_and_save_cert
    renewal.renew_cert(config, domains, le_client, lineage)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/renewal.py", line 344, in renew_cert
    new_cert, new_chain, new_key, _ = le_client.obtain_certificate(domains, new_key)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 442, in obtain_certificate
    orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 492, in _get_order_and_authorizations
    orderr = self.acme.new_order(csr_pem)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 942, in new_order
    return cast(ClientV2, self.client).new_order(csr_pem)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 703, in new_order
    response = self._post(self.directory['newOrder'], order)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 103, in _post
    return self.net.post(*args, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1275, in post
    return self._post_once(*args, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1286, in _post_once
    data = self._wrap_in_jws(obj, self._get_nonce(url, new_nonce_url), url, acme_version)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1263, in _get_nonce
    response = self._check_response(self.head(new_nonce_url), content_type=None)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1236, in head
    return self._send_request('HEAD', *args, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1180, in _send_request
    response = self.session.request(method, url, *args, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 501, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

2022-08-22 05:21:47,171:DEBUG:certbot._internal.display.obj:Notifying user: Processing /etc/letsencrypt/renewal/lk.qr.orgp.spb.ru.conf
2022-08-22 05:21:47,172:DEBUG:certbot._internal.cli:Var dry_run=True (set by user).
2022-08-22 05:21:47,172:DEBUG:certbot._internal.cli:Var server={'dry_run', 'staging'} (set by user).
2022-08-22 05:21:47,172:DEBUG:certbot._internal.cli:Var dry_run=True (set by user).
2022-08-22 05:21:47,172:DEBUG:certbot._internal.cli:Var server={'dry_run', 'staging'} (set by user).
2022-08-22 05:21:47,172:DEBUG:certbot._internal.cli:Var account={'server'} (set by user).
2022-08-22 05:21:47,188:DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): r3.o.lencr.org:80
2022-08-22 05:21:47,240:DEBUG:urllib3.connectionpool:http://r3.o.lencr.org:80 "POST / HTTP/1.1" 200 503
2022-08-22 05:21:47,240:DEBUG:certbot.ocsp:OCSP response for certificate /etc/letsencrypt/archive/lk.qr.orgp.spb.ru/cert1.pem is signed by the certificate's issuer.
2022-08-22 05:21:47,241:DEBUG:certbot.ocsp:OCSP certificate status for /etc/letsencrypt/archive/lk.qr.orgp.spb.ru/cert1.pem is: OCSPCertStatus.GOOD
2022-08-22 05:21:47,241:INFO:certbot._internal.renewal:Certificate not due for renewal, but simulating renewal for dry run
2022-08-22 05:21:47,241:DEBUG:certbot._internal.plugins.selection:Requested authenticator standalone and installer None
2022-08-22 05:21:47,243:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * standalone
Description: Spin up a temporary webserver
Interfaces: Authenticator, Plugin
Entry point: standalone = certbot._internal.plugins.standalone:Authenticator
Initialized: <certbot._internal.plugins.standalone.Authenticator object at 0x7feab2b06a30>
Prep: True
2022-08-22 05:21:47,243:DEBUG:certbot._internal.plugins.selection:Selected authenticator <certbot._internal.plugins.standalone.Authenticator object at 0x7feab2b06a30> and installer None
2022-08-22 05:21:47,243:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator standalone, Installer None
2022-08-22 05:21:47,249:DEBUG:certbot._internal.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-staging-v02.api.letsencrypt.org/acme/acct/58639314', new_authzr_uri=None, terms_of_service=None), 320b8d8d33ffbf76e6f4b6e9bb890115, Meta(creation_dt=datetime.datetime(2022, 6, 25, 13, 32, 12, tzinfo=<UTC>), creation_host='qr-gwnat1.mos.orgp.ru', register_to_eff=None))>
2022-08-22 05:21:47,249:DEBUG:acme.client:Sending GET request to https://acme-staging-v02.api.letsencrypt.org/directory.
2022-08-22 05:21:47,250:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-staging-v02.api.letsencrypt.org:443
2022-08-22 05:21:47,632:ERROR:certbot._internal.renewal:Failed to renew certificate lk.qr.orgp.spb.ru with error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2022-08-22 05:21:47,633:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 1348, in getresponse
    response.begin()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 316, in begin
    version, status, reason = self._read_status()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 277, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 440, in send
    resp = conn.urlopen(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 1348, in getresponse
    response.begin()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 316, in begin
    version, status, reason = self._read_status()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 277, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/renewal.py", line 484, in handle_renewal_request
    main.renew_cert(lineage_config, plugins, renewal_candidate)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 1539, in renew_cert
    le_client = _init_le_client(config, auth, installer)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 832, in _init_le_client
    return client.Client(config, acc, authenticator, installer, acme=acme)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 311, in __init__
    acme = acme_from_config_key(config, self.account.key, self.account.regr)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 76, in acme_from_config_key
    client = acme_client.BackwardsCompatibleClientV2(net, key, config.server)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 880, in __init__
    directory = messages.Directory.from_json(net.get(server).json())
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1242, in get
    self._send_request('GET', url, **kwargs), content_type=content_type)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1180, in _send_request
    response = self.session.request(method, url, *args, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 501, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

2022-08-22 05:21:47,633:DEBUG:certbot._internal.display.obj:Notifying user: 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2022-08-22 05:21:47,633:ERROR:certbot._internal.renewal:All simulated renewals failed. The following certificates could not be renewed:
2022-08-22 05:21:47,633:ERROR:certbot._internal.renewal:  /etc/letsencrypt/live/admin.qr.orgp.spb.ru/fullchain.pem (failure)
  /etc/letsencrypt/live/api.qr.orgp.spb.ru/fullchain.pem (failure)
  /etc/letsencrypt/live/lk.qr.orgp.spb.ru/fullchain.pem (failure)
2022-08-22 05:21:47,633:DEBUG:certbot._internal.display.obj:Notifying user: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2022-08-22 05:21:47,633:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
  File "/snap/certbot/2192/bin/certbot", line 8, in <module>
    sys.exit(main())
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/main.py", line 19, in main
    return internal_main.main(cli_args)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 1744, in main
    return config.func(config, plugins)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 1630, in renew
    renewal.handle_renewal_request(config)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/renewal.py", line 510, in handle_renewal_request
    raise errors.Error(
certbot.errors.Error: 3 renew failure(s), 0 parse failure(s)
2022-08-22 05:21:47,633:ERROR:certbot._internal.log:3 renew failure(s), 0 parse failure(s)

I want use this command

certbot certonly --standalone --preferred-challenges http -d lktest.qr.orgp.spb.ru

and have error all time

Saving debug log to /var/log/letsencrypt/letsencrypt.log
An unexpected error occurred:
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
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 have a floating problem and breaks in the work of cerbot in a random place, each time a different filling of the error. Anyone who can help please post.

The same problem is observed on another ip ISP.
5.183.28.76

Your problem looks very different than the other thread you posted on. And, the commands from that other problem are not the best for your case. Please keep your comments about your problem in this thread.

Your first request to the Let's Encrypt endpoint fails. Can you show result of these commands? You only need to show the first few lines of output for each.

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

curl -I https://google.com

Also, can you just copy/paste the info from your screens into your posts here? The screen snapshot images are very difficult to read and work with. Thank you.

3 Likes

[root@qr-gwnat1 motrenko.au]# curl -I https://acme-v02.api.letsencrypt.org/directory
HTTP/2 200
server: nginx
date: Mon, 22 Aug 2022 12:45:29 GMT
content-type: application/json
content-length: 672
cache-control: public, max-age=0, no-cache
replay-nonce: 0001Dv8Ue4jJSpM2imZ7x2TjdJR-GEg65J1XvY_xFCgR7eY
x-frame-options: DENY
strict-transport-security: max-age=604800

[root@qr-gwnat1 motrenko.au]# curl -I https://google.com
HTTP/2 301
location: https://www.google.com/
content-type: text/html; charset=UTF-8
date: Mon, 22 Aug 2022 12:45:42 GMT
expires: Wed, 21 Sep 2022 12:45:42 GMT
cache-control: public, max-age=2592000
server: gws
content-length: 220
x-xss-protection: 0
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"

Thanks. What about this:

curl -I http://r3.o.lencr.org
3 Likes

curl -I http://r3.o.lencr.org
HTTP/1.1 200 OK
Server: nginx
Content-Length: 0
Cache-Control: max-age=5336
Expires: Mon, 22 Aug 2022 14:49:47 GMT
Date: Mon, 22 Aug 2022 13:20:51 GMT
Connection: keep-alive

Thanks. Those tests look better than what showed in your log earlier. Can you try the certbot command again but add these values. When it pauses, leave it paused and show us the URL it displays

sudo certbot certonly --standalone -d lktest.qr.orgp.spb.ru --dry-run --debug-challenges -v

(leave sudo off if you don't need it)

3 Likes

certbot certonly --standalone -d lktest.qr.orgp.spb.ru --dry-run --debug-challenges -v --preferred-challenges http
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Simulating a certificate request for lktest.qr.orgp.spb.ru
An unexpected error occurred:
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
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.

2022-08-22 09:58:37,248:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2022-08-22 09:58:37,550:DEBUG:certbot._internal.main:certbot version: 1.29.0
2022-08-22 09:58:37,550:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/2192/bin/certbot
2022-08-22 09:58:37,550:DEBUG:certbot._internal.main:Arguments: ['--standalone', '-d', 'lktest.qr.orgp.spb.ru', '--dry-run', '--debug-challenges', '-v', '--preferred-challenges', 'http', '--preconfigured-renewal']
2022-08-22 09:58:37,550:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-08-22 09:58:37,562:DEBUG:certbot._internal.log:Root logging level set at 20
2022-08-22 09:58:37,562:DEBUG:certbot._internal.plugins.selection:Requested authenticator standalone and installer None
2022-08-22 09:58:37,564:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * standalone
Description: Spin up a temporary webserver
Interfaces: Authenticator, Plugin
Entry point: standalone = certbot._internal.plugins.standalone:Authenticator
Initialized: <certbot._internal.plugins.standalone.Authenticator object at 0x7f9ae0a86d00>
Prep: True
2022-08-22 09:58:37,565:DEBUG:certbot._internal.plugins.selection:Selected authenticator <certbot._internal.plugins.standalone.Authenticator object at 0x7f9ae0a86d00> and installer None
2022-08-22 09:58:37,565:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator standalone, Installer None
2022-08-22 09:58:37,571:DEBUG:certbot._internal.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-staging-v02.api.letsencrypt.org/acme/acct/58639314', new_authzr_uri=None, terms_of_service=None), 320b8d8d33ffbf76e6f4b6e9bb890115, Meta(creation_dt=datetime.datetime(2022, 6, 25, 13, 32, 12, tzinfo=<UTC>), creation_host='qr-gwnat1.mos.orgp.ru', register_to_eff=None))>
2022-08-22 09:58:37,571:DEBUG:acme.client:Sending GET request to https://acme-staging-v02.api.letsencrypt.org/directory.
2022-08-22 09:58:37,572:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-staging-v02.api.letsencrypt.org:443
2022-08-22 09:58:38,161:DEBUG:urllib3.connectionpool:https://acme-staging-v02.api.letsencrypt.org:443 "GET /directory HTTP/1.1" 200 836
2022-08-22 09:58:38,161:DEBUG:acme.client:Received response:
HTTP 200
Server: nginx
Date: Mon, 22 Aug 2022 13:58:38 GMT
Content-Type: application/json
Content-Length: 836
Connection: keep-alive
Cache-Control: public, max-age=0, no-cache
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800

{
  "05S0LRRLo5A": "https://community.letsencrypt.org/t/adding-random-entries-to-the-directory/33417",
  "keyChange": "https://acme-staging-v02.api.letsencrypt.org/acme/key-change",
  "meta": {
    "caaIdentities": [
      "letsencrypt.org"
    ],
    "termsOfService": "https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017-w-v1.3-notice.pdf",
    "website": "https://letsencrypt.org/docs/staging-environment/"
  },
  "newAccount": "https://acme-staging-v02.api.letsencrypt.org/acme/new-acct",
  "newNonce": "https://acme-staging-v02.api.letsencrypt.org/acme/new-nonce",
  "newOrder": "https://acme-staging-v02.api.letsencrypt.org/acme/new-order",
  "renewalInfo": "https://acme-staging-v02.api.letsencrypt.org/get/draft-aaron-ari/renewalInfo/",
  "revokeCert": "https://acme-staging-v02.api.letsencrypt.org/acme/revoke-cert"
}
2022-08-22 09:58:38,165:DEBUG:certbot._internal.display.obj:Notifying user: Simulating a certificate request for lktest.qr.orgp.spb.ru
2022-08-22 09:58:38,289:DEBUG:acme.client:Requesting fresh nonce
2022-08-22 09:58:38,289:DEBUG:acme.client:Sending HEAD request to https://acme-staging-v02.api.letsencrypt.org/acme/new-nonce.
2022-08-22 09:58:38,290:DEBUG:urllib3.connectionpool:Resetting dropped connection: acme-staging-v02.api.letsencrypt.org
2022-08-22 09:58:38,785:DEBUG:urllib3.connectionpool:https://acme-staging-v02.api.letsencrypt.org:443 "HEAD /acme/new-nonce HTTP/1.1" 200 0
2022-08-22 09:58:38,786:DEBUG:acme.client:Received response:
HTTP 200
Server: nginx
Date: Mon, 22 Aug 2022 13:58:38 GMT
Connection: keep-alive
Cache-Control: public, max-age=0, no-cache
Link: <https://acme-staging-v02.api.letsencrypt.org/directory>;rel="index"
Replay-Nonce: 00018_e4r1D3HulpMc02omLeXE4gJEdta9JsvQEoOnt0h3U
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800


2022-08-22 09:58:38,786:DEBUG:acme.client:Storing nonce: 00018_e4r1D3HulpMc02omLeXE4gJEdta9JsvQEoOnt0h3U
2022-08-22 09:58:38,786:DEBUG:acme.client:JWS payload:
b'{\n  "identifiers": [\n    {\n      "type": "dns",\n      "value": "lktest.qr.orgp.spb.ru"\n    }\n  ]\n}'
2022-08-22 09:58:38,788:DEBUG:acme.client:Sending POST request to https://acme-staging-v02.api.letsencrypt.org/acme/new-order:
{
  "protected": "eyJhbGciOiAiUlMyNTYiLCAia2lkIjogImh0dHBzOi8vYWNtZS1zdGFnaW5nLXYwMi5hcGkubGV0c2VuY3J5cHQub3JnL2FjbWUvYWNjdC81ODYzOTMxNCIsICJub25jZSI6ICIwMDAxOF9lNHIxRDNIdWxwTWMwMm9tTGVYRTRnSkVkdGE5SnN2UUVvT250MGgzVSIsICJ1cmwiOiAiaHR0cHM6Ly9hY21lLXN0YWdpbmctdjAyLmFwaS5sZXRzZW5jcnlwdC5vcmcvYWNtZS9uZXctb3JkZXIifQ",
  "signature": "x4-xRfD-T2H1h3f1r0wnreOrWkLl6mSRh7MkgkNBdXkNxnBdxHAMoG77yxhtQ18d9bkV0mvAJD1p-gkEeFeYBfec0i-V2Fa-3PedaBlaeUA23u1y0WdOUAomHeenwF9mcgQnJTJ6fdrBNgvnuutyUQzhYFQK4O7V476YUlZ0NJinFPUbSfvkaOVaomAHoTwKBXJPDfsOcv8rhDE5-dRQNgH_yhZA5Nw0ssqwPAI2-L2GnoiBdWfG55jP9v38b-5Vg2EmRLxLPhEaR0ubou0HpejkyBRvpZgYBuHONR8ZBnvtfTDjvMp31LHkMZnOVX8LExpR8j0m-o5RXolVw-aWXg",
  "payload": "ewogICJpZGVudGlmaWVycyI6IFsKICAgIHsKICAgICAgInR5cGUiOiAiZG5zIiwKICAgICAgInZhbHVlIjogImxrdGVzdC5xci5vcmdwLnNwYi5ydSIKICAgIH0KICBdCn0"
}
2022-08-22 09:58:38,801:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 1348, in getresponse
    response.begin()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 316, in begin
    version, status, reason = self._read_status()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 277, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 440, in send
    resp = conn.urlopen(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 1348, in getresponse
    response.begin()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 316, in begin
    version, status, reason = self._read_status()
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/http/client.py", line 277, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/var/lib/snapd/snap/certbot/2192/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/snap/certbot/2192/bin/certbot", line 8, in <module>
    sys.exit(main())
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/main.py", line 19, in main
    return internal_main.main(cli_args)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 1744, in main
    return config.func(config, plugins)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 1591, in certonly
    lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/main.py", line 141, in _get_and_save_cert
    lineage = le_client.obtain_and_enroll_certificate(domains, certname)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 530, in obtain_and_enroll_certificate
    cert, chain, key, _ = self.obtain_certificate(domains)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 442, in obtain_certificate
    orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/certbot/_internal/client.py", line 492, in _get_order_and_authorizations
    orderr = self.acme.new_order(csr_pem)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 942, in new_order
    return cast(ClientV2, self.client).new_order(csr_pem)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 703, in new_order
    response = self._post(self.directory['newOrder'], order)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 103, in _post
    return self.net.post(*args, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1275, in post
    return self._post_once(*args, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1288, in _post_once
    response = self._send_request('POST', url, data=data, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/acme/client.py", line 1180, in _send_request
    response = self.session.request(method, url, *args, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/var/lib/snapd/snap/certbot/2192/lib/python3.8/site-packages/requests/adapters.py", line 501, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2022-08-22 09:58:38,803:ERROR:certbot._internal.log:An unexpected error occurred:
2022-08-22 09:58:38,803:ERROR:certbot._internal.log:requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
1 Like

I'm starting to think badly about the ISP. This seems more likely to me.
letsencrypt should not have blocked a range of ip addresses?
On other public addresses of the same ISP, exactly the same problem is observed.

2 Likes

That's interesting. It looks like you have intermittent network connection failures. Yes, I suspect the ISP too.

It is possible for Let's Encrypt to block a range of IP's but if blocked the error would be much different than what we see in these logs. So, it is not that.

The certbot acme challenge in this latest try got farther than the one in your first post. The log in your first post failed with the first GET request. But, that worked in this latest request. And, it worked when you tried it with curl.

This latest one (I summarize):

2022-08-22 09:58:37,571:DEBUG:acme.client:Sending GET request to https://acme-staging-v02.api.letsencrypt.org/directory.
2022-08-22 09:58:38,161:DEBUG:acme.client:Received response:
HTTP 200 (good response)
Server: nginx

2022-08-22 09:58:38,289:DEBUG:acme.client:Sending HEAD request to https://acme-staging-v02.api.letsencrypt.org/acme/new-nonce.
2022-08-22 09:58:38,786:DEBUG:acme.client:Received response:
HTTP 200 (good response)
Server: nginx

2022-08-22 09:58:38,788:DEBUG:acme.client:Sending POST request to https://acme-staging-v02.api.letsencrypt.org/acme/new-order:
2022-08-22 09:58:38,801:DEBUG:certbot._internal.log:Exiting abnormally:
ConnectionResetError: [Errno 104] Connection reset by peer
3 Likes

I got a certificate - for this domain and this ip address. had to use another ISP-2 as the requester. Forwarding port 80 using SNAT/DNAT from the first ISP-1 on second ISP-2 - to check the domain in standalone mode.

All good work same install but different ISP requester.

2 Likes

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