Is there a core.terragaming.co.uk-le-ssl.conf file ? if so whats in that ? if not, what’s renaming things in the sites-enabled folder ? (some control panels rename files in different ways )
There is no core.terragaming.co.uk-le-ssl.conf before the lets encrypt client runs, and it is deleted afterwards when the client reverts the changes after the error.
And i am not using any control panels, just a LAMP stack installed on Ubuntu 14.04.
Tried that, It scrolled through a bunch of normal logs, but once it started the ui, it went to quickly to read and there is no way to scroll up inside the ui.
Everything above whats pasted bellow seems normal, and there is nothing in /var/log/apache2/error.log…
2015-12-19 15:33:50,450:DEBUG:letsencrypt.error_handler:Encountered exception:
Traceback (most recent call last):
File "/home/terra/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py", line 385, in deploy_certificate
self.installer.restart()
File "/home/terra/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt_apache/configurator.py", line 1221, in restart
self.config_test()
File "/home/terra/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt_apache/configurator.py", line 1244, in config_test
MisconfigurationError: Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 14 of /etc/apache2/sites-enabled/core.terragaming.co.uk-le-ssl.conf: Expected </VirtualHost> but saw </VirtualHost></IfModule>
2015-12-19 15:33:50,452:DEBUG:letsencrypt.error_handler:Calling registered functions
2015-12-19 15:33:50,452:CRITICAL:letsencrypt.client:Rolling back to previous server configuration...
2015-12-19 15:33:50,620:INFO:letsencrypt.reporter:Reporting to user: We were unable to install your certificate, however, we successfully restored your server to its prior configuration.
2015-12-19 15:33:50,623:DEBUG:letsencrypt.cli:Exiting abnormally:
Traceback (most recent call last):
File "/home/terra/.local/share/letsencrypt/bin/letsencrypt", line 11, in <module>
sys.exit(main())
File "/home/terra/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1396, in main
return args.func(args, config, plugins)
File "/home/terra/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 561, in run
lineage.chain, lineage.fullchain)
File "/home/terra/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py", line 385, in deploy_certificate
self.installer.restart()
File "/home/terra/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt_apache/configurator.py", line 1221, in restart
self.config_test()
File "/home/terra/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt_apache/configurator.py", line 1244, in config_test
raise errors.MisconfigurationError(str(err))
MisconfigurationError: Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 14 of /etc/apache2/sites-enabled/core.terragaming.co.uk-le-ssl.conf: Expected </VirtualHost> but saw </VirtualHost></IfModule>
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 14 of /etc/apache2/sites-enabled/core.terragaming.co.uk-le-ssl.conf: Expected </VirtualHost> but saw </VirtualHost></IfModule>
IMPORTANT NOTES:
- We were unable to install your certificate, however, we
successfully restored your server to its prior configuration.
@groovyben008 Just seeing a common link of 2 others with the same issue … they had owncloud - are you using owncloud or anything that might be affecting the apache config in the same way ?
This is happening to me as well, on a Debian VPS. I had it enabled for three domains with no issues, tried to add a fourth and began getting this.
Clearly, the script is at least temporarily writing out the le-ssl.conf. I’ve been trying for an hour to figure out if there is a way to get the script to output said file for me to review, but have had no luck at all.
Removing the ServerAlias doesn’t change anything. Not sure what to do here?
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 12 of /etc/apache2/sites-enabled/mydomain-le-ssl.conf: Expected </VirtualHost> but saw </VirtualHost></IfModule>
I uploaded my apache.conf to pastebin but I don’t think there’s anything wrong with it?! I checked all the files that get included in lines 216 & 219 and everything looks good to me. I tried to output the mydomain-le-ssl.conf file but I had no luck with that so far.
All the files in /sites-enabled/ are symlinks to their respective files in /sites-available/, shouldn’t it be the same for the le-ssl.conf?