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

Anthony Ainsworth picture Anthony Ainsworth · Jun 30, 2017 · Viewed 45.3k times · Source

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.

Anyone have any ideas?

Answer

JKLIR picture JKLIR · Sep 17, 2017

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.