I took a look at the many other problem that seem related, but none seemed to apply.
I configured letsencrypt about a month back on ubuntu 14.04 and all went well. Now when I am trying to renew it, it fails with this message:
sudo /opt/letsencrypt/letsencrypt-auto renew
-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/daleeaglesham.com.conf
-------------------------------------------------------------------------------
2016-06-12 09:39:48,106:WARNING:certbot.renewal:Attempting to renew cert from /etc/letsencrypt/renewal/daleeaglesham.com.conf produced an unexpected error: Failed authorization procedure. www.daleeaglesham.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.daleeaglesham.com/.well-known/acme-challenge/kzjpRp50H2rYR2qQZWYZBNfbrtsrsjm6fmEKjeww4-M: "<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>". Skipping.
-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/glutenetnous.com.conf
-------------------------------------------------------------------------------
The following certs are not due for renewal yet:
/etc/letsencrypt/live/glutenetnous.com/fullchain.pem (skipped)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/daleeaglesham.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: www.daleeaglesham.com
Type: unauthorized
Detail: Invalid response from
http://www.daleeaglesham.com/.well-known/acme-challenge/kzjpRp50H2rYR2qQZWYZBNfbrtsrsjm6fmEKjeww4-M:
"<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
I put a file in /.well-known/acme-challenge/ and I can access it no problem in the web browser.
This is from the access log after running the renew process:
66.133.109.36 - - [12/Jun/2016:10:54:50 -0400] "GET /.well-known/acme-challenge/tKXqlaVj5QNMfCLAliHwHTiGAS7ZSNg3kW59lBfbppg HTTP/1.1" 301 185 "-" "Mozilla/5.0 (compatible; Let's Encrypt validation server; +https://www.letsencrypt.org)"
66.133.109.36 - - [12/Jun/2016:10:54:50 -0400] "GET /.well-known/acme-challenge/BlX02psJsdnMaRcT2pmA_JlV0Sv8R9iT55AqjEiJBBM HTTP/1.1" 301 185 "-" "Mozilla/5.0 (compatible; Let's Encrypt validation server; +https://www.letsencrypt.org)"
66.133.109.36 - - [12/Jun/2016:10:54:50 -0400] "GET /.well-known/acme-challenge/tKXqlaVj5QNMfCLAliHwHTiGAS7ZSNg3kW59lBfbppg HTTP/1.1" 200 87 "http://daleeaglesham.com/.well-known/acme-challenge/tKXqlaVj5QNMfCLAliHwHTiGAS7ZSNg3kW59lBfbpplBfbppg" "Mozilla/5.0 (compatible; Let's Encrypt validation server; +https://www.letsencrypt.org)"
66.133.109.36 - - [12/Jun/2016:10:54:50 -0400] "GET /.well-known/acme-challenge/BlX02psJsdnMaRcT2pmA_JlV0Sv8R9iT55AqjEiJBBM HTTP/1.1" 404 162 "http://www.daleeaglesham.com/.well-known/acme-challenge/BlX02psJsdnMaRcT2pmA_JlV0Sv8R9iT55AqjT55AqjEiJBBM" "Mozilla/5.0 (compatible; Let's Encrypt validation server; +https://www.letsencrypt.org)"
Any help ?