I ran this command:
certbot renew
It produced this output:Saving debug log to /var/log/letsencrypt/letsencrypt.log - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Processing /etc/letsencrypt/renewal/customerdomain.conf - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Traceback (most recent call last): File "/usr/lib/python3/dist-packages/certbot/renewal.py", line 68, in _reconstitute renewal_candidate = storage.RenewableCert(full_path, config) File "/usr/lib/python3/dist-packages/certbot/storage.py", line 463, in __init__ self._check_symlinks() File "/usr/lib/python3/dist-packages/certbot/storage.py", line 522, in _check_symlinks "expected {0} to be a symlink".format(link)) certbot.errors.CertStorageError: expected /etc/letsencrypt/live/customerdomain/fullchain.pem to be a symlink Renewal configuration file /etc/letsencrypt/renewal/customerdomain.conf is broken. Skipping.
My web server is (include version):
nginx/1.14.2The operating system my web server runs on is (include version):
Debian 10My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
yesI'm using a control panel to manage my site (no, or provide the name and version of the control panel):
noThe version of my client is (e.g. output of
certbot --version
orcertbot-auto --version
if you're using Certbot):
certbot 0.31.0
Hello,
Somehow the symlink from the fullchain.pem file gets removed and i'm not sure why. This is the result ls -l on the live folder:
total 8
-rw-r--r-- 1 root root 692 Feb 17 2021 README
lrwxrwxrwx 1 root root 51 Nov 15 10:19 cert.pem -> ../../archive/customerdomain/cert4.pem
lrwxrwxrwx 1 root root 52 Nov 15 10:19 chain.pem -> ../../archive/customerdomain/chain4.pem
-rw-r--r-- 1 root root 3706 Oct 14 03:44 fullchain.pem
lrwxrwxrwx 1 root root 54 Nov 15 10:19 privkey.pem -> ../../archive/customerdomain/privkey4.pem
I restored the symlink using
rm fullchain.pem
ln -s ../../archive/customerdomain/fullchain4.pem fullchain.pem
This seemed to fix the issue and i could run certbot renew again. But this issue has happened at multiple customer servers right now, so I need to figure out why this is happening. The servers are used for 3CX VoIP systems. The 3CX NGINX service is using the certificates from the /etc/letsencrypt/live folder.
Could this be an rights issue on the live and archive folders? What should those rights be?
Thank you