Vamos criptografar o erro de renovação

1

Corri o seguinte do cron todo mês e recebi este erro:

/opt/letsencrypt/letsencrypt-auto certonly --quiet --standalone --renew-by-default -d example.org -d www.example.org  
Creating virtual environment...
Installing Python packages...     
Installation succeeded.               
An unexpected error occurred:             
DistributionNotFound: The 'ndg-httpsclient' distribution was not found and is required by requests                               
Please see the logfile 'certbot.log' for more details.

Claramente, "exemplo" não é meu domínio, usei o correto. O certbot.log não oferece mais detalhes:

Traceback (most recent call last):
  File "/root/.local/share/letsencrypt/bin/letsencrypt", line 11, in <module>
    sys.exit(main())
  File "/opt/letsencrypt/certbot/main.py", line 858, in main
    plugins = plugins_disco.PluginsRegistry.find_all()
  File "/opt/letsencrypt/certbot/plugins/disco.py", line 183, in find_all
    plugin_ep = PluginEntryPoint(entry_point)
  File "/opt/letsencrypt/certbot/plugins/disco.py", line 34, in __init__
    self.plugin_cls = entry_point.load()
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2201, in load
    self.require(*args, **kwargs)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2218, in require
    items = working_set.resolve(reqs, env, installer)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 830, in resolve
    raise DistributionNotFound(req, requirers)
DistributionNotFound: The 'ndg-httpsclient' distribution was not found and is required by requests

O que estou perdendo?

    
por Sardathrion 01.02.2017 / 09:40

1 resposta

2

Você não especificou o seu sistema operacional, mas na minha máquina Ubuntu 18.04, a instalação do pacote python-ndg-httpsclient resolveu o problema:

sudo apt-get install python-ndg-httpsclient

Eu percebo que esta resposta pode ser um pouco tarde.

    
por 01.10.2018 / 08:21