Question

Lets Encrypt error with ubuntu 16.04

Hello, I’m newbie and I’m trying to use letsencrypt on my site following this tutorial https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04 but it gives the following error below. Can someone help me…

Error while running apache2ctl graceful. httpd not running, trying to start Action ‘graceful’ failed. The Apache error log may have more information.

AH00112: Warning: DocumentRoot [/var/lib/letsencrypt/tls_sni_01_page/] does not exist AH00112: Warning: DocumentRoot [/var/lib/letsencrypt/tls_sni_01_page/] does not exist AH00558: apache2: Could not reliably determine the server’s fully qualified doma in name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress th is message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8 0 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0. 0:80 no listening sockets available, shutting down AH00015: Unable to open logs

Cleaning up challenges Error while running apache2ctl graceful. httpd not running, trying to start Action ‘graceful’ failed. The Apache error log may have more information.

AH00558: apache2: Could not reliably determine the server’s fully qualified doma in name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress th is message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8 0 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0. 0:80 no listening sockets available, shutting down AH00015: Unable to open logs

Encountered exception during recovery Error while running apache2ctl graceful. httpd not running, trying to start Action ‘graceful’ failed. The Apache error log may have more information.

AH00558: apache2: Could not reliably determine the server’s fully qualified doma in name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress th is message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8 0 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0. 0:80 no listening sockets available, shutting down AH00015: Unable to open logs Traceback (most recent call last): File “/usr/lib/python2.7/dist-packages/certbot/error_handler.py”, line 99, in _call_registered self.funcs-1 File “/usr/lib/python2.7/dist-packages/certbot/auth_handler.py”, line 284, in _cleanup_challenges self.auth.cleanup(achalls) File “/usr/lib/python2.7/dist-packages/certbot_apache/configurator.py”, line 1 908, in cleanup self.restart() File “/usr/lib/python2.7/dist-packages/certbot_apache/configurator.py”, line 1 797, in restart self._reload() File “/usr/lib/python2.7/dist-packages/certbot_apache/configurator.py”, line 1 808, in _reload raise errors.MisconfigurationError(str(err)) MisconfigurationError: Error while running apache2ctl graceful. httpd not running, trying to start Action ‘graceful’ failed. The Apache error log may have more information.

AH00558: apache2: Could not reliably determine the server’s fully qualified doma in name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress th is message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8 0 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0. 0:80 no listening sockets available, shutting down AH00015: Unable to open logs


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hi @erikolombardi

Does it give the error, when you’re trying to run this command?

sudo certbot --apache -d yourdomain.com

Have you setup Apache already or are you trying to install Let’s Encrypt on a new installation?

Can you also run this command to list the services listening on the ports:

sudo lsof -iTCP -sTCP:LISTEN -P

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I am facing the same issue with a Litespeed WordPress server. Your documentation is really poor. This is insane.

I am facing the same issue here. So I tried on the command you gave and this is what returned

bitnami@ip-172-31-34-42:~$ sudo lsof -iTCP -sTCP:LISTEN -P COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME sshd 1156 root 3u IPv4 14885 0t0 TCP *:22 (LISTEN) sshd 1156 root 4u IPv6 14887 0t0 TCP *:22 (LISTEN) mysqld.bi 3611 mysql 18u IPv4 19203 0t0 TCP localhost:3306 (LISTEN) httpd.bin 15708 daemon 4u IPv6 53753 0t0 TCP *:80 (LISTEN) httpd.bin 15708 daemon 6u IPv6 53763 0t0 TCP *:443 (LISTEN) httpd.bin 15709 daemon 4u IPv6 53753 0t0 TCP *:80 (LISTEN) httpd.bin 15709 daemon 6u IPv6 53763 0t0 TCP *:443 (LISTEN)

Would you please help me as well?