An unexpected error occurred: DialogError


#1

Hi,

First time ever I have this error. I never ever had any issue generating certificates.

Ubuntu 16.10
Digita Ocean
Nginx
Certbot 0.8.1

sudo certbot certonly --agree-tos --webroot -w /var/www/domain.com/latest/public -d domain.com -d www.domain.com -w /var/www/test.domain.com/latest/public -d test.domain.com

Outputs;

An unexpected error occurred:
DialogError
Please see the logfiles in /var/log/letsencrypt for more details.

/var/log/letsencrypt outputs:

File "/usr/lib/python2.7/dist-packages/dialog.py", line 1760, in _widget_with_no_output
    code, output = self._perform(args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dialog.py", line 1541, in _perform
    args_file)
  File "/usr/lib/python2.7/dist-packages/dialog.py", line 1502, in _handle_program_exit
    child_output_rfd)
  File "/usr/lib/python2.7/dist-packages/dialog.py", line 1454, in _wait_for_program_termination
    child_output.strip()))
DialogError

Can I have some help please :slight_smile:


#2

Have you tried updating to the latest Certbot? I think this particular error might have been fixed.


#3

I thought the same but on Ubuntu 16.10, right now:
sudo apt search certbot

Sorting... Done
Full Text Search... Done
certbot/yakkety,now 0.8.1-2 all [installed]
  automatically configure HTTPS using Let's Encrypt

letsencrypt/yakkety 0.8.1-2 all
  transitional dummy package

python-certbot/yakkety,now 0.8.1-2 all [installed,automatic]
  main library for certbot

python-certbot-apache/yakkety 0.8.1-1 all
  Apache plugin for Certbot

python-certbot-apache-doc/yakkety 0.8.1-1 all
  Apache plugin documentation for Certbot

python-certbot-doc/yakkety 0.8.1-2 all
  client documentation for certbot

Only the 0.8.1-2 is available.

When I do a sudo apt update / upgrade there is no certbot update.

:sob:


#4

I suspect the newest version isn’t packaged for Ubuntu 16.10 and you’ll have to install from source or using a PPA.


#5

Thank you very much @cpu

For the records:

sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get upgrade

#6

Now I have the following error:

certbot 0.9.3

An unexpected error occurred:
dialog-like terminated due to an error: the dialog-like program exited with status 3 (which was passed to it as the DIALOG_ERROR environment variable). Sometimes, the reason is simply that dialog was given a height or width parameter that is too big for the terminal in use. Its output, with leading and trailing whitespace stripped, was:

Error: Expected no more than 3 tokens for --infobox, have 30.
Use --help to list options.Please see the logfiles in /var/log/letsencrypt for more details.

Log outputs:

File "/usr/lib/python2.7/dist-packages/dialog.py", line 1760, in _widget_with_no_output
    code, output = self._perform(args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dialog.py", line 1541, in _perform
    args_file)
  File "/usr/lib/python2.7/dist-packages/dialog.py", line 1502, in _handle_program_exit
    child_output_rfd)
  File "/usr/lib/python2.7/dist-packages/dialog.py", line 1454, in _wait_for_program_termination
    child_output.strip()))
DialogError

Mmmm.


#7

Again for the record:

I added the -t option to go without dialog.

It worked properly.


#8

Thanks for updating the thread with your solution breadcrumbs!


#9

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