M
M
maksachv2018-04-26 11:53:12
linux
maksachv, 2018-04-26 11:53:12

Why doesn't cerbot work?

Please help, it worked before. Now, when I try to run certbot for nginx, I get this:
2018-04-26 11:50:58,579:DEBUG:certbot.main:certbot version:
0.23.0 :Arguments
: ['--authenticator', 'webroot', '--installer', 'nginx'] PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot) 2018-04-26 11 :
50:58,594:DEBUG:certbot.log:Root logging level set at 20
INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-04-26 11:50:58,596:DEBUG:certbot.plugins.selection:
2018-04-26 11:50:58,852: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 1018, in run
installer, authenticator = plug_sel.choose_configurator_plugins(config, plugins, "run")
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.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors )[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 31: ordinal not in range(128)
2018-04-26 11:50:58,855:ERROR:certbot.log:An unexpected error occurred:

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hx510b, 2018-09-03
@hx510b

Check configs and remove comments in Russian (utf-8). I have decided so. Something is wrong with certbot's parser.

D
Darcman, 2020-09-08
@Darkman

Good afternoon. The same problem began to appear in the letsencrypy.log logs. There are no comments in Russian in configs. I checked the config in /etc/letsencrypy. Help what can be.
My log is /var/log/letsencrypy/letsencrypy.log
2020-09-08 00:37:58,466:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in
load_entry_point('certbot==0.31.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1365, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1272, in renew
renewal.handle_renewal_request(config)
File "/usr/lib/python3/dist-packages/certbot/renewal.py", line 477, in handle_renewal_request
len(renew_failures), len(parse_failures)))
certbot.errors.Error: 0 renew failure(s), 3 parse failure(s)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question