Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certbot-auto is looking for apache despite following instructions for nginx #3691

Closed
redgluten opened this issue Oct 25, 2016 · 4 comments
Closed

Comments

@redgluten
Copy link

redgluten commented Oct 25, 2016

I started following the instructions for Ubuntu trusty + nginx and the auto install process failed.

Content of letsencrypt.log:

2016-10-25 20:06:06,111:DEBUG:certbot.main:Root logging level set at 20
2016-10-25 20:06:06,111:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2016-10-25 20:06:06,145:DEBUG:certbot.main:certbot version: 0.9.3
2016-10-25 20:06:06,145:DEBUG:certbot.main:Arguments: []
2016-10-25 20:06:06,145:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#standalone,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#webroot,PluginEntryPoint#apache,PluginEntryPoint#null)
2016-10-25 20:06:06,154:DEBUG:certbot.plugins.selection:Requested authenticator None and installer None
2016-10-25 20:06:06,192:WARNING:certbot.plugins.util:Failed to find apache2ctl in PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2016-10-25 20:06:06,199:DEBUG:certbot.plugins.disco:No installation (PluginEntryPoint#apache): Cannot find Apache control command apache2ctl
Traceback (most recent call last):
  File "/home/gluten/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/plugins/disco.py", line 106, in prepare
    self._initialized.prepare()
  File "/home/gluten/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot_apache/configurator.py", line 168, in prepare
    'Cannot find Apache control command {0}'.format(restart_cmd))
NoInstallationError: Cannot find Apache control command apache2ctl
2016-10-25 20:06:06,200:DEBUG:certbot.plugins.selection:No candidate plugin
2016-10-25 20:06:06,201:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None
@bmw
Copy link
Member

bmw commented Oct 26, 2016

The problem here is simply bad documentation on our part. Running certbot-auto both installs Certbot and runs it. In your case, Certbot was successfully installed, but encountered problems when it was running. This is because for your use case, Certbot needs additional commands on the command line.

Try continuing with the "Getting Started" instructions from your link above.

I created certbot/website#165 to fix the problem in our documentation.

@bmw
Copy link
Member

bmw commented Oct 26, 2016

Closing in favor of certbot/website#165.

@bmw bmw closed this as completed Oct 26, 2016
@quangtt-rks
Copy link

I got the same problem here.
Do you guys have any temporary solutions?

@bgbruno
Copy link

bgbruno commented Jun 2, 2017

everything works fine and now nothing works 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants