Let's Encrypt Auto renewal fails on Ubuntu 16 - Virtualmin 6.03 and Webmin 1.930

Hello, there I have this problem my Virtualmin 6.03 and Webmin 1.930.
So every time auto-renewal must done, the certificate stops and give me an error
2020-08-27 21:03:11,040:INFO:certbot.renewal:Cert not yet due for renewal
2020-08-27 21:03:11,040:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/letsencrypt”, line 11, in
load_entry_point(‘certbot==0.31.0’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1365, in main
return config.func(config, plugins)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1243, in certonly
should_get_cert, lineage = _find_cert(config, domains, certname)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 286, in _find_cert
action, lineage = _find_lineage_for_domains_and_certname(config, domains, certname)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 323, in _find_lineage_for_domains_and_certname
return _handle_identical_cert_request(config, lineage)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 217, in _handle_identical_cert_request
default=0, force_interactive=True)
File “/usr/lib/python3/dist-packages/certbot/display/util.py”, line 155, in menu
code, selection = self._get_valid_int_ans(len(choices))
File “/usr/lib/python3/dist-packages/certbot/display/util.py”, line 418, in _get_valid_int_ans
ans = input_with_timeout(input_msg)
File “/usr/lib/python3/dist-packages/certbot/display/util.py”, line 85, in input_with_timeout
raise EOFError
EOFError
2020-08-27 21:03:11,041:ERROR:certbot.log:An unexpected error occurred:

every time I have to remove my domain files from /etc/letsencrypt/ files and then I have to renew it manually.
This been more than 3 months.
How can I fix that.

Hello @Bsara and welcome to the community.

There have been several updates to the version of Virtualmin and Webmin that you are using and some of them relate to SSL / certbot. Would you like to update to the latest version and see if this fixes the issue?

I updated all the updates.

Do you see this on the Dashboard:

Webmin version 1.955 Usermin version 1.803
Virtualmin version 6.12 Authentic theme version 19.54

In Webmin -> System -> Software Package Updates, could you apply these settings so that you get update notifications:

I did it but nothing happen.

Please await possible suggestions from @Ilia or others about how your Ubuntu 16 system can be updated to the latest Virtualmin.

Hi,

Please await possible suggestions from @Ilia or others about how your Ubuntu 16 system can be updated to the latest Virtualmin.

Thanks, for pinging me.

I assume, you have old repos configured.

What is the output of either:

cat /etc/apt/sources.list

… or

/etc/apt/sources.list.d/virtualmin.list

Welcome to Ubuntu 16.04.7 LTS (GNU/Linux 4.4.0-187-generic x86_64)

Get cloud support with Ubuntu Advantage Cloud Guest:
Pricing | Ubuntu

1 package can be updated.
0 updates are security updates.

New release ‘18.04.5 LTS’ available.
Run ‘do-release-upgrade’ to upgrade to it.

Last login: Thu Aug 27 21:02:31 2020 from 197.62.131.230
ubuntu@s1:~$ sudo cat /etc/apt/sources.list
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu xenial universe
deb-src http://archive.ubuntu.com/ubuntu xenial universe
deb http://archive.ubuntu.com/ubuntu xenial-updates universe
deb-src http://archive.ubuntu.com/ubuntu xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
#deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
ls -l  /etc/apt/sources.list.d/
total 32
-rw-r--r-- 1 root root 134 Apr 14 00:10 certbot-ubuntu-certbot-xenial.list
-rw-r--r-- 1 root root 134 Apr 14 00:10 certbot-ubuntu-certbot-xenial.list.save
-rw-r--r-- 1 root root 136 Apr 14 00:10 nginx-ubuntu-development-xenial.list
-rw-r--r-- 1 root root 136 Apr 14 00:10 nginx-ubuntu-development-xenial.list.save
-rw-r--r-- 1 root root 110 Apr 14 00:10 nodesource.list
-rw-r--r-- 1 root root 110 Apr 14 00:10 nodesource.list.save
-rw-r--r-- 1 root root 254 Apr 14 00:10 ondrej-ubuntu-php-xenial.list
-rw-r--r-- 1 root root 254 Apr 14 00:10 ondrej-ubuntu-php-xenial.list.save

There is no virtualmin.list

If thats the full source.list, then something got removed or broken.
It should contain the references to other files (which got the repo’s for virtualmin/etc) or it should be placed directly in the file.

Okay, do the following to fix it:

  1. Open an editor in the console:
nano /etc/apt/sources.list.d/virtualmin.list
  1. Copy/paste the following lines into it:
deb https://software.virtualmin.com/vm/6/gpl/apt virtualmin-xenial main
deb https://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main
  1. Run update:
apt-get update && apt-get upgrade
  1. Enjoy having latest Webmin and Virtualmin updates. :wink:
1 Like

I have tried that and I will wait until the next renew date.

You could also just try to manually do a renew.

The problem was in auto renewal not on the manual.

I might be wrong here, but I think both are the same except one is triggered from cron or other timed services. Didn’t meant to be rude with my previous post, its just thats the information I found about it.

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