Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Letsencrypt renewal fails: Could not bind to IPv4 or IPv6.. Skipping

Tags:

lets-encrypt

The full error message I'm getting is:

Attempting to renew cert from /etc/letsencrypt/renewal/somedomain.com.conf produced an unexpected error: Problem binding to port 443: Could not bind to IPv4 or IPv6.. Skipping.

This is running on an AWS ubuntu 14.04 instance. All ports are open outgoing and 443 is open incoming.

like image 880
Anthony Ainsworth Avatar asked Jun 30 '17 21:06

Anthony Ainsworth


2 Answers

you probably run the script with (preconfigurated) --standalone when your server is already running at port 443.

You can stop server before renew and start them after.

man says:

--apache          Use the Apache plugin for authentication & installation
--standalone      Run a standalone webserver for authentication
--nginx           Use the Nginx plugin for authentication & installation
--webroot         Place files in a server's webroot folder for authentication
--manual          Obtain certificates interactively, or using shell script hooks

If I run renew with --apache I can't get any error.

like image 57
JKLIR Avatar answered Nov 15 '22 21:11

JKLIR


You just need to stop all running servers like Apache, nginx or OpenShift before doing this.

Stop Nginx

sudo systemctl stop nginx

Stop Apache2

sudo systemctl stop apache2
like image 88
shadaï ALI Avatar answered Nov 15 '22 23:11

shadaï ALI