Error running certbot

Hey there,

I installed certbot on my ubuntu 17.04 successfully but when I run:

sudo certbot --apache

I get the following error:`

sudo certbot --apache
[sudo] password for vps: 
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which names would you like to activate HTTPS for?
-------------------------------------------------------------------------------
1: babataher.org
2: forum.babataher.org
-------------------------------------------------------------------------------
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1,2
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for babataher.org
tls-sni-01 challenge for forum.babataher.org
Cleaning up challenges
File: 
 - Could not be found to be deleted /var/lib/letsencrypt/WKMjjxei-84cBk3gCmds4R-EMiioUgswQcAtFsleliI.pem - Certbot probably shut down unexpectedly
File: 
 - Could not be found to be deleted /var/lib/letsencrypt/WKMjjxei-84cBk3gCmds4R-EMiioUgswQcAtFsleliI.crt - Certbot probably shut down unexpectedly
An unexpected error occurred:
AttributeError: 'module' object has no attribute 'rand'
Please see the logfiles in /var/log/letsencrypt for more details.

Hi @pharb0d,

Did you run Certbot just once, or did you run it multiple times? How did you install Certbot on this system?

And could you post the logs from /var/log/letsencrypt somewhere?

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