Hi,
i have a problem with the certbot.
certbot --version: certbot 0.23.0
Os: Ubuntu 18:04 LTS
when i run certbot renew --dry-run i recive the error message from the Topic.
i do not find any special character:
grep -r -P '[^\x00-\x7f]' /etc/letsencrypt /etc/nginx
show nothing.
in the debug log file i get this:
2019-01-21 14:31:24,497:DEBUG:certbot.main:certbot version: 0.23.0
2019-01-21 14:31:24,500:DEBUG:certbot.main:Arguments: [’–dry-run’]
2019-01-21 14:31:24,501:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2019-01-21 14:31:24,523:DEBUG:certbot.log:Root logging level set at 20
2019-01-21 14:31:24,525:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2019-01-21 14:31:24,583:DEBUG:certbot.plugins.selection:Requested authenticator <certbot.cli._Default object at 0x7f93a88b5080> and installer <certbot.cli._Default object at 0x7f93a88b5080>
2019-01-21 14:31:24,583:DEBUG:certbot.cli:Var dry_run=True (set by user).
2019-01-21 14:31:24,583:DEBUG:certbot.cli:Var server={‘staging’, ‘dry_run’} (set by user).
2019-01-21 14:31:24,584:DEBUG:certbot.cli:Var account={‘server’} (set by user).
2019-01-21 14:31:24,599:INFO:certbot.renewal:Cert not due for renewal, but simulating renewal for dry run
2019-01-21 14:31:24,601:DEBUG:certbot.plugins.selection:Requested authenticator nginx and installer nginx
2019-01-21 14:31:24,854:WARNING:certbot.renewal:Attempting to renew cert (cloud.xxx.de) from /etc/letsencrypt/renewal/cloud.xxx.de.conf produced an unexpected error: ‘utf-8’ codec can’t decode byte 0xe2 in position 120: invalid continuation byte. Skipping.
2019-01-21 14:31:24,858:DEBUG:certbot.renewal:Traceback was:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/certbot/renewal.py”, line 422, in handle_renewal_request
main.renew_cert(lineage_config, plugins, renewal_candidate)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1095, in renew_cert
installer, auth = plug_sel.choose_configurator_plugins(config, plugins, “certonly”)
File “/usr/lib/python3/dist-packages/certbot/plugins/selection.py”, line 192, in choose_configurator_plugins
installer = pick_installer(config, req_inst, plugins)
File “/usr/lib/python3/dist-packages/certbot/plugins/selection.py”, line 32, in pick_installer
config, default, plugins, question, (interfaces.IInstaller,))
File “/usr/lib/python3/dist-packages/certbot/plugins/selection.py”, line 77, in pick_plugin
verified.prepare()
File “/usr/lib/python3/dist-packages/certbot/plugins/disco.py”, line 245, in prepare
return [plugin_ep.prepare() for plugin_ep in six.itervalues(self._plugins)]
File “/usr/lib/python3/dist-packages/certbot/plugins/disco.py”, line 245, in
return [plugin_ep.prepare() for plugin_ep in six.itervalues(self._plugins)]
File “/usr/lib/python3/dist-packages/certbot/plugins/disco.py”, line 126, in prepare
self._initialized.prepare()
File “/usr/lib/python3/dist-packages/certbot_nginx/configurator.py”, line 141, in prepare
self.parser = parser.NginxParser(self.conf(‘server-root’))
File “/usr/lib/python3/dist-packages/certbot_nginx/parser.py”, line 38, in init
self.load()
File “/usr/lib/python3/dist-packages/certbot_nginx/parser.py”, line 45, in load
self._parse_recursively(self.config_root)
File “/usr/lib/python3/dist-packages/certbot_nginx/parser.py”, line 66, in _parse_recursively
self._parse_recursively(subentry[1])
File “/usr/lib/python3/dist-packages/certbot_nginx/parser.py”, line 56, in _parse_recursively
trees = self._parse_files(filepath)
File “/usr/lib/python3/dist-packages/certbot_nginx/parser.py”, line 206, in _parse_files
parsed = nginxparser.load(_file)
File “/usr/lib/python3/dist-packages/certbot_nginx/nginxparser.py”, line 123, in load
return loads(_file.read())
File “/usr/lib/python3.6/codecs.py”, line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xe2 in position 120: invalid continuation byte
2019-01-21 14:31:24,859:ERROR:certbot.renewal:All renewal attempts failed. The following certs could not be renewed:
2019-01-21 14:31:24,859:ERROR:certbot.renewal: /etc/letsencrypt/live/cloud.xxxx.de/fullchain.pem (failure)
2019-01-21 14:31:24,860:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.23.0’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1266, in main
return config.func(config, plugins)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1179, in renew
renewal.handle_renewal_request(config)
File “/usr/lib/python3/dist-packages/certbot/renewal.py”, line 443, in handle_renewal_request
len(renew_failures), len(parse_failures)))
certbot.errors.Error: 1 renew failure(s), 0 parse failure(s)
what can i do?