2022-06-15 17:10:42,343:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2022-06-15 17:10:43,073:DEBUG:certbot._internal.main:certbot version: 1.28.0
2022-06-15 17:10:43,073:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/2133/bin/certbot
2022-06-15 17:10:43,073:DEBUG:certbot._internal.main:Arguments: ['--cert-name', 'captainnemo.icu', '--preconfigured-renewal']
2022-06-15 17:10:43,073:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-06-15 17:10:43,091:DEBUG:certbot._internal.log:Root logging level set at 30
2022-06-15 17:10:43,093:DEBUG:certbot._internal.plugins.selection:Requested authenticator None and installer None
2022-06-15 17:10:43,106:DEBUG:certbot.plugins.util:Failed to find executable apache2ctl in PATH: /snap/certbot/2133/bin:/snap/certbot/2133/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
2022-06-15 17:10:43,106:DEBUG:certbot._internal.plugins.disco:No installation (PluginEntryPoint#apache): Cannot find Apache executable apache2ctl
Traceback (most recent call last):
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 160, in prepare
self._initialized.prepare()
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot_apache/_internal/configurator.py", line 347, in prepare
self._verify_exe_availability(self.options.ctl)
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot_apache/_internal/configurator.py", line 468, in _verify_exe_availability
raise errors.NoInstallationError(
certbot.errors.NoInstallationError: Cannot find Apache executable apache2ctl
2022-06-15 17:10:43,275:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * nginx
Description: Nginx Web Server plugin
Interfaces: Installer, Authenticator, Plugin
Entry point: nginx = certbot_nginx._internal.configurator:NginxConfigurator
Initialized: <certbot_nginx._internal.configurator.NginxConfigurator object at 0x7f0bcef61610>
Prep: True
2022-06-15 17:10:43,276:DEBUG:certbot._internal.plugins.selection:Selected authenticator None and installer <certbot_nginx._internal.configurator.NginxConfigurator object at 0x7f0bcef61610>
2022-06-15 17:10:43,276:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator None, Installer nginx
2022-06-15 17:10:43,281:DEBUG:certbot._internal.display.obj:Notifying user: Deploying certificate
2022-06-15 17:10:43,286:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot/_internal/client.py", line 609, in deploy_certificate
self.installer.deploy_cert(
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot_nginx/_internal/configurator.py", line 240, in deploy_cert
vhosts = self.choose_vhosts(domain, create_if_no_match=True)
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot_nginx/_internal/configurator.py", line 349, in choose_vhosts
vhosts = [self._vhost_from_duplicated_default(target_name, True,
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot_nginx/_internal/configurator.py", line 398, in _vhost_from_duplicated_default
default_vhost = self._get_default_vhost(domain, allow_port_mismatch, port)
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot_nginx/_internal/configurator.py", line 436, in _get_default_vhost
raise errors.MisconfigurationError("Could not automatically find a matching server "
certbot.errors.MisconfigurationError: Could not automatically find a matching server block for captainnemo.icu. Set the `server_name` directive to use the Nginx installer.
2022-06-15 17:10:43,286:DEBUG:certbot._internal.error_handler:Calling registered functions
2022-06-15 17:10:43,412:DEBUG:certbot._internal.display.obj:Notifying user: Could not install certificate
2022-06-15 17:10:43,413:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/snap/certbot/2133/bin/certbot", line 8, in <module>
sys.exit(main())
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot/_internal/main.py", line 1744, in main
return config.func(config, plugins)
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot/_internal/main.py", line 1101, in install
_install_cert(config, le_client, domains)
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot/_internal/main.py", line 1049, in _install_cert
le_client.deploy_certificate(domains, path_provider.key_path, path_provider.cert_path,
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot/_internal/client.py", line 609, in deploy_certificate
self.installer.deploy_cert(
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot_nginx/_internal/configurator.py", line 240, in deploy_cert
vhosts = self.choose_vhosts(domain, create_if_no_match=True)
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot_nginx/_internal/configurator.py", line 398, in _vhost_from_duplicated_default
default_vhost = self._get_default_vhost(domain, allow_port_mismatch, port)
File "/snap/certbot/2133/lib/python3.8/site-packages/certbot_nginx/_internal/configurator.py", line 436, in _get_default_vhost
raise errors.MisconfigurationError("Could not automatically find a matching server "
certbot.errors.MisconfigurationError: Could not automatically find a matching server block for captainnemo.icu. Set the `server_name` directive to use the Nginx installer.
2022-06-15 17:10:43,414:ERROR:certbot._internal.log:Could not automatically find a matching server block for captainnemo.icu. Set the `server_name` directive to use the Nginx installer.