Certbot renew error: Missing webroot

Posted on March 2, 2020 at 12:30 pm

If you get this error messsage while trying to renew the certs:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/www.website.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for website.com
http-01 challenge for www.website.com
Cleaning up challenges
Attempting to renew cert (www.website.com) from /etc/letsencrypt/renewal/www.website.com.conf produced an unexpected error: Missing command line flag or config entry for this setting:
Input the webroot for website.com:. Skipping.

The issue seems to be related to the webroot_path option.

Example of /etc/letsencrypt/renewal/www.website.com.conf file (that has the issue):

# Options used in the renewal process
[renewalparams]
account = XXX
authenticator = webroot
webroot_path = /var/hosts/website.com/htpdocs,
server = https://acme-v02.api.letsencrypt.org/directory
[[webroot_map]]

Here is how it should be (see that I removed webroot_path):

# Options used in the renewal process
[renewalparams]
account = XXX
authenticator = webroot
server = https://acme-v02.api.letsencrypt.org/directory
[[webroot_map]]
www.website.com = /var/hosts/website.com/htpdocs
website.com = /var/hosts/website.com/htpdocs

Save the file and then ry to renew certs:

/usr/bin/certbot renew

Fixed =)

Receive updates via email

Other Posts

Updated Posts