Failed authorization procedure. rolling-server.bux.fr (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://rolling-server.bux.fr/.well-known/acme-challenge/yjz8b9gnzHgbzoEkzS-_TMfcn7NEaSRIC-ZLKi7oyOE [91.121.134.31]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
I don't understand why the generated certbot file is not accessible. How I'm supposed to use certbot with this virtual host ?
root@s2:~# certbot certonly --webroot -w '/srv/www/bux.fr/rolling-server.bux.fr' -d rolling-server.bux.fr
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Please choose an account
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: s2.bux.fr@2018-07-23T14:06:30Z (4983)
2: s1.bux.fr@2016-05-29T17:23:29Z (25b4)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/rolling-server.bux.fr.conf)
What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Keep the existing certificate for now
2: Renew & replace the cert (limit ~5 per 7 days)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for rolling-server.bux.fr
Using the webroot path /srv/www/bux.fr/rolling-server.bux.fr for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. rolling-server.bux.fr (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://rolling-server.bux.fr/.well-known/acme-challenge/VPyk5R9MtJ6v79sUN70H99VbcOJM2YNXwoo9r3MIXa4 [91.121.134.31]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: rolling-server.bux.fr
Type: unauthorized
Detail: Invalid response from
http://rolling-server.bux.fr/.well-known/acme-challenge/VPyk5R9MtJ6v79sUN70H99VbcOJM2YNXwoo9r3MIXa4
[91.121.134.31]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
2.0//EN\">\n<html><head>\n<title>404 Not
Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
Failed authorization procedure. rolling-server.bux.fr (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://rolling-server.bux.fr/.well-known/acme-challenge/qrwwOvIQtIoB4_vfurP514MbvQa11uUO6zioY0EazRk [91.121.134.31]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
root@s2:~# ls -l /srv/www/bux.fr/rolling-server.bux.fr/.well-known/acme-challenge/
total 4
-rw-r--r-- 1 root root 87 Oct 18 11:23 LxVUKW4jlbW2pYESkgQn_r0lY5auZQO2j_tZl6BhcT4
➜ ~ http http://rolling-server.bux.fr/.well-known/acme-challenge/LxVUKW4jlbW2pYESkgQn_r0lY5auZQO2j_tZl6BhcT4
HTTP/1.1 404 Not Found
I use to face the same problem when i run nginx server then i deleted my nginx default config from sites-enabled after that is work fine try to delete default.conf from your /etc/apache2/sites-enabled