Help with Auto Renew

Trying to renovate my certificate but it results a Nginx error.

My domain is: www.tristris.com.br

I ran this command:
sudo certbot renew

It produced this output:

My web server is (include version):
Cert is due for renewal, auto-renewing…
Error while running nginx -c /etc/nginx/nginx.conf -t.

nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/rigra.com.br/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/etc/letsencrypt/live/rigra.com.br/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

Could not choose appropriate plugin: The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(‘Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] BIO_new_file("/etc/letsencrypt/live/rigra.com.br/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/etc/letsencrypt/live/rigra.com.br/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n’,)
Attempting to renew cert (tristris.com.br) from /etc/letsencrypt/renewal/tristris.com.br.conf produced an unexpected error: The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(‘Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] BIO_new_file("/etc/letsencrypt/live/rigra.com.br/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/etc/letsencrypt/live/rigra.com.br/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n’,). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/tristris.com.br/fullchain.pem (failure)

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

My hosting provider, if applicable, is: Digital Ocean

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):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): certbot 0.31.0

Hi @facildeanotar

why is there no file? Did you delete that certificate?

Remove your port 443 vHost, create a new certificate and let Certbot create a working vHost.

First, make a backup.

1 Like

PS: Checked your domain there is a new Letsencrypt certificate - https://check-your-website.server-daten.de/?q=tristris.com.br

CN=tristris.com.br
	20.01.2020
	19.04.2020
expires in 90 days	tristris.com.br, www.tristris.com.br - 2 entries

So no problem is visible.

Some minor things, you may fix, a redirect https -> http is bad.

1 Like

Thanks so much. Sorry for the time. I got a personal accident in the same day. Worked for me.

1 Like

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