I meet some problem for the first install

My domain is:www.sandartgift.com

I ran this command: certbot renew --dry-run

It produced this output:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/certbot/_internal/renewal.py", line 71, in _reconstitute
renewal_candidate = storage.RenewableCert(full_path, config)
File "/usr/lib/python2.7/site-packages/certbot/_internal/storage.py", line 451, in init
"file reference".format(self.configfile))
CertStorageError: renewal config file {} is missing a required file reference
Renewal configuration file /etc/letsencrypt/renewal/your_domain.conf is broken. Skipping.

My web server is (include version): Apache

The operating system my web server runs on is (include version): centos7

My hosting provider, if applicable, is:Linod

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. I use command to install certbot

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):I don't know. I just use this command “yum install -y certbot” to install

I have another question:
I write this command "30 2 * * * certbot renew --noninteractive" after crontab -e,
because I want to renew it auto.
so is that all I should do ?
other people say it will write "renew_hook = systemctl reload rabbitmq" in the file
/etc/letsencrypt/renewal/your_domain.conf
is that necessary?

1 Like

Hi @eloise, and welcome to the LE community forum :slight_smile:

Try using sudo:
sudo certbot renew --dry-run

If that also fails, then show the "broken" file.

Yes, you should restart/reload anything that uses a cert after each renewal.

The topic title is a bit confusing OR I'm easily confused - LOL
Let's check that you already have a cert, with:
certbot certificates

3 Likes

Thank you for your reply
after I use the command sudo certbot renew --dry-run
it also show this:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/certbot/_internal/renewal.py", line 71, in _reconstitute
renewal_candidate = storage.RenewableCert(full_path, config)
File "/usr/lib/python2.7/site-packages/certbot/_internal/storage.py", line 451, in init
"file reference".format(self.configfile))
CertStorageError: renewal config file {} is missing a required file reference
Renewal configuration file /etc/letsencrypt/renewal/your_domain.conf is broken. Skipping.

then I write the command certbot certificates,it show this :

Renewal configuration file /etc/letsencrypt/renewal/your_domain.conf produced an unexpected error: renewal config file {} is missing a required file reference. Skipping.

I use cloudflare CDN and I let certbot use cloudflare API to renew it

Please show these actual outputs:
ls -l /etc/letsencrypt/renewal/
certbot certificates

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.