Thanks for the explanation. The command we run at the moment is
./certbot-auto certonly --expand --non-interactive --agree-tos --email *** --webroot -w /tmp/letsencrypt/ -d janmaes.be,www.janmaes.be
Trough the course of the project url's get added and removed like you described so this will probably be the problem. Do you have any suggestions how to avoid this in the future? I guess we will have to make our renewal script a bit smarter and also build in some cleanup work for the lineages we don't want. What is the safest way to proceed now and clean up the old lineages once we find the correct ones? Just delete the conf file?
@sahsanu
I don't know if it's still relevant but here is the complete command
root@jenkins:/home/calibrate# ls -la /etc/letsencrypt/live/janmaes.be
total 12
drwxr-xr-x 2 root root 4096 May 13 09:39 .
drwx------ 94 root root 4096 May 16 19:00 ..
lrwxrwxrwx 1 root root 39 May 13 09:39 cert.pem -> ../../archive/janmaes.be-0003/cert1.pem
lrwxrwxrwx 1 root root 40 May 13 09:39 chain.pem -> ../../archive/janmaes.be-0003/chain1.pem
lrwxrwxrwx 1 root root 44 May 13 09:39 fullchain.pem -> ../../archive/janmaes.be-0003/fullchain1.pem
lrwxrwxrwx 1 root root 42 May 13 09:39 privkey.pem -> ../../archive/janmaes.be-0003/privkey1.pem
-rw-r--r-- 1 root root 543 Mar 7 19:24 README
cat /etc/letsencrypt/renewal/janmaes.be-0001.conf
# renew_before_expiry = 30 days
version = 0.11.1
cert = /etc/letsencrypt/live/janmaes.be-0001/cert.pem
privkey = /etc/letsencrypt/live/janmaes.be-0001/privkey.pem
chain = /etc/letsencrypt/live/janmaes.be-0001/chain.pem
fullchain = /etc/letsencrypt/live/janmaes.be-0001/fullchain.pem
archive_dir = /etc/letsencrypt/archive/janmaes.be-0001
# Options used in the renewal process
[renewalparams]
authenticator = webroot
installer = None
account = 6a7f9bd03c7fdcc03d9d6b5f9f02a1ab
webroot_path = /tmp/letsencrypt,
[[webroot_map]]
janmaes.be = /tmp/letsencrypt
www.janmaes.be = /tmp/letsencrypt
cat /etc/letsencrypt/renewal/janmaes.be-0002.conf
# renew_before_expiry = 30 days
version = 0.12.0
archive_dir = /etc/letsencrypt/archive/janmaes.be-0002
cert = /etc/letsencrypt/live/janmaes.be-0002/cert.pem
privkey = /etc/letsencrypt/live/janmaes.be-0002/privkey.pem
chain = /etc/letsencrypt/live/janmaes.be-0002/chain.pem
fullchain = /etc/letsencrypt/live/janmaes.be-0002/fullchain.pem
# Options used in the renewal process
[renewalparams]
authenticator = webroot
installer = None
account = 6a7f9bd03c7fdcc03d9d6b5f9f02a1ab
webroot_path = /tmp/letsencrypt,
[[webroot_map]]
janmaes.be = /tmp/letsencrypt
www.janmaes.be = /tmp/letsencrypt
cat /etc/letsencrypt/renewal/janmaes.be-0003.conf
# renew_before_expiry = 30 days
version = 0.12.0
archive_dir = /etc/letsencrypt/archive/janmaes.be-0003
cert = /etc/letsencrypt/live/janmaes.be-0003/cert.pem
privkey = /etc/letsencrypt/live/janmaes.be-0003/privkey.pem
chain = /etc/letsencrypt/live/janmaes.be-0003/chain.pem
fullchain = /etc/letsencrypt/live/janmaes.be-0003/fullchain.pem
# Options used in the renewal process
[renewalparams]
authenticator = webroot
installer = None
account = 6a7f9bd03c7fdcc03d9d6b5f9f02a1ab
webroot_path = /tmp/letsencrypt,
[[webroot_map]]
janmaes.be = /tmp/letsencrypt
www.janmaes.be = /tmp/letsencrypt
cat /etc/letsencrypt/renewal/janmaes.be.conf
# renew_before_expiry = 30 days
version = 0.14.0
cert = /etc/letsencrypt/live/janmaes.be/cert.pem
privkey = /etc/letsencrypt/live/janmaes.be/privkey.pem
chain = /etc/letsencrypt/live/janmaes.be/chain.pem
fullchain = /etc/letsencrypt/live/janmaes.be/fullchain.pem
archive_dir = /etc/letsencrypt/archive/janmaes.be
# Options used in the renewal process
[renewalparams]
authenticator = webroot
installer = None
account = 6a7f9bd03c7fdcc03d9d6b5f9f02a1ab
webroot_path = /tmp/letsencrypt,
[[webroot_map]]
janmaes.be = /tmp/letsencrypt
www.janmaes.be = /tmp/letsencrypt