Max retries exceeded with url: /directory

#1

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. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

using a docker certbot image: certbot/certbot

My domain is: foxpropanda.com

I ran this command:
[’–webroot’, ‘-w’, ‘/var/www/certbot’, ‘–email’, ‘ayelluas@gmail.com’, ‘-d’, ‘foxpropanda.com’, ‘-d’, ‘www.foxpropanda.com’, ‘–rsa-key-size’, ‘4096’, ‘–agree-tos’, ‘–force-renewal’]

It produced this output:

2019-03-23 03:17:28,363:DEBUG:certbot.main:certbot version: 0.31.0
2019-03-23 03:17:28,363:DEBUG:certbot.main:Arguments: [’–webroot’, ‘-w’, ‘/var/www/certbot’, ‘–email’, ‘ayelluas@gmail.com’, ‘-d’, ‘foxpropanda.com’, ‘-d’, ‘www.foxpropanda.com’, ‘–rsa-key-size’, ‘4096’, ‘–agree-tos’, ‘–force-renewal’]
2019-03-23 03:17:28,363:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2019-03-23 03:17:28,381:DEBUG:certbot.log:Root logging level set at 20
2019-03-23 03:17:28,381:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2019-03-23 03:17:28,383:DEBUG:certbot.plugins.selection:Requested authenticator webroot and installer None
2019-03-23 03:17:28,390:DEBUG:certbot.plugins.selection:Single candidate plugin: * webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
Initialized: <certbot.plugins.webroot.Authenticator object at 0x7f7f68863f10>
Prep: True
2019-03-23 03:17:28,391:DEBUG:certbot.plugins.selection:Selected authenticator <certbot.plugins.webroot.Authenticator object at 0x7f7f68863f10> and installer None
2019-03-23 03:17:28,391:INFO:certbot.plugins.selection:Plugins selected: Authenticator webroot, Installer None
2019-03-23 03:17:29,936:DEBUG:acme.client:Sending GET request to https://acme-v02.api.letsencrypt.org/directory.
2019-03-23 03:17:29,938:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org:443
2019-03-23 03:17:34,944:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File “/usr/local/bin/certbot”, line 11, in
load_entry_point(‘certbot’, ‘console_scripts’, ‘certbot’)()
File “/opt/certbot/src/certbot/main.py”, line 1365, in main
return config.func(config, plugins)
File “/opt/certbot/src/certbot/main.py”, line 1234, in certonly
le_client = _init_le_client(config, auth, installer)
File “/opt/certbot/src/certbot/main.py”, line 605, in _init_le_client
acc, acme = _determine_account(config)
File “/opt/certbot/src/certbot/main.py”, line 521, in _determine_account
config, account_storage, tos_cb=_tos_cb)
File “/opt/certbot/src/certbot/client.py”, line 181, in register
acme = acme_from_config_key(config, key)
File “/opt/certbot/src/certbot/client.py”, line 51, in acme_from_config_key
return acme_client.BackwardsCompatibleClientV2(net, key, config.server)
File “/opt/certbot/src/acme/acme/client.py”, line 814, in init
directory = messages.Directory.from_json(net.get(server).json())
File “/opt/certbot/src/acme/acme/client.py”, line 1152, in get
self._send_request(‘GET’, url, **kwargs), content_type=content_type)
File “/opt/certbot/src/acme/acme/client.py”, line 1101, in _send_request
response = self.session.request(method, url, *args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/requests/sessions.py”, line 524, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python2.7/site-packages/requests/sessions.py”, line 637, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python2.7/site-packages/requests/adapters.py”, line 516, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host=‘acme-v02.api.letsencrypt.org’, port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7f68851c50>: Failed to establish a new connection: [Errno -3] Try again’,))
2019-03-23 03:17:34,945:ERROR:certbot.log:An unexpected error occurred:

My web server is (include version): nginx 1.15.9

The operating system my web server runs on is (include version): nginx runs in a docker container under Alpine linux 3.9, host os is Ubuntu 18.10

My hosting provider, if applicable, is: Digital Ocean

I can login to a root shell on my machine (yes or no, or I don’t know):

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):

#2

Hi @hiphamster

is your server able to connect urls?

What happens if you run

curl www.google.com

or something else?

Your domain is invisible ( https://check-your-website.server-daten.de/?q=foxpropanda.com ):

Domainname Http-Status redirect Sec. G
http://foxpropanda.com/
138.68.229.55 -2 1.520 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 138.68.229.55:80
http://www.foxpropanda.com/
138.68.229.55 -2 1.520 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 138.68.229.55:80
https://foxpropanda.com/
138.68.229.55 -2 1.513 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 138.68.229.55:443
https://www.foxpropanda.com/
138.68.229.55 -2 1.513 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 138.68.229.55:443
http://foxpropanda.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
138.68.229.55 -2 1.524 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 138.68.229.55:80
Visible Content:
http://www.foxpropanda.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
138.68.229.55 -2 1.520 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it 138.68.229.55:80
Visible Content:

So it’s impossible that Letsencrypt checks your file.

closed #4

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