My domain is: jpoliveras.com
I ran this command: sudo certbot renew
It produced this output:
--- Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: jpoliveras.com
Type: unauthorized
Detail: 82.180.161.91: Invalid response from http://jpoliveras.com/.well-known/acme-challenge/ZPC6-hd8wk9Y5aajQx4_nW0cLezj0mV0g-eoxZO_QPA: "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, init"
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
Failed to renew certificate jpoliveras.com with error: Some challenges have failed.
All renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/jpoliveras.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
Network console gives me a 200 response on Vite App and I read this should be returning a 404 instead since the text-file does not exist
The config file for certbot has authenticator set to webroot and an added webroot_maps section set already so I don't need to specify webroot
I do believe the cert was created using a standalone authenticator when I first acquired the VPS and SSH'd into it, not sure if this is causing any renewal issues
This is my first time trying to renew the cert.
Usually I don't like asking for help and do find a solution via trial and error and using all the available solutions I research, but I need this solved asap so my site doesn't go down and I can focus on some other more important work.
My web server is (include version):
LiteSpeed/1.7.19
The operating system my web server runs on is (include version):
Ubuntu 22.04.4
My hosting provider, if applicable, is:
Hostinger VPS + GoDaddy registrar
I can login to a root shell on my machine (yes or no, or I don't know):
SSH key via Putty
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
Lightspeed WebAdmin Console 1.7.19
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot 1.21.0
Some code infrastructure info:
Docker compose yml
Frontend:
Dockerfile
Backend:
Dockerfile
SSL certs mounted as volumes from root letsencrypt directory to specified directory in docker container
Frontend hosts Vue app on port 3000
Backend hosts Django app using Gunicorn wsgi on port 8000
OLS settings:
Listeners:
HTTP 80
HTTPS 443 , secured set to Yes
mapped to my virtual host jpoliveras.com
Virtual host:
jpoliveras.com
document root:
/root/jp_portfolio_site/
(im learning this isn't best practice but this is what I setup when I initially got the VPS using guidance from Hostinger ai bot)
domain name:
jpoliveras.com
domain alias:
www.jpoliveras.com
2 external apps:
dockerserve
GunicornApp
Context:
/ context points to the dockerserve
/api context points to GunicornApp
I added an additional context for /.well-known/
with location: /root/jp_portfolio_site/.well-known/
and accessible set to Yes
Rewrite:
i did have a rewrite rule for http to https on all paths but temporarily deleted incase that was
causing issues with the HTTP-01 challenge
if anymore info is needed I'll gladly provide it