Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
tortuga.etpi.com.br
I ran this command:
certbot --preconfigured-renewal and certbot --apache
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
An unexpected error occurred:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3500de940>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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.
My web server is (include version):
apache2
The operating system my web server runs on is (include version):
ubuntu 22.04 lts
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
not
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot 2.9.0
/var/log/apache2
log error.log:
[Fri Mar 01 10:38:26.065963 2024] [ssl:warn] [pid 11011:tid 140569387673472] AH01906: tortuga.etpi.com.br:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
/etc/apache2/sites-available
000-default.conf
default-ssl.conf
localhost.conf
server.conf
tortuga.etpi.com.br.conf
sites-available config:
<VirtualHost *:80>
ServerName tortuga.etpi.com.br
ServerAlias tortuga.etpi.com.br
KeepAlive Off
Redirect / https://tortuga.etpi.com.br/
<VirtualHost *:443>
ServerName tortuga.etpi.com.br
ServerAlias tortuga.etpi.com.br
KeepAlive Off
root@tortuga:/etc/apache2/sites-available# cat 000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ServerName tortuga.etpi.com.br
Redirect permanent / https://tortuga.etpi.com.br/
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/>
AllowOverride ALL
Require all granted
</Directory>
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
vim: syntax=apache ts=4 sw=4 sts=4 sr noet
root@tortuga:/etc/apache2/sites-available# cat localhost.conf
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
ErrorLog /etc/apache2/logs/localhost_error_log
TransferLog /etc/apache2/logs/localhost_access_log
LogLevel warn
KeepAlive On
MaxKeepAliveRequests 75
KeepAliveTimeout 5
<Location "/server-status">
SetHandler server-status
ERROR LOG LETS:
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3500de940>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/certbot/3643/lib/python3.8/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/snap/certbot/3643/lib/python3.8/site-packages/urllib3/connectionpool.py", line 799, in urlopen
retries = retries.increment(
File "/snap/certbot/3643/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3500de940>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/certbot/3643/bin/certbot", line 8, in
sys.exit(main())
File "/snap/certbot/3643/lib/python3.8/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
File "/snap/certbot/3643/lib/python3.8/site-packages/certbot/_internal/main.py", line 1894, in main
return config.func(config, plugins)
File "/snap/certbot/3643/lib/python3.8/site-packages/certbot/_internal/main.py", line 1443, in run
le_client = _init_le_client(config, authenticator, installer)
File "/snap/certbot/3643/lib/python3.8/site-packages/certbot/_internal/main.py", line 838, in _init_le_client
return client.Client(config, acc, authenticator, installer, acme=acme)
File "/snap/certbot/3643/lib/python3.8/site-packages/certbot/_internal/client.py", line 297, in init
acme = acme_from_config_key(config, self.account.key, self.account.regr)
File "/snap/certbot/3643/lib/python3.8/site-packages/certbot/_internal/client.py", line 72, in acme_from_config_key
directory = acme_client.ClientV2.get_directory(config.server, net)
File "/snap/certbot/3643/lib/python3.8/site-packages/acme/client.py", line 330, in get_directory
return messages.Directory.from_json(net.get(url).json())
File "/snap/certbot/3643/lib/python3.8/site-packages/acme/client.py", line 705, in get
self._send_request('GET', url, **kwargs), content_type=content_type)
File "/snap/certbot/3643/lib/python3.8/site-packages/acme/client.py", line 647, in _send_request
response = self.session.request(method, url, *args, **kwargs)
File "/snap/certbot/3643/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/snap/certbot/3643/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/snap/certbot/3643/lib/python3.8/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3500de940>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
2024-03-01 11:01:19,988:ERROR:certbot._internal.log:An unexpected error occurred:
2024-03-01 11:01:19,988:ERROR:certbot._internal.log:requests.exceptions.ConnectionError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3500de940>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
root@tortuga:/var/log/letsencrypt#
I AM SETTING UP THE CERTIFICATE FOR MY WEBSITE, HOWEVER THESE ERRORS OCCUR AND I DON'T KNOW THE REASON, I TRIED TO RESOLVE IT BUT WITHOUT SUCCESS. I AM USING UBUNTU AND APACHE2.