Certbot --apache has error on debian


Hi. I’ve been able to use apt-get to install python-certbot-apache, but when I run the certbot --apache command. I get the following error in the /var/logs/letsencrypt/letsencrypt.log:

2016-07-28 12:32:43,543:DEBUG:certbot.main:certbot version: 0.8.1
2016-07-28 12:32:43,543:DEBUG:certbot.main:Arguments: ['--apache']
2016-07-28 12:32:43,543:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
2016-07-28 12:32:43,548:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2016-07-28 12:32:44,010:DEBUG:certbot.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server - Alpha
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.configurator:ApacheConfigurator
Initialized: <certbot_apache.configurator.ApacheConfigurator object at 0x7f8826872490>
Prep: True
2016-07-28 12:32:44,011:DEBUG:certbot.plugins.selection:Selected authenticator <certbot_apache.configurator.ApacheConfigurator object at 0x7f8826872490> and installer <certbot_apache.configurator.ApacheConfigurator object at 0x7f8826872490>
2016-07-28 12:32:44,018:DEBUG:certbot.main:Exiting abnormally:
Traceback (most recent call last):
  File "/usr/bin/certbot", line 9, in <module>
    load_entry_point('certbot==0.8.1', 'console_scripts', 'certbot')()
  File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 744, in main
    return config.func(config, plugins)
  File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 498, in run
    domains = _find_domains(config, installer)
  File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 262, in _find_domains
    domains = display_ops.choose_names(installer)
  File "/usr/lib/python2.7/dist-packages/certbot/display/ops.py", line 112, in choose_names
  File "/usr/lib/python2.7/dist-packages/certbot/display/util.py", line 169, in yesno
    yes_label=yes_label, no_label=no_label)
  File "/usr/lib/python2.7/dist-packages/dialog.py", line 3749, in yesno
  File "/usr/lib/python2.7/dist-packages/dialog.py", line 1765, in _widget_with_no_output
    widget_name, output))


Any chance you’re using a very small terminal window while running certbot? See for example this bug:

If that’s not it, as a more general workaround, you could probably avoid running into any kind of PythonDialog issue by running certbot in text-only mode via -t.


@pfg no, i’m using a standard 80x25 iTerm window on OSX.


@pfg If it helps at all, here’s how to reproduce:

  1. Spin up a docker instance of wordpress through docker compose
  2. Login to the docker instance of wordpress: docker exec -it wordpress_wordpress_1 bash
  3. Add backports to sources.list (as suggested by @came88)
  4. Install python-certbot-apache (according to page)
  5. Execute certbot --apache


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