I ran this command:
certbot renew --quiet --no-self-upgrade
It produced this output:
Attempting to renew cert (git.patrikdufresne.com) from /etc/letsencrypt/renewal/git.patrikdufresne.com.conf produced an unexpected error: urn:ietf:params:acme:error:rateLimited :: There were too many requests of a given type :: Error creating new order :: too many certificates already issued for exact set of domains: git.patrikdufresne.com: see https://letsencrypt.org/docs/rate-limits/. Skipping.
Attempting to renew cert (demo.patrikdufresne.com) from /etc/letsencrypt/renewal/demo.patrikdufresne.com.conf produced an unexpected error: urn:ietf:params:acme:error:rateLimited :: There were too many requests of a given type :: Error creating new order :: too many certificates already issued for exact set of domains: demo.patrikdufresne.com: see https://letsencrypt.org/docs/rate-limits/. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/git.patrikdufresne.com/fullchain.pem (failure)
/etc/letsencrypt/live/demo.patrikdufresne.com/fullchain.pem (failure)
2 renew failure(s), 0 parse failure(s)
My web server is (include version):
apache2 2.4.25-3+deb9u9
The operating system my web server runs on is (include version):
Debian Stretch
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
certbot 0.28.0
I’m faced with this issue for some time now. The renew command is ran once a day at 3:30 EST and it’s failing most of the time.
May I run this command every day ?
Could I get more info about witch rate limit get reached ?
My certificate expire on Nov 14, I really want to get this fixed before
It's recommended to run it at random times twice a day -- in fact, the Certbot package should already have set up a systemd timer doing just that.
certbot renew should only actually renew your certificates when it's necessary, when they will expire in less than 30 days (by default). If it's issuing duplicate certificates three times a day, something is wrong.
Can you post the output of "sudo certbot certificates"?
It’s recommended to run it at random times twice a day – in fact, the Certbot package should already have set up a systemd timer doing just that.
Ok, I found the systemd timer. So cronjob should not be required. I will remove it.
certbot renew should only actually renew your certificates when it’s necessary
This is my understanding. Yep. So I’m still wondering why I’m reaching the ratelimit ! I shouldbe able to run cerbot renew many time without issues.
If it’s issuing duplicate certificates three times a day, something is wrong.
I saw this in the comments above. Wasn’t sure if it’s related.
Can you post the output of “ sudo certbot certificates ”?
Here it is.
I think the cerbot renew worked to day
I looked into the let-encrypt log since it ran this morning. I notice a problem with the renewal of git.patrikdufresne.com. It creating the files under /etc/letsencrypt/archive/git.patrikdufresne.com/cert2.pem. But the symbolic links in /etc/letsencrypt/live/git.patrikdufresne.com/ are pointing to cert1.pem instead.
So basically, the cert are there on the server, but not used since the symbolic link is pointing to the wrong one.