Nginx plugin not found after fresh install

My domain is:

I ran this command:
apt-get install certbot OK
apt-get install python-certbot-nginx OK
nginx -t OK
systemctl start nginx OK
certbot --nginx ERROR

It produced this output:
The requested nginx plugin does not appear to be installed

cat /var/log/letsencrypt/letsencrypt.log
2018-04-13 14:30:16,807:INFO:root:Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
2018-04-13 14:30:16,862:INFO:root:Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
2018-04-13 14:30:16,885:DEBUG:certbot.main:certbot version: 0.23.0
2018-04-13 14:30:16,885:DEBUG:certbot.main:Arguments: ['--nginx']
2018-04-13 14:30:16,885:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#certbot-external-auth:out,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2018-04-13 14:30:16,900:DEBUG:certbot.log:Root logging level set at 20
2018-04-13 14:30:16,901:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-04-13 14:30:16,903:DEBUG:certbot.plugins.selection:Requested authenticator nginx and installer nginx
2018-04-13 14:30:16,903:DEBUG:certbot.plugins.selection:No candidate plugin
2018-04-13 14:30:16,903:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None

My web server is (include version): nginx/1.10.3 (Ubuntu)

The operating system my web server runs on is (include version): Ubuntu 16.04.4 LTS

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

I don’t know why, but something broke the apt package of python-certbot-nginx. had to installit via pip

pip install certbot-nginx

This fixed the problem

1 Like

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