Sudo cerbot renew fails on Ubuntu 14.04

My domain is: ficsisters.com

I ran this command: sudo certbot renew

It produced this output:


sudo certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/www.ficsisters.com.conf

Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Performing the following challenges:
tls-sni-01 challenge for ficsisters.com
tls-sni-01 challenge for www.ficsisters.com
nginx: [emerg] duplicate listen options for [::]:443 in /etc/nginx/sites-enabled/default:266
Cleaning up challenges
nginx: [warn] conflicting server name “www.ficsisters.com” on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name “www.ficsisters.com” on [::]:80, ignored
Attempting to renew cert (www.ficsisters.com) from /etc/letsencrypt/renewal/www.ficsisters.com.conf produced an unexpected error: nginx restart failed:
b’’
b’’. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/www.ficsisters.com/fullchain.pem (failure)

My web server is (include version): nginx/1.13.9

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

My hosting provider, if applicable, is: Ubuntu 14.04

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): raw ssh access (no panel)

But dryrun works

sudo certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/www.ficsisters.com.conf

Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for ficsisters.com
http-01 challenge for www.ficsisters.com
nginx: [warn] conflicting server name “www.ficsisters.com” on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name “www.ficsisters.com” on [::]:80, ignored
Waiting for verification…
Cleaning up challenges
nginx: [warn] conflicting server name “www.ficsisters.com” on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name “www.ficsisters.com” on [::]:80, ignored
nginx: [warn] conflicting server name “www.ficsisters.com” on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name “www.ficsisters.com” on [::]:80, ignored


new certificate deployed with reload of nginx server; fullchain is
/etc/letsencrypt/live/www.ficsisters.com/fullchain.pem


** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)

Congratulations, all renewals succeeded. The following certs have been renewed:
/etc/letsencrypt/live/www.ficsisters.com/fullchain.pem (success)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)

The main thing I see is that the dry-run is using http-01, whereas the live run is using tls-sni-01.

You could try make the live run use the same parameters:

sudo certbot renew --preferred-challenges http

This seems to need attention:

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