Can't renew after updating Ubuntu Server from 16.04 to 18.04

Hello:

I recently upgraded Ubuntu Server from 16.04 to 18.04 on a few servers (sudo do-release-upgrade).

I just went to do a renewal on one of those servers and I received the following:



Processing /etc/letsencrypt/renewal/www.myserver.com.conf

Renewal configuration file /etc/letsencrypt/renewal/www.myserver.com.conf (cert: www.myserver.com) produced an unexpected error: ‘Namespace’ object has no attribute ‘apache_enmod’. Skipping.


Processing /etc/letsencrypt/renewal/www.myserver2.com.conf

Renewal configuration file /etc/letsencrypt/renewal/www.myserver.2com.conf (cert: www.myserver2.com) produced an unexpected error: ‘Namespace’ object has no attribute ‘apache_enmod’. Skipping.


No renewals were attempted.

Additionally, the following renewal configuration files were invalid:
/etc/letsencrypt/renewal/www.myserver.com.conf (parsefail)
/etc/letsencrypt/renewal/www.myserver2.com.conf (parsefail)


I am assuming this is because of the upgrade.
I have seen a few different responses to similar problems.

At this point in time, what is the best thing to do to fix this, especially since I now have multiple servers to fix with presumably the same issue?

Thank you as always!

Hi,

This is a existing issue in certbot, have you tried the fix below?

Reinstall python-certbot-apache

From:

Thank you

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