I managed to create a certificate using letsencrypt-auto yesterday, without issues on my Ubuntu 14.04 server. I need to generate another one, and using the following command as root:
letsencrupt-auto certonly --standalone
After quite a while, I get the following error:
An unexpected error occurred:
ConnectionError: 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 0x7fa079e9a810>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
Here's the full output from /var/log/letsencrypt/letsencrypt.log
2016-02-12 08:19:18,750:DEBUG:letsencrypt.cli:Root logging level set at 30
2016-02-12 08:19:18,750:INFO:letsencrypt.cli:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2016-02-12 08:19:18,751:DEBUG:letsencrypt.cli:letsencrypt version: 0.4.0
2016-02-12 08:19:18,751:DEBUG:letsencrypt.cli:Arguments: ['--no-self-upgrade', '--standalone', '-d', 'foodacademy.dedicated.co.za', '-d', 'www.foodacademy.dedicated.co.za']
2016-02-12 08:19:18,751:DEBUG:letsencrypt.cli:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
2016-02-12 08:19:18,759:DEBUG:letsencrypt.cli:Requested authenticator standalone and installer None
2016-02-12 08:19:19,733:DEBUG:letsencrypt.display.ops:Single candidate plugin: * standalone
Description: Automatically use a temporary webserver
Interfaces: IAuthenticator, IPlugin
Entry point: standalone = letsencrypt.plugins.standalone:Authenticator
Initialized: <letsencrypt.plugins.standalone.Authenticator object at 0x7f69e96d8850>
Prep: True
2016-02-12 08:19:19,734:DEBUG:letsencrypt.cli:Selected authenticator <letsencrypt.plugins.standalone.Authenticator object at 0x7f69e96d8850> and installer None
2016-02-12 08:19:19,781:DEBUG:letsencrypt.cli:Picked account: <Account(365591a7b0ea8771459c189d7421be32)>
2016-02-12 08:19:19,781:DEBUG:root:Sending GET request to https://acme-v01.api.letsencrypt.org/directory. args: (), kwargs: {}
2016-02-12 08:19:19,802:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2016-02-12 08:21:27,218:DEBUG:letsencrypt.cli:Exiting abnormally:
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/bin/letsencrypt", line 11, in
sys.exit(main())
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1987, in main
return config.func(config, plugins)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 690, in obtain_cert
le_client = _init_le_client(config, authenticator, installer)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 213, in _init_le_client
return client.Client(config, acc, authenticator, installer, acme=acme)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py", line 183, in init
acme = acme_from_config_key(config, self.account.key)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py", line 41, in acme_from_config_key
return acme_client.Client(config.server, key=key, net=net)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", line 63, in init
self.net.get(directory).json())
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", line 619, in get
self._send_request('GET', url, **kwargs), content_type=content_type)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", line 601, in _send_request
response = requests.request(method, url, *args, **kwargs)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/requests/api.py", line 53, in request
return session.request(method=method, url=url, **kwargs)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/requests/adapters.py", line 437, in send
raise ConnectionError(e, request=request)
ConnectionError: 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 0x7f69e9669890>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
I tried disabling my firewall, but still getting the same issue. Any idea what could be wrong?