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 --apache fails to identify all domains #7310

Closed
metaperl opened this issue Aug 7, 2019 · 2 comments
Closed

certbot --apache fails to identify all domains #7310

metaperl opened this issue Aug 7, 2019 · 2 comments
Labels
area: apache bug needs-update priority: unplanned Work that we believe should be done, but does not have a higher priority.

Comments

@metaperl
Copy link

metaperl commented Aug 7, 2019

If you're having trouble using Certbot and aren't sure you've found a bug or
request for a new feature, please first try asking for help at
https://community.letsencrypt.org/. There is a much larger community there of
people familiar with the project who will be able to more quickly answer your
questions.

My operating system is (include version):

Linux metta 4.18.16-x86_64-linode118 #1 SMP PREEMPT Mon Oct 29 15:38:25 UTC 2018 x86_64 GNU/Linux

I installed Certbot with (certbot-auto, OS package manager, pip, etc):

apt-get install certbot-apache

I ran this command and it produced this output:

When I run sudo certbot --apache I get this output:

schemelab@metta:/etc/apache2$ sudo certbot --apache
[sudo] password for schemelab:
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which names would you like to activate HTTPS for?
-------------------------------------------------------------------------------
1: cashbackprograms.info
2: www.cashbackprograms.info
3: damnsexychicks.com
4: www.damnsexychicks.com
5: float247.com
6: www.float247.com
7: freegold.biz
8: blog.freegold.biz
9: focus.freegold.biz
10: focusdev.freegold.biz
11: www.freegold.biz
12: iwantyoutoprosper.com
13: taxes.iwantyoutoprosper.com
14: www.iwantyoutoprosper.com
15: livingcosmos.org
16: gru.livingcosmos.org
17: orgasmic-meditation.livingcosmos.org
18: santmat.livingcosmos.org
19: static.livingcosmos.org
20: tmp.livingcosmos.org
21: www.livingcosmos.org
22: metaperl.org
23: tmp.metaperl.org
24: www.metaperl.org
25: sacredspotmassage.org
26: www.sacredspotmassage.org
27: git.thedeepself.org
28: thequietcenter.org
29: www.thequietcenter.org
-------------------------------------------------------------------------------
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):

Certbot's behavior differed from what I expected because:

that output is missing a number of domains in the macro.conf config file, e.g:

Here is a Certbot log showing the issue (if available):

Logs are stored in /var/log/letsencrypt by default. Feel free to redact domains, e-mail and IP addresses as you see fit.
2019-08-07 18: 08: 40,980: DEBUG: certbot.main: Root logging level set at 20
2019-08-07 18: 08: 40,981: INFO: certbot.main: Saving debug log to /var/log/letsencrypt/letsencrypt.log
2019-08-07 18: 08: 40,983: DEBUG: certbot.main: certbot version: 0.10.2
2019-08-07 18: 08: 40,983: DEBUG: certbot.main: Arguments: ['--apache']
2019-08-07 18: 08: 40,984: DEBUG: certbot.main: Discovered plugins: PluginsRegistry (PluginEntryPoint # apache, PluginEntryPoint # webroot, PluginEntryPoint # null, PluginEntryPoint # manual, PluginEntryPoint # standalone)
2019-08-07 18: 08: 40,984: DEBUG: certbot.plugins.selection: Requested authenticator apache and install apache
2019-08-07 18: 08: 41,676: DEBUG: certbot.plugins.selection: Single candidate plugin: * apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IIinstaller, IPlugin
Entry point: apache = certbot_apache.configurator: ApacheConfigurator
Initialized: <certbot_apache.configurator.ApacheConfigurator object at 0x7fb43002c090>
Prep: True
2019-08-07 18: 08: 41,678: DEBUG: certbot.plugins.selection: Selected authenticator <certbot_apache.configurator.ApacheConfigurator object at 0x7fb43002c090> and install <certbot_apache.configurator.ApacheConfigurator object at 0x7fb00
2019-08-07 18: 14: 58,650: WARNING: certbot.util: Invalid email address:.
2019-08-07 18: 14: 59,801: DEBUG: certbot.main: Exiting abnormally:
Traceback (most recent call last):
  File "/ usr / bin / certbot", line 11, in <module>
    load_entry_point ('certbot == 0.10.2', 'console_scripts', 'certbot') ()
  File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 849, in main
    return config.func (config, plugins)
  File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 573, in run
    le_client = _init_le_client (config, authenticator, install)
  File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 399, in _init_le_client
    acc, acme = _determine_account (config)
  File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 369, in _determine_account
    config.namespace.email = display_ops.get_email ()
  File "/usr/lib/python2.7/dist-packages/certbot/display/ops.py", line 50, in get_email
    force_interactive = True)
  File "/usr/lib/python2.7/dist-packages/certbot/display/util.py", line 149, in input
    break_on_hyphens = False))
KeyboardInterrupt

Here is the relevant nginx server block or Apache virtualhost for the domain I am configuring:

My apache system uses mod_macro:
https://httpd.apache.org/docs/2.4/mod/mod_macro.html

Here is my macro.conf config file:
https://gist.github.com/metaperl/14d151c5d2a1dc170f8e94c8fabad025

@bmw bmw added priority: unplanned Work that we believe should be done, but does not have a higher priority. and removed priority: normal labels Mar 24, 2020
@github-actions
Copy link

We've made a lot of changes to Certbot since this issue was opened. If you still have this issue with an up-to-date version of Certbot, can you please add a comment letting us know? This helps us to better see what issues are still affecting our users. If there is no activity in the next 30 days, this issue will be automatically closed.

@github-actions
Copy link

This issue has been closed due to lack of activity, but if you think it should be reopened, please open a new issue with a link to this one and we'll take a look.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: apache bug needs-update priority: unplanned Work that we believe should be done, but does not have a higher priority.
Projects
None yet
Development

No branches or pull requests

3 participants