Closed nabriis closed 7 years ago
Indeed, that was copied from a docker deployment without proper updating.
Can you try running:
certbot-auto renew --nginx
?
Scratch that, run:
certbot-auto renew --webroot --webroot-path=/etc/letsencrypt/webroot
service reload nginx
and see if that works. If it does, I'll update the file.
I ended up doing the following:
date >> /var/log/letsencrypt.log
kill -s HUP $( pgrep -o nginx )
fuser -k 443/tcp
fuser -k 80/tcp
certbot-auto renew --no-self-upgrade 2>&1 &>> /var/log/letsencrypt.log
sleep 10
fuser -k 443/tcp
fuser -k 80/tcp
service nginx --full-restart
service nginx reload
which seemed to work. Not very optimal i guess.
@minrk when running
certbot-auto renew --webroot --webroot-path=/etc/letsencrypt/webroot
service reload nginx
I get an error:
Upgrading certbot-auto 0.13.0 to 0.15.0...
Replacing certbot-auto...
Creating virtual environment...
Installing Python packages...
Installation succeeded.
/etc/letsencrypt/webroot does not exist or is not a directory
Try:
mkdir -p /etc/letsencrypt/webroot
first, then run it again. nginx is already serving that directory for letsencrypt upgrades.
Ok seems to work now. Although i can't really test if the cerbot gets a connection since the certificate is not due for renewal anymore.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/[hostname].conf
-------------------------------------------------------------------------------
Cert not yet due for renewal
The following certs are not due for renewal yet:
/etc/letsencrypt/live/[hostname]/fullchain.pem (skipped)
No renewals were attempted.
Thanks for the help :)
Thanks! We'll have to wait until a renewal is needed to test for real. #80 should fix it.
Hi , While setup the Jupyterhub, I saw that the let's encrypt auto-renew the certificate. But my certificate is not renewing. I saw this issue, but I am not able to figure out where we have to run this bash file or auto-renew commands
Hi,
I have been running this setup for a while now and it was time for the letsencrypt certificates to auto renew.
However i get the following error:
In the letsencrypt renew file that is within cron.daily it seems to have a command with docker. I assume this is a mistake?