Certbot install problem on AWS EC2 instance

Hi there,

Having some issue installing Cerbot on AWS EC2 .

My domain is: discoverysummer.co.uk

I ran this command:
Followed the tutorial here: Configure SSL/TLS on Amazon Linux 2 - Amazon Elastic Compute Cloud

It produced this output:

Fails after entering email address.

Log file:

2017-11-01 14:34:53,634:DEBUG:certbot.main:certbot version: 0.19.0
2017-11-01 14:34:53,635:DEBUG:certbot.main:Arguments: ['--debug']
2017-11-01 14:34:53,635:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2017-11-01 14:34:53,647:DEBUG:certbot.log:Root logging level set at 20
2017-11-01 14:34:53,647:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2017-11-01 14:34:53,648:DEBUG:certbot.plugins.selection:Requested authenticator None and installer None
2017-11-01 14:34:53,759:DEBUG:certbot_apache.configurator:Apache version is 2.2.34
2017-11-01 14:34:53,915:DEBUG:certbot.plugins.disco:No installation (PluginEntryPoint#nginx):
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/plugins/disco.py", line 130, in prepare
self._initialized.prepare()
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_nginx/configurator.py", line 150, in prepare
raise errors.NoInstallationError
NoInstallationError
2017-11-01 14:34:53,915:DEBUG:certbot.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.configurator:ApacheConfigurator
Initialized: <certbot_apache.configurator.ApacheConfigurator object at 0x7fd6c4fcc7d0>
Prep: True
2017-11-01 14:34:53,916:DEBUG:certbot.plugins.selection:Selected authenticator <certbot_apache.configurator.ApacheConfigurator object at 0x7fd6c4fcc7d0> and installer <certbot_apache.configurator.ApacheConfigurator object at 0x7fd6c4fcc7d0>
2017-11-01 14:34:53,917:INFO:certbot.plugins.selection:Plugins selected: Authenticator apache, Installer apache
2017-11-01 14:35:28,055:DEBUG:acme.client:Sending GET request to https://acme-v01.api.letsencrypt.org/directory.
2017-11-01 14:35:28,060:DEBUG:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2017-11-01 14:36:13,160:ERROR:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 11, in
sys.exit(main())
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 861, in main
return config.func(config, plugins)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 690, in run
le_client = _init_le_client(config, authenticator, installer)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 479, in _init_le_client
acc, acme = _determine_account(config)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 378, in _determine_account
config, account_storage, tos_cb=_tos_cb)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/client.py", line 163, in register
acme = acme_from_config_key(config, key)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/client.py", line 45, in acme_from_config_key
return acme_client.Client(config.server, key=key, net=net)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py", line 71, in init
self.net.get(directory).json())
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py", line 654, in get
self._send_request('GET', url, **kwargs), content_type=content_type)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py", line 627, in _send_request
response = self.session.request(method, url, *args, **kwargs)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/requests/adapters.py", line 499, in send
raise ReadTimeout(e, request=request)
ReadTimeout: HTTPSConnectionPool(host='acme-v01.api.letsencrypt.org', port=443): Read timed out. (read timeout=45)
[root@ip letsencrypt]# 2017-11-01 14:34:53,634:DEBUG:certbot.main:certbot version: 0.19.0
2017-11-01 14:34:53,635:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2017-11-01 14:34:53,647:DEBUG:certbot.log:Root logging level set at 20
2017-11-01 14:34:53,647:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2017-11-01 14:34:53,648:DEBUG:certbot.plugins.selection:Requested authenticator None and installer None
2017-11-01 14:34:53,759:DEBUG:certbot_apache.configurator:Apache version is 2.2.34
2017-11-01 14:34:53,915:DEBUG:certbot.plugins.disco:No installation (PluginEntryPoint#nginx):
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/plugins/disco.py", line 130, in prepare
self._initialized.prepare()
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_nginx/configurator.py", line 150, in prepare
raise errors.NoInstallationError
NoInstallationError
2017-11-01 14:34:53,915:DEBUG:certbot.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.configurator:ApacheConfigurator
Initialized: <certbot_apache.configurator.ApacheConfigurator object at 0x7fd6c4fcc7d0>
Prep: True
-bash: 2017-11-01: command not found
2017-11-01 14:34:53,916:DEBUG:certbot.plugins.selection:Selected authenticator <certbot_apache.configurator.ApacheConfigurator object at 0x7fd6c4fcc7d0> and installer <certbot_apache.configurator.ApacheConfigurator object at 0x7fd6c4fcc7d0>
2017-11-01 14:34:53,917:INFO:certbot.plugins.selection:Plugins selected: Authenticator apache, Installer apache
2017-11-01 14:35:28,055:DEBUG:acme.client:Sending GET request to https://acme-v01.api.letsencrypt.org/directory.
[root@ip letsencrypt]# 2017-11-01 14:34:53,635:DEBUG:certbot.main:Arguments: ['--debug']
2017-11-01 14:35:28,060:DEBUG:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2017-11-01 14:36:13,160:ERROR:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 11, in
sys.exit(main())
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 861, in main
return config.func(config, plugins)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 690, in run
le_client = _init_le_client(config, authenticator, installer)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 479, in _init_le_client
acc, acme = _determine_account(config)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 378, in _determine_account
config, account_storage, tos_cb=_tos_cb)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/client.py", line 163, in register
acme = acme_from_config_key(config, key)
-bash: 2017-11-01: command not found
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/client.py", line 45, in acme_from_config_key
return acme_client.Client(config.server, key=key, net=net)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py", line 71, in init
[root@ip letsencrypt]# 2017-11-01 14:34:53,635:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
-bash: syntax error near unexpected token (' self.net.get(directory).json()) File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py", line 654, in get self._send_request('GET', url, **kwargs), content_type=content_type) File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py", line 627, in _send_request response = self.session.request(method, url, *args, **kwargs) File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/requests/adapters.py", line 499, in send raise ReadTimeout(e, request=request) ReadTimeout: HTTPSConnectionPool(host='acme-v01.api.letsencrypt.org', port=443): Read timed out. (read timeout=45) [root@ip letsencrypt]# 2017-11-01 14:34:53,647:DEBUG:certbot.log:Root logging level set at 20 -bash: 2017-11-01: command not found [root@ip letsencrypt]# 2017-11-01 14:34:53,647:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log -bash: 2017-11-01: command not found [root@ip letsencrypt]# 2017-11-01 14:34:53,648:DEBUG:certbot.plugins.selection:Requested authenticator None and installer None -bash: 2017-11-01: command not found [root@ip letsencrypt]# 2017-11-01 14:34:53,759:DEBUG:certbot_apache.configurator:Apache version is 2.2.34 -bash: 2017-11-01: command not found [root@ip letsencrypt]# 2017-11-01 14:34:53,915:DEBUG:certbot.plugins.disco:No installation (PluginEntryPoint#nginx): -bash: syntax error near unexpected token ('
[root@ip letsencrypt]# Traceback (most recent call last):
-bash: syntax error near unexpected token `most'
[root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/plugins/disco.py", line 130, in prepare
-bash: File: command not found
[root@ip letsencrypt]# self._initialized.prepare()

File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_nginx/configurator.py", line 150, in prepare
-bash: syntax error near unexpected token File' [root@ip letsencrypt]# raise errors.NoInstallationError -bash: raise: command not found [root@ip letsencrypt]# NoInstallationError -bash: NoInstallationError: command not found [root@ip letsencrypt]# 2017-11-01 14:34:53,915:DEBUG:certbot.plugins.selection:Single candidate plugin: * apache -bash: 2017-11-01: command not found [root@ip letsencrypt]# Description: Apache Web Server plugin - Beta -bash: Description:: command not found [root@ip letsencrypt]# Interfaces: IAuthenticator, IInstaller, IPlugin -bash: Interfaces:: command not found [root@ip letsencrypt]# Entry point: apache = certbot_apache.configurator:ApacheConfigurator -bash: Entry: command not found [root@ip letsencrypt]# Initialized: <certbot_apache.configurator.ApacheConfigurator object at 0x7fd6c4fcc7d0> -bash: syntax error near unexpected token newline'
[root@ip letsencrypt]# Prep: True
-bash: Prep:: command not found
[root@ip letsencrypt]# 2017-11-01 14:34:53,916:DEBUG:certbot.plugins.selection:Selected authenticator <certbot_apache.configurator.ApacheConfigurator object at 0x7fd6c4fcc7d0> and installer <certbot_apache.configurator.ApacheConfigurator object at 0x7fd6c4fcc7d0>
-bash: syntax error near unexpected token newline' [root@ip letsencrypt]# 2017-11-01 14:34:53,917:INFO:certbot.plugins.selection:Plugins selected: Authenticator apache, Installer apache -bash: 2017-11-01: command not found [root@ip letsencrypt]# 2017-11-01 14:35:28,055:DEBUG:acme.client:Sending GET request to https://acme-v01.api.letsencrypt.org/directory. -bash: 2017-11-01: command not found [root@ip letsencrypt]# 2017-11-01 14:35:28,060:DEBUG:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org -bash: syntax error near unexpected token ('
[root@ip letsencrypt]# 2017-11-01 14:36:13,160:ERROR:certbot.log:Exiting abnormally:
-bash: 2017-11-01: command not found
[root@ip letsencrypt]# Traceback (most recent call last):
-bash: syntax error near unexpected token most' [root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 11, in <module> -bash: syntax error near unexpected token newline'
[root@ip letsencrypt]# sys.exit(main())
-bash: syntax error near unexpected token main' [root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 861, in main -bash: File: command not found [root@ip letsencrypt]# return config.func(config, plugins) -bash: syntax error near unexpected token ('
[root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 690, in run
-bash: File: command not found
[root@ip letsencrypt]# le_client = _init_le_client(config, authenticator, installer)
-bash: syntax error near unexpected token (' [root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 479, in _init_le_client -bash: File: command not found [root@ip letsencrypt]# acc, acme = _determine_account(config) -bash: syntax error near unexpected token ('
[root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 378, in _determine_account
-bash: File: command not found
[root@ip letsencrypt]# config, account_storage, tos_cb=_tos_cb)
-bash: syntax error near unexpected token )' [root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/client.py", line 163, in register -bash: File: command not found [root@ip letsencrypt]# acme = acme_from_config_key(config, key) -bash: syntax error near unexpected token ('
[root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/client.py", line 45, in acme_from_config_key
-bash: File: command not found
[root@ip letsencrypt]# return acme_client.Client(config.server, key=key, net=net)
-bash: syntax error near unexpected token (' [root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py", line 71, in __init__ -bash: File: command not found [root@ip letsencrypt]# self.net.get(directory).json()) -bash: syntax error near unexpected token directory'
[root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py", line 654, in get
-bash: File: command not found
[root@ip letsencrypt]# self._send_request('GET', url, **kwargs), content_type=content_type)
-bash: syntax error near unexpected token 'GET',' [root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py", line 627, in _send_request -bash: File: command not found [root@ip letsencrypt]# response = self.session.request(method, url, *args, **kwargs) -bash: syntax error near unexpected token ('
[root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 488, in request
-bash: File: command not found
[root@ip letsencrypt]# resp = self.send(prep, **send_kwargs)
-bash: syntax error near unexpected token (' [root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 609, in send -bash: File: command not found [root@ip letsencrypt]# r = adapter.send(request, **kwargs) -bash: syntax error near unexpected token ('
[root@ip letsencrypt]# File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/requests/adapters.py", line 499, in send
-bash: File: command not found
[root@ip letsencrypt]# raise ReadTimeout(e, request=request)
-bash: syntax error near unexpected token (' [root@ip letsencrypt]# ReadTimeout: HTTPSConnectionPool(host='acme-v01.api.letsencrypt.org', port=443): Read timed out. (read timeout=45) -bash: syntax error near unexpected token ('

My web server is (include version):
AWS EC2 Linux

The operating system my web server runs on is (include version):
Unsure

My hosting provider, if applicable, is:
AWS

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): no

Any help much appreciated!

There are currenly issues in the infrastructure:
https://letsencrypt.status.io/

Just be patient and retry later.

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